Ask Your Question
0

Puppet Enterprise: Can I use console groups as facter variables?

asked 2013-10-02 10:46:55 -0500

cbowles gravatar image

In Puppet Enterprise, is there any way to use the group membership of a node (node_group) as a facter variable, i.e. for use with module and/or with hiera?

  • We are using the Console to set variables that are used to configure hiera (set via the hiera.yaml file)
  • We are also using Console groups to group our nodes.

It would be really convenient to have the Enterprise Console group structure exposed as a facter variable. I don't know of a way to do this currently, but would be interested if it was on the roadmap and/or ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-23 18:30:39 -0500

llowder gravatar image

The short answer is no.

However, you do have the ability to set variables on groups.

These variables will be available for use in your manifests ( and in Hiera ) as top level variables.

The main caveat with this is that this will be something you will have to manually maintain the variables and them matching the group names, though there is a Rake API that you can use which can let you script or automate the process.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-10-02 10:46:55 -0500

Seen: 339 times

Last updated: Jan 23 '14