[Puppet Users] How to apply a set of configurations to a specific host group?
Hi all, For some historical reason, our hosts are not systematically named nor matches with the service(s) it runs and I don't see it's changing any time soon. So using a Regex in the nodename is not really an option for me. I have four environments - Dev, Int, Stage and Live - and I've just started using hiera to define the nodes like this: curr_coll_list: - mon510.back.local - mon507.mgrt.local curr_db_list: - mon512.mgrt.local - pdb511.back.local - pdb504.back.local Is there any way I can use that to apply a set of configurations to, say curr_coll_list? Or, what are the other options I have? I know that node can have a comma separated list of host names but that doesn't make things any easier for me. Best, San -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c8369c3a-be6b-4623-add3-a4dfea4da1d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] How to apply a set of configurations to a specific host group?
Hi, You can use a default node definition, checking if the hostname is inside any of your array declarations. Regards, El 23/04/2014 12:28, Sans r.santanu@gmail.com escribió: Hi all, For some historical reason, our hosts are not systematically named nor matches with the service(s) it runs and I don't see it's changing any time soon. So using a Regex in the nodename is not really an option for me. I have four environments - Dev, Int, Stage and Live - and I've just started using hiera to define the nodes like this: curr_coll_list: - mon510.back.local - mon507.mgrt.local curr_db_list: - mon512.mgrt.local - pdb511.back.local - pdb504.back.local Is there any way I can use that to apply a set of configurations to, say curr_coll_list? Or, what are the other options I have? I know that node can have a comma separated list of host names but that doesn't make things any easier for me. Best, San -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c8369c3a-be6b-4623-add3-a4dfea4da1d9%40googlegroups.comhttps://groups.google.com/d/msgid/puppet-users/c8369c3a-be6b-4623-add3-a4dfea4da1d9%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAF_B3dcH%3DFnVw1zYhoXn5DAFftMeNPDMPHsFpsq5hjLRXpr2ig%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] How to apply a set of configurations to a specific host group?
Thanks Jose! That trick worked (I've actually used that thing before) but I was wondering if there is a way to do it properly, like creating a host-group or something like that. Best! On Wednesday, April 23, 2014 12:25:09 PM UTC+1, Jose Luis Ledesma wrote: Hi, You can use a default node definition, checking if the hostname is inside any of your array declarations. Regards, -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b5c3d9d9-b049-495a-8aef-f7726a345afc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] How to apply a set of configurations to a specific host group?
Hello I think you'd probably be best served by using a sql backend to hiera. this would allow you to think and configure in terms of host groups but hiera to find that a host has a class of group. A view or two might be needed to keep things tidy. Neil On 23 Apr 2014 21:42, Sans r.santanu@gmail.com wrote: Thanks Jose! That trick worked (I've actually used that thing before) but I was wondering if there is a way to do it properly, like creating a host-group or something like that. Best! On Wednesday, April 23, 2014 12:25:09 PM UTC+1, Jose Luis Ledesma wrote: Hi, You can use a default node definition, checking if the hostname is inside any of your array declarations. Regards, -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b5c3d9d9-b049-495a-8aef-f7726a345afc%40googlegroups.comhttps://groups.google.com/d/msgid/puppet-users/b5c3d9d9-b049-495a-8aef-f7726a345afc%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAAohVBcGt9cOKXtT2OfO3hOXKO2LvcB05nZKi1ygPodX1rS1rg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] How to apply a set of configurations to a specific host group?
Do you have any example(s) handy, Neil? I'm trying in google as well. Top of that, I never used SQL with hiera before. On Wednesday, April 23, 2014 10:03:24 PM UTC+1, Neil - Puppet List wrote: Hello I think you'd probably be best served by using a sql backend to hiera. this would allow you to think and configure in terms of host groups but hiera to find that a host has a class of group. A view or two might be needed to keep things tidy. Neil -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7646ff1e-5271-493f-a340-398a911aaf3a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] How to apply a set of configurations to a specific host group?
There is a nice hiera-mysql module. Although from my point of view using a MySQL to resolve this problem seems a bit overkill. IMO this module is to attack some kind of existing mysql cmdb, but it's just my opinion. Regards El 23/04/2014 23:09, Sans r.santanu@gmail.com escribió: Do you have any example(s) handy, Neil? I'm trying in google as well. Top of that, I never used SQL with hiera before. On Wednesday, April 23, 2014 10:03:24 PM UTC+1, Neil - Puppet List wrote: Hello I think you'd probably be best served by using a sql backend to hiera. this would allow you to think and configure in terms of host groups but hiera to find that a host has a class of group. A view or two might be needed to keep things tidy. Neil -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7646ff1e-5271-493f-a340-398a911aaf3a%40googlegroups.comhttps://groups.google.com/d/msgid/puppet-users/7646ff1e-5271-493f-a340-398a911aaf3a%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAF_B3dd5-Rc3R3T5tA_%2B1DsW_0d9hman6zGbwrdM2g31NoW0PA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.