Skip to content

Commit

Permalink
9133 - Update classesfile default location
Browse files Browse the repository at this point in the history
The default classesfile location was set to a location that Puppet never
defaulted to.  It was missing the state part of the path, and the more
modern classesfile location in puppet also has lib in the path.  This is
now the default.
  • Loading branch information
Matt Robinson authored and ripienaar committed Aug 29, 2011
1 parent d75a944 commit 9c113e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mcollective/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def set_config_defaults(configfile)
@topicsep = "."
@topicprefix = "/topic/"
@queueprefix = "/queue/"
@classesfile = "/var/lib/puppet/classes.txt"
@classesfile = "/var/lib/puppet/state/classes.txt"
@rpcaudit = false
@rpcauditprovider = ""
@rpcauthorization = false
Expand Down
2 changes: 1 addition & 1 deletion website/reference/integration/puppet.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This includes facts pushed out with [Plugin Sync][PluginSync].
A less resource intensive approach has can be found [here][Facter2YAML], it converts the Puppet scope into a YAML file that the YAML fact source then loads. This is both less resource intensive and much faster.

## Class Filters
Puppet provides a list of classes applied to a node by default in */var/lib/puppet/classes.txt* or */var/lib/puppet/state/classes.txt* (depending on which Puppet version you are using. The latter is true for 0.23.0 onwards) , we'll use this data with *--with-class* filters.
Puppet provides a list of classes applied to a node by default in */var/puppet/state/classes.txt* or */var/lib/puppet/state/classes.txt* (depending on which Puppet version you are using. The latter is true for 0.25.5 onwards) , we'll use this data with *--with-class* filters.

You should configure MCollective to use this file by putting the following in your *server.cfg*

Expand Down

0 comments on commit 9c113e5

Please sign in to comment.