[Puppet Users] Re: Help on Hiera automate

2014-01-15 Thread alessandro mazzoli
Thanks Jc, i did what you said..i have changed .yaml like this: servers: s10: sn: de3de project: b user: b dbname: de dbuser: e dbpwd: de s16: sn: de3dedede project: b user: a dbname: de dbuser: e dbpwd: d ... and obtain params like this hiera(

[Puppet Users] Re: Help on Hiera automate

2014-01-14 Thread jcbollinger
On Monday, January 13, 2014 7:02:29 PM UTC-6, alessandro mazzoli wrote: > > Hi all, > I'm trying to automate the set up of the machines staging,passing by an > php application ServerName , ProjectType,DbCredentials etc..(all strings) > and convert to yaml > Here's my common.yaml: > > --- > user

[Puppet Users] Re: Help on Hiera automate

2014-01-14 Thread alessandro mazzoli
Yes, i can get the whole string but if i need the parameters inside that string as sn, project,dbname etc... example: file{"/var/sites/$sn": ensure=>directory, mode=>0755, owner=>$user, group=>$use

[Puppet Users] Re: Help on Hiera automate

2014-01-13 Thread CD
Hi Alessandro, I think if you specify $users it has all the content of children but in a single string. Don't know whether this is what you need. try: $users=hiera('users') notify { $users: } Regards, CD On Tuesday, January 14, 2014 11:02:29 AM UTC+10, alessandro mazzoli wrote: > > Hi all, > I