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
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
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