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 . -- 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/-/8QFa3uUqcUUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Don''t know why you are asking foreman questions on a puppet list, but "puppet agent --test --tags tag1" on the host or "puppet kick hostname --tags tag1" from the puppetmaster would do what you want. On Jul 16, 2012, at 11:46 PM, Yaniv Fine wrote:> 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 > . > > > -- > 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/-/8QFa3uUqcUUJ. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- Jo Rhett Net Consonance : net philanthropy to improve open source and internet projects. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.