On Tue, Jul 24, 2012 at 8:08 AM, tomash <tom.ash...@gmail.com> wrote:
> Hi,
>
> I'm trying to get to grips with hiera and yaml as the backend.
>
> given a yaml file like this:
>
> ---
> user:
>   dave:
>     home: "/home/dave"
>     shell: "/bin/bash"
>   steve:
>     home: "/home/steve"
>     shell: "/bin/zsh"
>
> How would I do a hiera lookup for steve's shell?
> on the cli, I cannot do "hiera steve.shell" as I might expect.

Try something like this:
$user = hiera('user')
$shell = $user['dave']['shell']

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to