Dear all,
is there a way to access in a template to all the parameters that are
passed/defined in a class?

I mean, something like:
    file { "puppi_openssh":
      path    => "${settings::vardir}/puppi/openssh",
      mode    => "0640",
      owner   => "root",
      group   => "root",
      ensure  => present,
      content => inline_template("<%= scope.to_yaml %>"),
    }

but instead of accessing to all the variables in the scope (as in
scope.to_yaml ) I want to show only the variables passed to a
parametrized class or a define (something like: openssh::*.to_yaml )

The point is to have a quick and generic way to pass Puppet knowledge
(the variables defined/used) about a class, to a local file, that can
be used in various interesting ways.

If there's no way to do that, does anyone find this worth a feature
request?

Best,
Alessandro Franceschi

-- 
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