Ask Your Question
0

puppet agent installation failed on different nix platform with puppet master

asked 2018-09-10 06:06:06 -0600

I've been trying to install puppet agent on CentOS 7.5 by executing curl -k https://<puppetmaster>:8140/packages/current/install.bash | sudo bash on CentOS 7.5 while my puppet master is running on Ubuntu 16.04. However, it kept giving me an error with failed (exit_code: 60) as captured below.

[root@agentc1 ~]# curl -k https://puppetmaster:8140/packages/cu... | sudo bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 25652 100 25652 0 0 2335 0 0:00:10 0:00:10 --:--:-- 5780 E: 'curl --tlsv1 --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem -o /tmp/tmp.fectxws8Hf -L --write-out %{http_code} -s https://puppetmaster:8140/packages/20... ' failed (exit_code: 60) Error code 60 attempting to reach https://puppetmaster:8140/packages/20... [root@agentc1 ~]#

No issue found when executing the same script to install puppet agent on Ubuntu 16.04, which is the same platform with puppet master.

I have extracted puppet-enterprise-2018.1.4-el-7-x86_64.tar.gz and copied the original files and folders of /puppet-enterprise-2018.1.4-el-7-x86_64/packages/el-7-x86_64 over into /opt/puppetlabs/server/data/packages/public/2018.1.4/el-7-x86_64/ of puppetmaster. So now, there are /opt/puppetlabs/server/data/packages/public/2018.1.4/el-7-x86_64-5.5.6/ with el-7-x86_64 as its link and also /opt/puppetlabs/server/data/packages/public/2018.1.4/ubuntu-16.04-amd64-5.5.6 with ubuntu-16.04-amd64 as its link.

Here're the lists of these 2 packages folders

root@puppetmaster/opt/puppetlabs/serv... pwd /opt/puppetlabs/server/data/packages/public/2018.1.4 root@puppetmaster/opt/puppetlabs/serv... ls -al total 176 drwxr-xr-x 5 root root 4096 Sep 10 03:36 . drwxr-xr-x 3 root root 4096 Sep 10 00:40 .. lrwxrwxrwx 1 root root 70 Sep 10 03:15 el-7-x86_64 -> /opt/puppetlabs/server/data/packages/public/2018.1.4/el-7-x86_64-5.5.6 drwxr-xr-x 3 root root 4096 Sep 10 03:07 el-7-x86_64-5.5.6 -rw-r--r-- 1 root root 17371 Sep 10 03:21 el-7-x86_64.bash -rw-r--r-- 1 root root 312 Sep 10 03:21 el-7-x86_64.repo -rw-r--r-- 1 root root 25652 Sep 10 00:40 install.bash -rw-r--r-- 1 root root 25652 Sep 10 03:36 installe.bash -rw-r--r-- 1 root root 10891 Sep 10 00:40 install.ps1 lrwxrwxrwx 1 root root 77 Sep 10 00:40 ubuntu-16.04-amd64 -> /opt/puppetlabs/server/data/packages/public/2018.1.4/ubuntu-16.04-amd64-5.5.6 drwxr-xr-x 6 root root 4096 Sep 10 03:10 ubuntu-16.04-amd64-5.5.6 -rw-r--r-- 1 root root 17672 Sep 10 00:40 ubuntu-16.04-amd64.bash -rw-r--r-- 1 root root 29358 Sep 10 00:40 upgrade.bash lrwxrwxrwx 1 root root 73 Sep 10 00:40 windows-x86_64 -> /opt/puppetlabs/server/data/packages/public/2018.1.4/windows-x86_64-5.5.6 drwxr-xr-x 2 root root 4096 Sep 10 00:39 windows-x86_64-5.5.6

root@puppetmaster:/opt/puppetlabs/server/data/packages/public/2018.1.4/el-7-x86_64# pwd /opt/puppetlabs/server/data/packages/public/2018.1.4/el-7-x86_64 root@puppetmaster:/opt/puppetlabs/server/data/packages/public ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-10 09:40:27 -0600

Hi,

This issue has been resolved by manually install puppet-agent-5.5.6-1.el7.x86_64.rpm on CentOS 7.5 directly. After that I just run through below steps to clean up and regenerate a new certificate.

On the puppetmaster:

puppet cert clean agentc3.mylab.local

On the agent:

rm -rf $(puppet master --configprint ssldir)

Then

vi /etc/puppetlabs/puppet/puppet.conf

And make sure that the agent is added into certname under [main] and the puppet master is added into server as well as dns_alt_names under [master], then run

puppet agent --test --waitforcert 10

After that the agent will show up into Unsigned certificates in puppet console.

Thanks, jPuppet

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: 2018-09-10 06:06:06 -0600

Seen: 29 times

Last updated: Sep 10