system-config/modules/openstack_project/manifests/graphite.pp
Monty Taylor 615e0cfb39 Align exim module parameter name with the tree
The rest of the tree, literally everwhere, calls this value
sysadmins - but the exim module calls it sysadmin. This doesn't
really matter of course, but I noticed it while looking in to a
review on another patch and couldn't not fix it. Also, there are
two comments that are clearly remnants from having used exim.pp
as a starting point.

Change-Id: I184701c8c4d4b1e9d93d746b2ad0c5fc53443866
2014-06-14 08:10:10 -07:00

26 lines
775 B
Puppet

# Class to configure graphite on a node.
class openstack_project::graphite (
$sysadmins = [],
$graphite_admin_user = '',
$graphite_admin_email = '',
$graphite_admin_password ='',
$statsd_hosts = [],
) {
# Turn a list of hostnames into a list of iptables rules
$rules = regsubst ($statsd_hosts, '^(.*)$', '-m udp -p udp -s \1 --dport 8125 -j ACCEPT')
class { 'openstack_project::server':
iptables_public_tcp_ports => [80, 443],
iptables_rules6 => $rules,
iptables_rules4 => $rules,
sysadmins => $sysadmins,
}
class { '::graphite':
graphite_admin_user => $graphite_admin_user,
graphite_admin_email => $graphite_admin_email,
graphite_admin_password => $graphite_admin_password,
}
}