Hi!  I have a parameterized class that accepts a few parameters, one of
which I would like to use in the retrieval of hiera data, e.g.
class foo (  $app_user = 'bar' ) {
    file { "/etc/${app_user::etc_dir}":
    owner   => 'root',
    group   => 'root',
    mode    => '0644
}

so app_user should get passed to the class, then ${app_user}::etc_dir
should get resolved by hiera,  If I pass in nagios as app_user, then
nagios::etc_dir should be looked up in hiera.  I can't find the right
combination of curly braces to get this to work.  Should it work?

Thanks a lot,
Guy

-- 
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/CABnTgtXthijC-uSTARE4rVsodat-Qeq5ON-r2ziN3-xDSwKkqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to