X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fpostgresql%2Fexamples%2Fpostgresql_user.pp;fp=3rdparty%2Fmodules%2Fpostgresql%2Fexamples%2Fpostgresql_user.pp;h=fa7cab5e9d756772bc11a41cbdcd2ebc63a12946;hb=a29c0d1b4d2420aeb3ef6acf66feb00709dd2652;hp=0000000000000000000000000000000000000000;hpb=d98d8ae49a60547132c555f3669f3b9ae6a666bd;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/postgresql/examples/postgresql_user.pp b/3rdparty/modules/postgresql/examples/postgresql_user.pp new file mode 100644 index 000000000..fa7cab5e9 --- /dev/null +++ b/3rdparty/modules/postgresql/examples/postgresql_user.pp @@ -0,0 +1,28 @@ +class { 'postgresql::server': + config_hash => { + 'ip_mask_deny_postgres_user' => '0.0.0.0/32', + 'ip_mask_allow_all_users' => '0.0.0.0/0', + 'listen_addresses' => '*', + 'manage_redhat_firewall' => true, + 'postgres_password' => 'postgres', + }, +} + +# TODO: in mysql module, the username includes, e.g., '@%' or '@localhost', which +# 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_user{ 'redmine': + # TODO: ensure is not yet supported + #ensure => present, + password_hash => postgresql_password('redmine', 'redmine'), + require => Class['postgresql::server'], +} + +postgresql::database_user{ 'dan': + # TODO: ensure is not yet supported + #ensure => present, + password_hash => postgresql_password('dan', 'blah'), + require => Class['postgresql::server'], +} +