Angel L. Mateo wrote:
> El 21/06/18 a las 14:32, Helmut Schneider escribió:
> > Hi,
> >
> > common.yaml:
> >
> > profiles:
> > mailserver:
> > postfix:
> > instances:
> > postfix-in:
> > instance_path: '/etc/postfix-in'
> > other_path: "%{instance_path}" <= required
> >
> > Is it possible to nest both variables somehow? Or alternatively from
> > common.pp:
>
> common.yaml:
>
> instance_path: '/etc/postfix-in'
> profile:
> mailserver:
> postfix:
> instances:
> postfix-in:
> instance_path: "%{hiera('instance_path')}"
> other_path: "%{hiera('instance_path')}"
>
I tried
profile:
mailserver:
postfix:
instances:
postfix-in:
instance_path: '/etc/posfix-in'
other_path:
"%{hiera('profile::mailserver::postifx::instances::postfix-in::instance_
path')}"
which gives an empty value.
> or, if you want to reuse value in the same file:
>
> instance_path: &instance_path '/etc/postfix-in'
> other_path: *instance_path
This works but can I also construct a string here? Like
instance_path: &instance_path '/etc/postfix-in'
other_path: "*instance_path something_else"
--
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/xn0lcer7hvrowur002%40news.gmane.org.
For more options, visit https://groups.google.com/d/optout.