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(
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
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
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