3

How to generate file using script ysing puppet

view full story
linux-howto

http://serverfault.com – I have the following resource: exec{'regen-nagios-hosts': command => '/usr/local/bin/generate-nagios-host-definitions-from-hostfile < /etc/hosts > /etc/nagios3/conf.d/sv-hosts.cfg', user => 'root', before => Class['nagios::server'], notify => Service['nagios3'], require => File['/etc/hosts'], } Ideally, I'd want to restart Nagios only if the file changed. It seems what I really want is a file resource, but file resources have a template or the actual content, not a script. How can I generate the file (or change my method) to restart Na (HowTos)