Ah.  I don't know how mcollective works so I'm not sure how to address
that.  If there's a YAML data file involved then you could push it with
Puppet...

On Thu, Sep 1, 2011 at 5:02 PM, Douglas Garstang <doug.garst...@gmail.com>wrote:

> On Thu, Sep 1, 2011 at 4:58 PM, Aaron Grewell <aaron.grew...@gmail.com>wrote:
>
>> And then assign classes based on that.  Standard if logic or case
>> statement as you prefer.
>>
>> On Thu, Sep 1, 2011 at 4:57 PM, Douglas Garstang <doug.garst...@gmail.com
>> > wrote:
>>
>>> On Thu, Sep 1, 2011 at 4:56 PM, Aaron Grewell 
>>> <aaron.grew...@gmail.com>wrote:
>>>
>>>> Create a variable for server_class in your node definition.
>>>>
>>>>
>>>>
>>> And then....?
>>>
>>>
>>> This isn't for logic within puppet manifests. In this particular
> scenario, it's for setting a server class on each node so that I can use
> mcollective against servers matching that class. For example, if I wanted to
> stop apache on the web servers, I can call mc-service httpd restart -F
> "hostclass=webserver" etc.
>
> Doug.
>
>
>  --
> 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.
>

-- 
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.

Reply via email to