Puppet Class: puppetdb::postgresql
- Defined in:
- manifests/postgresql.pp
Overview
Class puppetdb::postgresql
Configures PostGreSQL grants for PuppetDB
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'manifests/postgresql.pp', line 5
class puppetdb::postgresql {
case $puppetdb::db_host {
'', 'localhost','127.0.0.1': {
postgresql::dbcreate { $puppetdb::db_name:
role => $puppetdb::db_user,
password => $puppetdb::db_password,
address => '127.0.0.1/32',
}
}
default: {
@@postgresql::dbcreate { $puppetdb::db_name:
role => $puppetdb::db_user,
password => $puppetdb::db_password,
address => $::ipaddress,
tag => "postgresql_grants_${puppetdb::db_host}",
}
}
}
}
|