[Puppet Users] Re: Modify class variable in puppet

2014-02-12 Thread Rafael Cristaldo
Em quarta-feira, 12 de fevereiro de 2014 11h52min38s UTC-2, CedrX escreveu: > > I have the answer. > I read here : > https://groups.google.com/forum/#!topic/puppet-users/I9Y-p3UY8JE that > variables are immutable > > > Le mercredi 12 février 2014 14:16:33 UTC+1, CedrX a écrit : >> >> Hi >> I wo

Re: [Puppet Users] Re: Modify class variable in puppet

2014-02-12 Thread Johan De Wit
have a look at hiera ta achieve what you want. If you have an hierarchy like "%{::osfamily}" You can create some yaml files in etc/puppet/hieradata/RedHat.yaml --- pack_util::packages: - curl - htop and in /etc/puppet hieradata/Debian.yaml --- pack_util::packages: - curl_

[Puppet Users] Re: Modify class variable in puppet

2014-02-12 Thread CedrX
I have the answer. I read here : https://groups.google.com/forum/#!topic/puppet-users/I9Y-p3UY8JE that variables are immutable Le mercredi 12 février 2014 14:16:33 UTC+1, CedrX a écrit : > > Hi > I would like to modify a class variable. > This variable contains a list of packages to install > T