clusters => [
'cluster1',
'cluster2',
'cluster3',
'cluster4',
]
start on runlevel [2345]
stop on runlevel [!2345]
expect fork
respawn
<% @clusters.each do | cluster | -%>
env PIDFILE="/var/run/${cluster}.pid"
exec /usr/sbin/program_name --pid-file=$PIDFILE
<% end -%>
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8959bc99-9944-4676-ae0f-3c834e74cc37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
node node_example {
class { 'ganglia::install::gmetad':
clusters => [
'cluster1',
'cluster2',
'cluster3',
'cluster4',
]
}class ganglia::install::gmetad () {
define generate_gmond_init(
$init_template = 'ganglia/gmond_init.erb',
$conf_template = 'ganglia/gmond_master_conf.erb',
) {
file { "/etc/init/gmond_${name}.conf":
content => template("$init_template"),
}
file { "/etc/ganglia/gmond_${name}.conf":
content => template("$conf_template"),
}
}
generate_gmond_init{ $clusters: }
}<%= name %>
clusters => {
'cluster1' => { port => 8655 },
'cluster2' => { port => 8656 },
'cluster3' => { port => 8657 },
'cluster4' => { port => 8658 },
}--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e0ef2668-931e-419d-916a-9541beb2ef68%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/93631c84-b157-4e06-bed5-8e82a374a137%40googlegroups.com.