Found out that it's very simple: subscribe => Class['module::class_2'] On Thursday, February 14, 2013 12:20:30 PM UTC+2, Andriy Yurchuk wrote: > > class module::class_1 { > service { > ensure => running, > hasrestart => true, > subscribe => File[/tmp/myfile], > } > } > > class module::class_2 { > file { '/tmp/myfile': > source => 'puppet:///file_server/my_file', > } > } > > Having those two classes, how do I correctly write the subscribeparameter in > class_1 so that it used the file resource from class_2? >
-- 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+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.