What is the best means to "assign" nodes to a "role"
I have review http://www.craigdunn.org/2012/05/239/ also view a post
recently with people posting their hirea configs and most of them used a
role or server_role, etc
In our environment, servers(node) are named by roles, eg:
web01.prod.domain.com
db01.prod.domain.com
etc
Our nodes.pp
node /db\d{2}.(dev|stage|prod).domain.com/ {
include profile::database_server
}
Would like to have this as the hiera config:
:hierarchy:
- %{environment}/%{module_name}/%{fqdn}
- %{environment}/%{module_name}/%{role}
- %{environment}/%{module_name}/common
I see a few options:
1. Extend out enc to set a global variable "role"
2. Assign a node variable "role"
3. Custom fact
4. other?
What is the best practice for handling roles with hiera?
Thanks!
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.