Re: [Puppet Users] Roles/profiles and hiera

2013-09-04 Thread Frederiko Costa
Hi, Ramin - you are correct. I got down to this path when I decided to follow this pattern. It turns out that it became overkill. In regards to hiera, that's also exactly what I was looking at. I knew I'd be nuts if I had to differentiate for each DC. Not clever whatsoever. I thought about facts

Re: [Puppet Users] Roles/profiles and hiera

2013-09-03 Thread Ramin K
Without hiera you have all those extra classes you posted below including this very specific one. I think your classes are too complicated to begin with regardless of where the data is, but the lack of data separation probably sent you down that path. class role::zabbix20::server::dc1 { inc

Re: [Puppet Users] Roles/profiles and hiera

2013-09-03 Thread Frederiko Costa
Thanks Chad ... I understand it from the syntax point of view, but my point is more of a conceptual question in how to apply Craig's concepts using hiera with parasitized classes ... in that case, the node definition using hiera declares one (and only one role). The profile would define the techno

Re: [Puppet Users] Roles/profiles and hiera

2013-09-03 Thread Chad Huneycutt
LIke this: class profile::zabbix20::server ( bind_ip, ... ) { class { '::zabbix20::server': bind_ip => $bind_ip, ... } } Then your hieradata would set in a.b.c.d.yaml: profile::zabbix20::server::bind_ip: 1.2.2.3 in x.y.z.w.yaml: profile::zabbix20::server::bind_ip: 1.2.3.4 That

Re: [Puppet Users] Roles/profiles and hiera

2013-09-03 Thread Frederiko Costa
Excellent.. thanks! And now sorry for the long email... hopefully I'm clear enough. I'd also to expose one example that I have here in my company. I'm not too confident of how we setup roles and profiles, specially when it comes to add hiera into the game. Say we have a module called zabbix20

Re: [Puppet Users] Roles/profiles and hiera

2013-08-30 Thread Ramin K
On 8/30/2013 3:48 PM, Frederiko Costa wrote: Hi everyone, Do you guys know any article/doc talking about the use of roles/profiles approach with hiera? I'm particularly interested in how to organize the manifests when having multiple data centers, parametized classes and wants to use hiera. Be

[Puppet Users] Roles/profiles and hiera

2013-08-30 Thread Frederiko Costa
Hi everyone, Do you guys know any article/doc talking about the use of roles/profiles approach with hiera? I'm particularly interested in how to organize the manifests when having multiple data centers, parametized classes and wants to use hiera. Being even more specific, how to organize the cod

Re: [Puppet Users] roles, profiles, and hiera

2013-02-14 Thread Chad Huneycutt
Unfortunately not. I am already using %{module_name}, and it works fine. But for what I am suggesting to work, I need to know the exact class where the hiera call is. - Chad On Wed, Feb 13, 2013 at 7:49 PM, Brian Lalor wrote: > Will this help? > http://docs.puppetlabs.com/puppet/3/reference/la

Re: [Puppet Users] roles, profiles, and hiera

2013-02-13 Thread Brian Lalor
Will this help? http://docs.puppetlabs.com/puppet/3/reference/lang_variables.html#parser-set-variables -- Brian Lalor bla...@bravo5.org On Feb 13, 2013, at 6:17 PM, Chad Huneycutt wrote: > I have been following the various blog posts about the roles and > profiles pattern for classifying hosts

[Puppet Users] roles, profiles, and hiera

2013-02-13 Thread Chad Huneycutt
I have been following the various blog posts about the roles and profiles pattern for classifying hosts, and I like it. It doesn't provide a perfect fit for our infrastructure, but it is much better than the ad-hoc classification we do now. I have a couple of questions for those that use it, thou