Open memogarcia opened 3 years ago
The latter seems more doable because PreparedDatabase
is a struct whereas Databases
is of type map[string]string
. You could also GRANT gitlabhq_production_owner TO gitlab
(I know, not from the manifest). Not sure if specifying an alternate owner should replace the default owner role or if that should still be there. Then there are also default privileges - for which owner roles should it be defined?
This would indeed increase flexibility for infrastructure automation. Currently, AFAIK, if one needs to choose the username and install extensions at the same time, they either have to:
users
and databases
in the manifests, then manually run create extension <extension_name>;
ORusers
and preparedDatabases
in the manifests, then manually run grant <db_name>_owner to <username>;
Please, answer some short questions which should help us to understand your problem / question better?
Is it possible to allow the configuration of extensions in
databases
? At this moment I can only configure extensions onpreparedDatabases
becausepreparedDatabases
doesn't allow to set users defined inusers
section to be the owners of that database (or at least the docs doesn't specify how to do this)What I'm looking to do is one of the following:
Or
Is this possible?