X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fpostgresql%2Fexamples%2Fpostgresql_grant.pp;fp=3rdparty%2Fmodules%2Fpostgresql%2Fexamples%2Fpostgresql_grant.pp;h=05d87a47a8b1000913ffbfd5b0547d911805ba5c;hb=a29c0d1b4d2420aeb3ef6acf66feb00709dd2652;hp=0000000000000000000000000000000000000000;hpb=d98d8ae49a60547132c555f3669f3b9ae6a666bd;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/postgresql/examples/postgresql_grant.pp b/3rdparty/modules/postgresql/examples/postgresql_grant.pp new file mode 100644 index 000000000..05d87a47a --- /dev/null +++ b/3rdparty/modules/postgresql/examples/postgresql_grant.pp @@ -0,0 +1,14 @@ +# TODO: in mysql module, the grant resource name might look like this: 'user@host/dbname'; +# I think that the API for the resource type should split these up, because it's +# easier / safer to recombine them for mysql than it is to parse them for other +# databases. Also, in the mysql module, the hostname portion of that string +# affects the user's ability to connect from remote hosts. In postgres this is +# managed via pg_hba.conf; not sure if we want to try to reconcile that difference +# in the modules or not. +postgresql::database_grant{'test1': + # TODO: mysql supports an array of privileges here. We should do that if we + # port this to ruby. + privilege => 'ALL', + db => 'test1', + role => 'dan', +}