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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/eb286c5d-07d6-412b-9a2c-202bb49b8140%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to