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

--
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1f797a41-60ce-14f3-c2b0-4c2840dece50%40um.es.
For more options, visit https://groups.google.com/d/optout.

Reply via email to