Yes, that will work. We actually do something slightly ickier, so the
data all stays in hiera:
hiera hierarchy:
- nodes/%{hostname}
- ...
- roles/%{role}
nodes/foo.yaml:
...
role: desktop
classes:
- "roles::%{role}"
node default {
$role = hiera('role')
include hiera('classes')
}
- Chad
> --
> 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...@googlegroups.com.
> To post to this group, send email to
puppet...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/puppet-users.
> For more options, visit
https://groups.google.com/groups/opt_out.
--
Chad M. Huneycutt