nmay
2009-Jul-08 09:31 UTC
[Puppet Users] Problems with service visibility when use notify
Hi, group! I have such strings on my Freebsd 7.0 + puppet 0.24.8 server: ===================CUT================== define zabbix_agent_conf($zabbixserverip, $zabbixagenthostname, $zabbixagentip, $startagents="") { file { "/var/tmp/zabbix_agentd.conf": owner => root, group => wheel, mode => 444, backup => false, content => template("zabbix_agentd.conf.erb"), notify => Service["zabbix_agent"], require => Package[zabbix-agent], } } ===================CUT================== and then in console I could see "warning: Configuration could not be instantiated: Could not find dependent Service[zabbix_agent] for File[/ var/tmp/zabbix_agentd.conf] at /usr/local/etc/puppet/manifests/site.pp: 35; using cached catalog". I`ve try Service["zabbix_agent"], Service ["zabbix-agent"], Service["zabbix-agentd"], Service["zabbix_agentd"], but it h`nt helped. I`m glad to heard any advice how to get right service name. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
David Schmitt
2009-Jul-08 09:57 UTC
[Puppet Users] Re: Problems with service visibility when use notify
nmay wrote:> Hi, group! > I have such strings on my Freebsd 7.0 + puppet 0.24.8 server: > ===================CUT==================> > define zabbix_agent_conf($zabbixserverip, $zabbixagenthostname, > $zabbixagentip, $startagents="") { > file { "/var/tmp/zabbix_agentd.conf": > owner => root, > group => wheel, > mode => 444, > backup => false, > content => template("zabbix_agentd.conf.erb"), > notify => Service["zabbix_agent"], > require => Package[zabbix-agent], > } > > } > ===================CUT==================> > and then in console I could see "warning: Configuration could not be > instantiated: Could not find dependent Service[zabbix_agent] for File[/ > var/tmp/zabbix_agentd.conf] at /usr/local/etc/puppet/manifests/site.pp: > 35; using cached catalog". I`ve try Service["zabbix_agent"], Service > ["zabbix-agent"], Service["zabbix-agentd"], Service["zabbix_agentd"], > but it h`nt helped. > > I`m glad to heard any advice how to get right service name.You need to actually define the service before you can notify it. The service name is the same you used to define the respective service. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
nmay
2009-Jul-08 12:39 UTC
[Puppet Users] Re: Problems with service visibility when use notify
Yeap, its help! Thanks --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---