Is there any reason for specifically using wget and not the file resource. You usually use the service and file resources for what you do... Something like this example here for nginx http://github.com/lak/puppet-nginx/tree/master (look in both init.pp and config.pp). Stripping down should look like:
class nginx { package { nginx: ensure => installed } service { nginx: ensure => running, enable => true } file { "/etc/nginx/nginx.conf": content => template("nginx/nginx.conf.erb"), mode => 644, owner => root, notify => Service[nginx] } } Also do some requires for the package (ie make sure the package is installed before copying the file or checking if the service is running) Silviu sameer wrote: > Hi All, > > I am new to Puppet and recently switched from Cfengine. I used it to > make to propagate a configuration file. The manifest involved wgetting > a file and restarting the concerned daemon. As a result of this within > a couple of hours I got flooded with alerts because the daemon kept > restarting. > > I am aware that by default puppet runs the manifest every 30mins and > that value is adjustable but I want it to run only when the manifest > has changed, like in cfengine. > > Sameer > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---