Ask Your Question
0

I inherited a Puppet enviroment, please help.

asked 2017-03-09 14:58:05 -0500

usaims gravatar image

I have now inherited a Puppet environment, I took the Puppet Fundamentals class and I'm trying to get acclimated. I created a branch from our main GIT environment so that I won't break production. I have the Puppet master in debug mode. When I do a 'puppet agent -t' on the agent, I'm getting the following error on the agent:

root@node0:/etc/puppet# puppet agent -t

Notice: Ignoring --listen on onetime run

Info: Retrieving pluginfacts

Info: Retrieving plugin

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Must pass tz to Class[Postgres] on node node0.xxxxxx.vm

Warning: Not using cache on failed catalog

Error: Could not retrieve catalog; skipping run

on the Puppet Master, the debug mode output says:

Error: Must pass tz to Class[Postgres] on node node0.xxx.vm

Here is my puppet.conf on the master:

root@puppet:/etc/puppet# cat puppet.conf

[main]

logdir=/var/log/puppet

vardir=/var/lib/puppet

ssldir=/var/lib/puppet/ssl

rundir=/var/run/puppet

factpath=$vardir/lib/facter

[master]

dnsaltnames = puppet,puppet.xxx.vm

sslclientheader = SSLCLIENTS_DN

sslclientverifyheader = SSLCLIENT_VERIFY

parser = future

environmentpath = $confdir/environments

prerun_command=/etc/puppet/etckeeper-commit-pre

postrun_command=/etc/puppet/etckeeper-commit-post

[agent]

environment = production

listen = true

Here is the puppet.conf on the agent:

root@node0:/etc/puppet# cat puppet.conf

[main]

logdir=/var/log/puppet

vardir=/var/lib/puppet

ssldir=/var/lib/puppet/ssl

rundir=/var/run/puppet

factpath=$vardir/lib/facter

[master]

dnsaltnames = puppet,puppetxxx.vm

sslclientheader = SSLCLIENTS_DN

sslclientverifyheader = SSLCLIENT_VERIFY

environmentpath = $confdir/environments

prerun_command=/etc/puppet/etckeeper-commit-pre

postrun_command=/etc/puppet/etckeeper-commit-post

[agent]

environment = hatestvmware

listen = true

Any help will be appreciated.

usaims

edit retag flag offensive close merge delete

Comments

Why don't you speak with the previous maintainer? This (ask.puppetlabs.com) is _not_ a general support hotline but a Q'n'A platform.

Kai Burghardt gravatar imageKai Burghardt ( 2017-03-09 18:07:34 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-09 21:51:09 -0500

DarylW gravatar image

updated 2017-03-09 21:51:32 -0500

Without being able to see your specific puppet code, must pass x to Class[foo] usually means that you are missing a required class parameter. That parameter may have been previously assigned via automatic parameter lookups in hiera, or you modified either the base module or your calling module.

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

1 follower

Stats

Asked: 2017-03-09 14:58:05 -0500

Seen: 37 times

Last updated: Mar 09