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('servers') and use create_resources function
Il giorno martedì 14 gennaio 2014 02:02:29 UTC+1, alessandro mazzoli ha scritto: > > 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: > > --- > users: > -sn: server.example.com > -project : Symfony > -dbname : test > -dbuser : test > -dbpwd : test > -sn: server2.example.com > -project : Idephix > -dbname : test > -dbuser : test > -dbpwd : test > > Here's my hiera.yaml > --- > :backends: > -yaml > :yaml: > :datadir: '/etc/puppet/hieradata' > :hierarchy: > -common > > > Is there any possibility on manifest to get all those variables by not > specifing the index as below ?? > $users=hiera('users') > $sn0=$users[*0*]['sn'] > $sn1= > ...... > ... > > I would like to preserve all the configurations if possible inside > common.yaml > > Thanks for the help > > > > -- 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/e0c04a5b-d0b0-4432-98fe-e916737c610d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.