Shouldn't this work? class nginx { package { "nginx" : ensure => present } service { "nginx" : ensure => running, require => Package["nginx"]; } }
class my-nginx { require nginx file { "/etc/nginx/nginx.conf" : ensure => present, source => "puppet:///my-nginx/my-nginx.conf", notify => Service["nginx"], } } node "my-node" { include my-nginx } But I get : err: Could not apply complete catalog: Found dependency cycles in the following relationships: File[/etc/nginx/nginx.conf] => Service[nginx], Service[nginx] => File[/etc/nginx/nginx.conf]; try using the '--graph' option and open the '.dot' files in OmniGraffle or GraphViz If I comment out the notify it works :-( Thanks, Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---