I'm trying to run both puppetmaster and agent on an Ubuntu Mate 15.10 vm.
My /etc/hosts contains the following relevant entries
127.0.0.1 localhost
127.0.1.1 ubuntu
127.0.1.1 ubuntu.localdomain
My /etc/puppet/puppet.conf contains the following entries
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post
dns_alt_names=puppet,ubuntu.localdomain
server=ubuntu.localdomain
[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
I'm issuing the following commands
ps -ef|grep puppet
[kill both master and agent if running]
sudo rm -rf /var/lib/puppet/ssl
sudo service puppetmaster start
sudo service puppet restart
sudo puppet agent -t
The last command returns
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for ubuntu.localdomain
Info: Applying configuration version '1453930694'
Notice: Finished catalog run in 0.01 seconds
Now if I run sudo puppet cert list
it doesn't show anything. Also issuing sudo puppet cert sign ubuntu.localdomain
after it throws the following error
Error: Could not find certificate request for ubuntu.localdomain
What am I doing wrong? BTW I'm using puppet 3.7.2 and hostname -f
returns ubuntu. But using this hostname in puppet.conf throws some error, so I'm appending it with .localdomain