Type Service: ignore "notify"

81 views
Skip to first unread message

tobias

unread,
Aug 7, 2012, 11:20:34 AM8/7/12
to puppet...@googlegroups.com
Hi,

Is it possible to configure a service to ignore notifies?
I'd like to have some special cases where a "notify  => Service['xyz']" is ignored by the service "xyz"... (The service is managed by Pacemaker and I don't want Puppet to manage this service)

Cheers,
Tobias

Erik Dalén

unread,
Aug 8, 2012, 4:37:33 AM8/8/12
to puppet...@googlegroups.com
You could do something like this:
service { 'xyz':
hasrestart => false,
restart => '/bin/true',
}

--
Erik Dalén

tobias

unread,
Aug 8, 2012, 7:53:43 AM8/8/12
to puppet...@googlegroups.com
That worked! Thanks a lot...

Jakov Sosic

unread,
Aug 17, 2012, 3:17:13 AM8/17/12
to puppet...@googlegroups.com
On 08/08/2012 01:53 PM, tobias wrote:
> That worked! Thanks a lot...

Isn't it better to restart it through pacemaker commands? Something like:

service { 'xyz':
hasrestart => false,
restart => 'crm restart blah blah',
}


Some services reload configurations on HUP, so you can even send signal.
Much cleaner than just to ignore the configuration change... It will
bite you in the a** sooner or later if you ignore the changes...



--
Jakov Sosic
www.srce.unizg.hr
Reply all
Reply to author
Forward
0 new messages