Re: [Puppet Users] Resources sharing across different classes.

2016-03-31 Thread Martin Alfke
Hi Arfoz, this is the best example on how to _not_ do classes. Every class should be self contained - as long as possible. In your case you have a hard reference from one resource inside a class to another resource inside another class. I always tell my training course attendees that they should

Re: [Puppet Users] Resources sharing across different classes.

2016-04-01 Thread Afroz Hussain
Hi Martin, Thanks for your help. I have tried your hack but didn't work, still same error, class addfile ( $enable_notify => Service[’tomcat’], ) { file {‘/tmp/hello’: ensure => file, notify => $enable_notify, } } Technically, we can all any resource from any classes since all

Re: [Puppet Users] Resources sharing across different classes.

2016-04-01 Thread jcbollinger
On Friday, April 1, 2016 at 4:57:02 AM UTC-5, Afroz Hussain wrote: > > Hi Martin, > > Thanks for your help. I have tried your hack but didn't work, still same > error, > class addfile ( > $enable_notify => Service[’tomcat’], > ) { > file {‘/tmp/hello’: > ensure => file, > notify