603df7381d
This updates the module to be able to use puppetlabs-postgresql. Since this change is a major change, it marks this patch as a breaking change. I have prepared a suitable amount of upgrade notes for upgrading to this later version of the module plus removed anything marked deprecated. As cleanup, I've removed the troublesome 'tests' directory in favour of good README.md documentation. I've also removed any puppet docs from each module until such times as puppet docs become automated through the forge. This is just to avoid contributors having to double their efforts - the README.md is the authority now. Signed-off-by: Ken Barber <ken@bob.sh>
24 lines
856 B
Puppet
24 lines
856 B
Puppet
# Class for creating the PuppetDB postgresql database. See README.md for more
|
|
# information.
|
|
class puppetdb::database::postgresql(
|
|
$manage_firewall = $puppetdb::params::open_postgres_port,
|
|
$listen_addresses = $puppetdb::params::database_host,
|
|
$database_name = $puppetdb::params::database_name,
|
|
$database_username = $puppetdb::params::database_username,
|
|
$database_password = $puppetdb::params::database_password,
|
|
) inherits puppetdb::params {
|
|
|
|
# get the pg server up and running
|
|
class { '::postgresql::server':
|
|
ip_mask_allow_all_users => '0.0.0.0/0',
|
|
listen_addresses => $listen_addresses,
|
|
manage_firewall => $manage_firewall,
|
|
}
|
|
|
|
# create the puppetdb database
|
|
postgresql::server::db { $database_name:
|
|
user => $database_username,
|
|
password => $database_password,
|
|
grant => 'all',
|
|
}
|
|
}
|