This is an automatically generated e-mail. To reply, visit: http://reviewboard-fedoraserver.rhcloud.com/r/170/

Ship it!

Tested with:

echo "{ \"database\": \"db1\"}" | rolectl deploy databaseserver --settings-stdin

Verified the new database and owner:

postgres=# select * from pg_database ;
  datname  | datdba | encoding | datcollate  |  datctype   | datistemplate | datallowconn | datconnlimit | datlastsysoid | datfrozenxid | datminmxid | dattablespace |               datacl                
-----------+--------+----------+-------------+-------------+---------------+--------------+--------------+---------------+--------------+------------+---------------+-------------------------------------
 template1 |     10 |        6 | en_US.UTF-8 | en_US.UTF-8 | t             | t            |           -1 |         12139 |          678 |          1 |          1663 | {=c/postgres,postgres=CTc/postgres}
 template0 |     10 |        6 | en_US.UTF-8 | en_US.UTF-8 | t             | f            |           -1 |         12139 |          678 |          1 |          1663 | {=c/postgres,postgres=CTc/postgres}
 postgres  |     10 |        6 | en_US.UTF-8 | en_US.UTF-8 | f             | t            |           -1 |         12139 |          678 |          1 |          1663 | 
 db1       |  16384 |        6 | en_US.UTF-8 | en_US.UTF-8 | f             | t            |           -1 |         12139 |          678 |          1 |          1663 | 
(4 rows)

postgres=# select * from pg_roles;
 rolname  | rolsuper | rolinherit | rolcreaterole | rolcreatedb | rolcatupdate | rolcanlogin | rolreplication | rolconnlimit | rolpassword | rolvaliduntil | rolconfig |  oid  
----------+----------+------------+---------------+-------------+--------------+-------------+----------------+--------------+-------------+---------------+-----------+-------
 postgres | t        | t          | t             | t           | t            | t           | t              |           -1 | ********    |               |           |    10
 db_owner | f        | t          | f             | f           | f            | t           | f              |           -1 | ********    |               |           | 16384
(2 rows)

postgres=#


- Nils Philippsen


On Juli 30th, 2015, 5:56 nachm. CEST, Stephen Gallagher wrote:

Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
By Stephen Gallagher.

Updated Juli 30, 2015, 5:56 nachm.

Repository: rolekit

Description

Fixes https://github.com/libre-server/rolekit/issues/2

Testing

Deployed the memcache role and domaincontroller role using stdin.

Diffs

  • src/rolectl (dd2d41cd6d5086d61ee056e9a6b99d84fb605185)

View Diff