Re: [Puppet Users] Managing /etc/yum.conf

2012-02-18 Thread Gonzalo Servat
On Fri, Feb 17, 2012 at 5:26 PM, Gary Larizza g...@puppetlabs.com wrote: Hey Gonzalo, Have you tried Hiera at all? (http://github.com/puppetlabs/hiera and http://github.com/puppetlabs/hiera-puppet ) With Hiera (and, specifically the hiera_array() function), you can scour through a hierarchy

[Puppet Users] Managing /etc/yum.conf

2012-02-16 Thread Gonzalo Servat
Hi, It's easy enough to modify, say, the exclude variable in /etc/yum.conf with something like: augeas { yum_exclude_kernel: context = '/files/etc/yum.conf/main', changes = 'set exclude kernel*' } However, I'd like a more flexible system where I can build the list of

Re: [Puppet Users] Managing /etc/yum.conf

2012-02-16 Thread Gary Larizza
Hey Gonzalo, Have you tried Hiera at all? (http://github.com/puppetlabs/hiera and http://github.com/puppetlabs/hiera-puppet ) With Hiera (and, specifically the hiera_array() function), you can scour through a hierarchy to populate a variable inside your Puppet manifest. If you had a variable to

Re: [Puppet Users] Managing /etc/yum.conf

2012-02-16 Thread Gonzalo Servat
On Fri, Feb 17, 2012 at 5:26 PM, Gary Larizza g...@puppetlabs.com wrote: Hey Gonzalo, Have you tried Hiera at all? (http://github.com/puppetlabs/hiera and http://github.com/puppetlabs/hiera-puppet ) With Hiera (and, specifically the hiera_array() function), you can scour through a hierarchy