system-config/modules/openstack_project/manifests/puppetdb.pp
Spencer Krum 608ea9145e Set puppetdb server to listen on all interfaces
This sets the puppetdb server to listen on all interfaces over
both ipv4 and ipv6. I have left a comment in the code for future
travelers wondering if '0.0.0.0' will open up ipv6 addresses as
well.

Change-Id: I2396c721afdf956085b46d8633a236aaab46fa94
2014-02-24 10:20:18 -08:00

40 lines
983 B
Puppet

# == Class: openstack_project::puppetdb
#
class openstack_project::puppetdb (
$sysadmins = [],
) {
# The puppetlabs postgres module does not manage the postgres user
# and group for us. Create them here to ensure concat can create
# dirs and files owned by this user and group.
user { 'postgres':
ensure => present,
gid => 'postgres',
system => true,
require => Group['postgres'],
}
group { 'postgres':
ensure => present,
system => true,
}
class { 'openstack_project::server':
iptables_public_tcp_ports => [8081],
sysadmins => $sysadmins,
}
class { 'puppetdb::database::postgresql':
require => [User['postgres'],
Class['openstack_project::base'],],
}
class { '::puppetdb::server':
database_host => 'localhost',
ssl_listen_address => '0.0.0.0', # works for ipv6 too
require => [ User['postgres'],
Class['puppetdb::database::postgresql'],],
}
}