err: Could not request certificate: getaddrinfo: Name or service not known

asked 2016-03-13 01:54:48 -0500

shiblybcc gravatar image

Everytime I run puppet agent -t I get this error

err: Could not request certificate: getaddrinfo: Name or service not known
Exiting; failed to retrieve certificate and waitforcert is disabled

I just added vagrant folder, did init and my vagrant file

 config.vm.box = "hashicorp/precise64"

  config.vm.provision :shell, path: "bootstrap.sh"
  config.vm.network :forwarded_port, guest: 80, host: 436

and bootstrap.sh file

#!/usr/bin/env bash

apt-get update
apt-get install -y apache2
if ! [ -L /var/www ]; then
  rm -rf /var/www
  ln -fs /vagrant /var/www
fi

after setting up all this I ran vagrant up command, then did vagrant ssh. Till this everything worked fine.

Then I started to run some puppet commands from their doc. Whenever I run puppet agent -t I get above mentioned error. How can I solve this?

I am using linux mint and virtual box, vagrant and puppet.

edit retag flag offensive close merge delete

Comments

It doesn't look like you have a puppet master installed, and by default if you don't have one configured it will look for one at the hostname of 'puppet'. You would need some setup steps to configure your master before you can run an agent. I'm assuming puppet apply -e 'notify{"hi":}' works?

DarylW gravatar imageDarylW ( 2016-03-13 23:31:35 -0500 )edit