Re: [Puppet Users] Re: How can I ensure that a service is started/stopped based on if it is needed or not ?

2012-09-09 Thread Jakov Sosic

On 09/09/2012 06:38 AM, Sébastien Lavoie wrote:

I am not experienced in creating facts, could you give me a better idea
? I fail to see how a fact could detect if a service is required.


And how do you determine if it's required? By hostname, or?


--
Jakov Sosic
www.srce.unizg.hr

--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: How can I ensure that a service is started/stopped based on if it is needed or not ?

2012-09-08 Thread Sébastien Lavoie
I am not experienced in creating facts, could you give me a better idea ? I 
fail to see how a fact could detect if a service is required.
Thanks

On Saturday, 8 September 2012 23:57:50 UTC-4, Glenn Poston wrote:
>
> You could create a fact that returns true or false, then use that fact in 
> your puppet code to determine whether to start the service.  I'd need more 
> details to really say that's the best solution though.  Other options would 
> be to use heira or to use a parameterized class and set those parameters in 
> your ENC/mode definition.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/9Tmhu-YGFaoJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.