Re: [Puppet Users] Notify service in one class from other class

2014-01-13 Thread jcbollinger
On Monday, January 13, 2014 10:22:36 AM UTC-6, Ramin K wrote: > > > Stages should be treated as black boxes where you assume everything that > was suppose to happen in an earlier stage has already happened. That's a good description. > You can > not notify to any resources from a resourc

Re: [Puppet Users] Notify service in one class from other class

2014-01-13 Thread Ramin K
On 1/13/2014 5:51 AM, Denis Kot wrote: I have the following classes: class zabbix-agent { ... package {'zabbix-agent': ensure => installed } ... service { "zabbix-agent": ensure => running, start=> "/etc/init.d/zabbix-agent start", stop

Re: [Puppet Users] Notify service in one class from other class

2014-01-13 Thread Joseph Swick
On 01/13/2014 08:51 AM, Denis Kot wrote: > I have the following classes: > > node 'prerun' { > ... >class {'zabbix-agent': stage => pre} > ... > } > > but that code produces error: > > err: Could not apply complete catalog: Found dependency cycles in the > following relationships: Servi

[Puppet Users] Notify service in one class from other class

2014-01-13 Thread Denis Kot
I have the following classes: class zabbix-agent { ... package {'zabbix-agent': ensure => installed } ... service { "zabbix-agent": ensure => running, start=> "/etc/init.d/zabbix-agent start", stop=> "/etc/init.d/zabbix-agent stop", st