0
votes

(I'm new to puppet - hopefully this is an easy fix).

I've got a puppet master server set up, along with two puppet agent servers. The certificates are signed and everything was going smoothly until I tried starting both of the puppet agents.

Here's the command I'm running on both agent servers:

ubuntu@img1:~$ sudo puppet agent --server=puppet.omitted.com --no-daemonize --verbose

And here's the output I'm getting on both agent servers:

Notice: Starting Puppet client version 3.4.3
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Is a directory - /etc/puppet/manifests on node img1.omitted.com
Notice: Using cached catalog
Error: Could not retrieve catalog; skipping run

Here's what my puppet.conf looks like on both agent servers:

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post
server=puppet.omitted.com

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY

And here's puppet.conf on the master server:

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post
certname=puppet.omitted.com
dns_alt_names=puppet.omitted.com
manifest=/etc/puppet/manifests/

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY

Interestingly enough, I'm seeing this in the syslog on the master server:

Oct  7 21:51:57 ip-10-10-1-207 puppet-master[17629]: message repeated 32 times: [ Could not parse for environment production: Is a directory - /etc/puppet/manifests on node img1.omitted.com]
Oct  7 21:53:57 ip-10-10-1-207 puppet-master[17629]: Could not parse for environment production: Is a directory - /etc/puppet/manifests on node img2.omitted.com
1

1 Answers

0
votes

It turns out that setting the manifest parameter in the puppet.conf on the master server to the default value causes some confusion.

The error was cleared out as soon as I removed the redundant parameter.