On 10/06/2014 08:29 PM, Juan Andres Ramirez wrote:
> host_key:
> - server1:
> alias: webserver
> ipadress: "192.168.0.4"
> port : "80"
> - server2:
> alias: dbserver
> ipadress: "192.168.0.5"
> port : "80"
The keys function works on hashes only.
Rather than [ { server1 => undef, alias => webserver, ipaddress => ...,
port => 80 } ]
you want { server1 => { alias => webserver, ipaddress => ..., port => 80 } }
In YAML:
host_key:
server1:
alias: webserver
ipaddress: 192.168.0.4
port: 80
server2:
alias: ...
...
HTH,
Felix
--
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/5432F605.5020805%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.