Error as below:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Invalid relationship: File[/tmp/hello] { notify => Service[tomcat] }, 
because Service[tomcat] doesn't seem to be in the catalog

On Thursday, 31 March 2016 17:13:46 UTC+5:30, Afroz Hussain wrote:
>
> Hi All,
>
> I am facing an issue to notify a service from different module whenever 
> file changes.
> Example:
> I have a addfile module which creates a file and want to notify tomcat 
> service which is present in tomcat module. 
>
> class addfile {
>    file {"/tmp/hello":
>      ensure => file,
>      content => "hello",
>      notify   => Service["tomcat'],
>    }
> }
>
>
> it is throwing an error as tomcat service is not in catalog.
>
> I have 3.6.2 version of puppet and using ENC.
>
> Any help will be appreciated
>
> Thanks,
> Afroz Hussain
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/02cfc06d-d306-48a2-a917-7144606a1509%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to