can't use different environment for puppet agent -
i have agent/master setup. have created new environment in /etc/puppetlabs/code/environments/
called master
.
the content of environment.conf
master
directory environment is
modulepath = site:modules:$basemodulepath manifest = manifests/site.pp
and when try puppet agent -t --environment master
getting error
notice: local environment: 'master' doesn't match server specified node environment 'production', switching agent 'production'. info: retrieving pluginfacts info: retrieving plugin info: loading facts info: caching catalog node1.localpuppet.com info: applying configuration version '1490712072' notice: applied catalog in 0.67 seconds
i new puppet. changes need?
this "really fun" quirk of puppet enterprise showed in last couple of years. have specify nodes in pe classifier allowed specify directory environment in puppet.conf
or in puppet agent -t --environment
arguments.
in agent-specified environment tab in classifier (you see @ bottom of picture above), can enable nodes. adding rule, selecting name
fact, using regular expression (~
), using regexp matching characters (.*
). after fill out, pe classifier give number of matching nodes. should subscribed master. remember click in bottom right update rules. nodes able use master
instead of production
config file or cli arguments.
that being said, if doing avoid naming default git branch production
in control repository when working code manager, should rename branch easier.
Comments
Post a Comment