I've been trying to install puppet agent on CentOS 7.5 by executing curl -k https://: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/current/install.bash | 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/2018.1.4/el-7-x86_64.bash ' failed (exit_code: 60)
Error code 60 attempting to reach https://puppetmaster:8140/packages/2018.1.4/el-7-x86_64.bash
[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/server/data/packages/public/2018.1.4# pwd
/opt/puppetlabs/server/data/packages/public/2018.1.4
root@puppetmaster/opt/puppetlabs/server/data/packages/public/2018.1.4# 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/2018.1.4/el-7-x86_64# ls -al
total 458184
drwxr-xr-x 3 root root 4096 Sep 10 03:07 .
drwxr-xr-x 5 root root 4096 Sep 10 03:36 ..
-rw-r--r-- 1 root root 39211600 Sep 10 03:07 pe-activemq-2018.1.5.15.3-4.pe.el7.noarch.rpm
-rw-r--r-- 1 root root 35880 Sep 10 03:07 pe-backup-tools-1.0.6-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 16878736 Sep 10 03:07 pe-client-tools-18.1.3-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 26377411 Sep 10 03:07 pe-console-services-2018.1.4.27-1.el7.noarch.rpm
-rw-r--r-- 1 root root 5820 Sep 10 03:07 pe-console-services-termini-2018.1.4.27-1.el7.noarch.rpm
-rw-r--r-- 1 root root 6520376 Sep 10 03:07 pe-installer-2018.1.4.2-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 44474020 Sep 10 03:07 pe-java-2018.1.1.8.0.181-1.b13.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 12422500 Sep 10 03:07 pe-java-devel-2018.1.1.8.0.181-1.b13.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 9364 Sep 10 03:07 pe-license-2018.1.1.0.1-2.b15.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 1025412 Sep 10 03:07 pe-modules-2018.1.4.0-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 301112 Sep 10 03:07 pe-nginx-2018.1.1.14.0-1.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 49047052 Sep 10 03:07 pe-orchestration-services-0.12.76-1.el7.noarch.rpm
-rw-r--r-- 1 root root 14854168 Sep 10 03:07 pe-postgresql-2018.1.9.6.10-1.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 13708984 Sep 10 03:07 pe-postgresql-contrib-2018.1.9.6.10-1.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 14435504 Sep 10 03:07 pe-postgresql-devel-2018.1.9.6.10-1.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 95256 Sep 10 03:07 pe-postgresql-pglogical-2018.1.1.2.1-3.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 17919124 Sep 10 03:07 pe-postgresql-server-2018.1.9.6.10-1.pe.el7.x86_64.rpm
-rw-r--r-- 1 root root 25874930 Sep 10 03:07 pe-puppetdb-5.2.4-1.el7.noarch.rpm
-rw-r--r-- 1 root root 23134 Sep 10 03:07 pe-puppetdb-termini-5.2.4-1.el7.noarch.rpm
-rw-r--r-- 1 root root 14088 Sep 10 03:07 pe-puppet-enterprise-release-2018.1.4.1-1.pe.el7.noarch.rpm
-rw-r--r-- 1 root root 5496 Sep 10 03:07 pe-puppet-license-cli-0.1.7.28-1.pe.el7.noarch.rpm
-rw-r--r-- 1 root root 74428730 Sep 10 03:07 pe-puppetserver-2018.1.0.68-1.el7.noarch.rpm
-rw-r--r-- 1 root root 8942520 Sep 10 03:07 pe-r10k-2.6.2.8-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 81906952 Sep 10 03:07 pe-razor-server-1.9.2.0-1.el7.noarch.rpm
-rw-r--r-- 1 root root 45956 Sep 10 03:07 pe-tasks-0.1.2-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 20552128 Sep 10 03:07 puppet-agent-5.5.6-1.el7.x86_64.rpm
drwxr-xr-x 2 root root 4096 Sep 10 03:07 repodata
root@puppetmaster:/opt/puppetlabs/server/data/packages/public/2018.1.4/ubuntu-16.04-amd64# pwd
/opt/puppetlabs/server/data/packages/public/2018.1.4/el-7-x86_64
root@puppetmaster:/opt/puppetlabs/server/data/packages/public/2018.1.4/ubuntu-16.04-amd64# ls -al
total 341696
drwxr-xr-x 6 root root 4096 Sep 10 03:10 .
drwxr-xr-x 5 root root 4096 Sep 10 03:36 ..
drwxr-xr-x 2 root root 4096 Aug 22 18:22 conf
drwxr-xr-x 2 root root 4096 Aug 22 18:22 db
drwxr-xr-x 3 root root 4096 Aug 22 18:22 dists
lrwxrwxrwx 1 root root 11 Sep 10 03:10 el-7-x86_64 -> el-7-x86_64
-rw-r--r-- 1 root root 25505 Sep 10 01:05 Packages
-rw-r--r-- 1 root root 6994 Sep 10 01:05 Packages.gz
-rw-r--r-- 1 root root 39135720 Sep 10 01:05 pe-activemq_2018.1.5.15.3-4xenial_all.deb
-rw-r--r-- 1 root root 28768 Sep 10 01:05 pe-backup-tools_1.0.6-1xenial_amd64.deb
-rw-r--r-- 1 root root 12939432 Sep 10 01:05 pe-client-tools_18.1.3-1xenial_amd64.deb
-rw-r--r-- 1 root root 26355924 Sep 10 01:05 pe-console-services_2018.1.4.27-1xenial_all.deb
-rw-r--r-- 1 root root 3860 Sep 10 01:05 pe-console-services-termini_2018.1.4.27-1xenial_all.deb
-rw-r--r-- 1 root root 5641816 Sep 10 01:05 pe-installer_2018.1.4.2-1xenial_amd64.deb
-rw-r--r-- 1 root root 26847964 Sep 10 01:05 pe-java_2018.1.1.8.0.181-1xenial_amd64.deb
-rw-r--r-- 1 root root 8335600 Sep 10 01:05 pe-java-devel_2018.1.1.8.0.181-1xenial_amd64.deb
-rw-r--r-- 1 root root 4842 Sep 10 01:05 pe-license_2018.1.1.0.1-2xenial_amd64.deb
-rw-r--r-- 1 root root 498384 Sep 10 01:05 pe-modules_2018.1.4.0-1xenial_amd64.deb
-rw-r--r-- 1 root root 272230 Sep 10 01:05 pe-nginx_2018.1.1.14.0-1xenial_amd64.deb
-rw-r--r-- 1 root root 49011820 Sep 10 01:05 pe-orchestration-services_0.12.76-1xenial_all.deb
-rw-r--r-- 1 root root 13739238 Sep 10 01:05 pe-postgresql_2018.1.9.6.10-1xenial_amd64.deb
-rw-r--r-- 1 root root 12464220 Sep 10 01:05 pe-postgresql-contrib_2018.1.9.6.10-1xenial_amd64.deb
-rw-r--r-- 1 root root 13359176 Sep 10 01:05 pe-postgresql-devel_2018.1.9.6.10-1xenial_amd64.deb
-rw-r--r-- 1 root root 80128 Sep 10 01:05 pe-postgresql-pglogical_2018.1.1.2.1-3xenial_amd64.deb
-rw-r--r-- 1 root root 16081166 Sep 10 01:05 pe-postgresql-server_2018.1.9.6.10-1xenial_amd64.deb
-rw-r--r-- 1 root root 25864090 Sep 10 01:05 pe-puppetdb_5.2.4-1xenial_all.deb
-rw-r--r-- 1 root root 20562 Sep 10 01:05 pe-puppetdb-termini_5.2.4-1xenial_all.deb
-rw-r--r-- 1 root root 9032 Sep 10 01:05 pe-puppet-enterprise-release_2018.1.4.1-1xenial_all.deb
-rw-r--r-- 1 root root 3340 Sep 10 01:05 pe-puppet-license-cli_0.1.7.28-1puppet1_all.deb
-rw-r--r-- 1 root root 74232646 Sep 10 01:05 pe-puppetserver_2018.1.0.68-1xenial_all.deb
-rw-r--r-- 1 root root 7764828 Sep 10 01:05 pe-r10k_2.6.2.8-1xenial_amd64.deb
-rw-r--r-- 1 root root 26886 Sep 10 01:05 pe-tasks_0.1.2-1xenial_amd64.deb
drwxr-xr-x 3 root root 4096 Aug 22 18:22 pool
-rw-r--r-- 1 root root 17045768 Sep 10 01:05 puppet-agent_5.5.6-1xenial_amd64.deb
-rw-r--r-- 1 root root 505 Sep 10 01:05 Release
-rw-r--r-- 1 root root 819 Sep 10 01:05 Release.gpg
However, the same error found with no success. I used to be able to use the exact same method with an older version when I did some testing on May last year.
I would appreciate if you could shed some light on this issue.
Thanks,
jPuppet
↧