if $node_type == 'wn' {
$port = '8649'
$desc = 'Worker Nodes'
}
exec {
'n_desc':
command => "sed -ic '/cluster {/,/}/s/name = \"[^\"]*\"/name = \"\'\"$desc\"\'\"/' '$fname'",
subscribe => File["$fname"],
refreshonly => false;
'n_port':
command => "sed -ic '/port\ =\ /{s:[0-9]*$:$port:g}' '$fname'",
subscribe => File["$fname"],
refreshonly => false;
}
file {
'gmond.conf':
name => "$fname",
source => 'puppet:///modules/ganglia/gmond.conf',
require => Exec['n_desc','n_port'],
notify => Service['gmond'];
}
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/9XQhRACkvOEJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/YE5OjdOlY3oJ.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/9XQhRACkvOEJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.