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')}"
or, if you want to reuse value in the same file:
instance_path: &instance_path '/etc/postfix-in'
other_path: *instance_path
>
> Can I somehow use $instance_path from common.pp in common.yaml?
>
I don't think so. hiera is processed before catalog compilation.
--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 868888337