Ask Your Question
0

can't install puppet-server on xenial (going in circles)

asked 2017-09-28 13:00:42 -0600

DougH gravatar image

I have a clean Xenial image and have the puppetlabs xenial apt source installed

   root@puppetmaster01:~# cat /etc/apt/sources.list.d/puppetlabs.list 
   # Puppetlabs products
   deb http://apt.puppetlabs.com xenial main
   #deb-src http://apt.puppetlabs.com xenial main

   # Puppetlabs dependencies
   deb http://apt.puppetlabs.com xenial dependencies
   #deb-src http://apt.puppetlabs.com xenial dependencies

   # Puppetlabs devel (uncomment to activate)
   # deb http://apt.puppetlabs.com precise devel
   # deb-src http://apt.puppetlabs.com precise devel

so I did an apt install for the puppet server, but it wouldn't configure because of an ssl error. Ok, time for debugging. Going through troubleshooting steps on the web. I tried puppet cert clean.

root@puppetmaster01:~# puppet cert clean --all
Error: The certificate retrieved from the master does not match the agent's private key.
Certificate fingerprint: 05:A5:5B:97:8C:40:BC:93:9E:32:EB:83:28:6B:A0:44:24:0B:FD:35:E3:18:74:7A:82:C9:0E:51:EE:72:3C:17
To fix this, remove the certificate from both the master and the agent and then start a puppet run, which will automatically regenerate a certficate.
On the master:
  puppet cert clean puppetmaster01.keystonenap.com
On the agent:
  1a. On most platforms: find /var/lib/puppet/ssl -name puppetmaster01.keystonenap.com.pem -delete
  1b. On Windows: del "/var/lib/puppet/ssl/puppetmaster01.keystonenap.com.pem" /f
  2. puppet agent -t

so I tried find/delete and clean in every conceivable combination, but no avail. So I went on to try the puppetdb ssl mechanism, but there seems to be some kind of package error loop here. Apparently you cannot have a functioning puppetdb and a functioning puppet client simultaneously. Installing the puppetdb package removes puppet (which is necessary to run puppetdb), and installing puppet removes puppetdb.

root@puppetmaster01:~# apt-get install puppet
Reading package lists... Done
Building dependency tree       
Reading state information... Done
puppet is already the newest version (3.8.5-2ubuntu0.1).
The following packages were automatically installed and are no longer required:
  ca-certificates-java fontconfig-config fonts-dejavu-core java-common libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libfontconfig1 libjpeg-turbo8 libjpeg8
  liblcms2-2 libnspr4 libnss3 libnss3-nssdb libxi6 libxrender1 libxtst6 openjdk-8-jre-headless ruby-activemodel ruby-activerecord ruby-activerecord-deprecated-finders
  ruby-activesupport ruby-arel ruby-atomic ruby-blankslate ruby-builder ruby-i18n ruby-thread-safe ruby-tzinfo vim-addon-manager x11-common
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@puppetmaster01:~# apt-get install puppetdb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  hiera libxslt1.1 ruby-activemodel ruby-activerecord ruby-activerecord-deprecated-finders ruby-activesupport ruby-arel ruby-atomic ruby-blankslate ruby-builder ruby-deep-merge
  ruby-i18n ruby-json ruby-nokogiri ruby-rgen ruby-safe-yaml ruby-selinux ruby-shadow ruby-thread-safe ruby-tzinfo vim-addon-manager virt-what
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  puppet-agent
The following packages will be REMOVED:
  facter puppet puppet-common
The following NEW packages will be installed:
  puppet-agent puppetdb
0 upgraded, 2 newly installed, 3 to remove and 2 not upgraded.
Need to get 0 B/38.5 MB of archives.
After this operation, 112 MB of additional disk ...
(more)
edit retag flag offensive close merge delete

Comments

‘Puppet’ is the package in the Ubuntu packages, and ‘puppet-agent’ is the package for puppet in the puppetlabs apt repo, are you installing one package with the xenial puppet package, and another with the puppetlabs repo?

DarylW gravatar imageDarylW ( 2017-09-30 12:04:13 -0600 )edit

From your output “Unpacking puppet (3.8.5-2ubuntu0.1) ...” - that is wanting to install puppet 3.8.5, where it looks like you’re puppet agent was 5.2

DarylW gravatar imageDarylW ( 2017-09-30 12:06:10 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2017-10-04 11:54:40 -0600

DougH gravatar image

I did a full uninstall of all puppet packages including -e and restarted with the puppetlabs dist and things got cleaned up. I must have been getting components from competing dists while I was in the process of setting up.

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

Stats

Asked: 2017-09-28 13:00:42 -0600

Seen: 47 times

Last updated: Oct 04