Craig White
unread,Jul 17, 2012, 11:37:16 AM7/17/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
On Jul 16, 2012, at 11:46 PM, Yaniv Fine wrote:
> Hi all .
> i am running puppet version 2.6.16 and foreman Version 0.4.2 .
> my question is as follows .
> i would like to know if there is a way to tag server with a group tagging . for example .
> let say i am running apache with a unique configuration and network architecture and want to tag in with "tag1"
> and a i have few more apache installation with the a new unique configuration and architecture that i want to tag them with "tag2" .
> and so on and so on .
> lets say i have would like to perform some action (run service -insure => latest ) only on tag1 .
> is there a way to perform this action within foreman ?
> i know i can do do group actions with "Hostgroup" but a host can belong to only one hostgroup . what happens if i want a host to belong to more that 1 group ? .
> i hope that my question is clean .
> thank you for any help
----
perhaps these questions relate more to foreman than puppet and your terminology is a bit strange but...
Foreman allows you to set top scope variables as parameters and you can tailor your manifests to do specific things based upon the values of the top scoped variables (or lack of them) which should solve your first question.
The second question relates more to your imagination in that Foreman allows nested hostgroups so you could have a hostgroup that shares other hostgroups with others and has distinctly different hostgroups.
Craig