Hello,
for my Icinga2, I want to add all classes to vars, like described in
https://goo.gl/z798HG (page 41). I added the sjoeboo/puppet-common module,
which gives me all classes as a fact:
facter -p classes
["settings", "host.foo.local", "base::root::password", "icinga2::params",
"icinga2", ... ]
facter -p classes --yaml
---
classes:
- settings
- host.foo.local
- "base::root::password"
- "icinga2::params"
- icinga2
I tried the line:
[...]
puppet_classes => inline_template(
'<%= classes.collect { |k, v| v }.sort.join(" ") %>'
),
[...]
so that in the end...
vars.settings
vars.host.foo.local
vars.base
vars.icinga2
is generated for the Icinga2 monitoring host. But in my case, the following
is generated instead:
+ vars.puppet_classes = " "
Maybe, the howto is a bit older and the syntax was changed a bit. We use
the Puppet 3.7.2-4 agent.
Any suggestions are very welcome :-)
cu denny
--
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/d20e6894-1379-4039-855d-9babfa447be6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.