Which version of Puppet am I using?

74 views
Skip to first unread message

Sans

unread,
May 4, 2017, 1:50:49 AM5/4/17
to Puppet Users
Dear all,

I was just trying to install Puppet v3.8.7 with PuppetDB v3.2.4:

root@e115-s-pmaster-001:/# dpkg -s puppet|grep -i version
Version: 3.8.7-1puppetlabs1
Config-Version: 3.8.7-1puppetlabs1
#
root@e115-s-pmaster-001:/# dpkg -s puppetdb|grep -i version
Version: 3.2.4-1puppetlabs1

but puppet --version reports v4.10.0:

root@e115-s-pmaster-001:/# puppet --version
4.10.0

FYI, my initial/main issue started with configuration value for vardir and ssldir, as reported by puppet. Puppet should have used this (according to puppet.conf):

root@e115-s-pmaster-001:/# egrep '(vardir|ssldir)=' /etc/puppet/puppet.conf
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl

but puppet reports a different location:

root@e115-s-pmaster-001:/# puppet config print vardir ssldir
vardir = /opt/puppetlabs/puppet/cache
ssldir = /etc/puppetlabs/puppet/ssl

But I have a feelings that the config mismatch got something to do with version mismatch as well. Anyone here to help?

-San

Sans

unread,
May 4, 2017, 6:02:06 AM5/4/17
to Puppet Users
Looks like Puppetforge  puppetdb module is doing some thing under the hood. With a vanilla installation, everything seems look right:

root@e115-s-pmaster-001:/# dpkg -l|egrep 'puppet((master|db){,1})[ -]'|awk '{printf ("%-22s%s\n",$2,$3)}'
puppet                3.8.7-1puppetlabs1
puppet-common         3.8.7-1puppetlabs1
puppetdb              3.2.4-1puppetlabs1
puppetmaster          3.8.7-1puppetlabs1
puppetmaster-common   3.8.7-1puppetlabs1
#
root@e115-s-pmaster-001:/etc/apt/sources.list.d# puppet config print vardir ssldir
vardir = /var/lib/puppet
ssldir = /var/lib/puppet/ssl
#
root@e115-s-pmaster-001:/etc/apt/sources.list.d# puppet --version
3.8.7


Things seem to be changing the moment I apply that module. Any one got a clue?

-San

Gavin Williams

unread,
May 4, 2017, 6:11:38 AM5/4/17
to Puppet Users
Sans

I wouldn't be surprised if that version of the 'puppetdb' pkg has a dependency on 'puppetagent', which will install Puppet 4.x.
See https://docs.puppet.com/puppetdb/#versions for more info on PuppetDB + Puppet support... 

So if you really want to use Puppet 3.x, you could try and install 'puppetdb' < 3... 

However the recommendation everywhere now is to use Puppet 4.x, as Puppet 3 has been EOL'd... 

HTH

Gav

Sans

unread,
May 4, 2017, 8:35:01 AM5/4/17
to Puppet Users
Thanks Gav! I see that now.
PuppetDB v3 is only compatible with Puppet v4, which I cannot upgrade to it yet.

Some issue with newer version of puppetboard module, I suppose, which seems require puppetDB v3

-San

fatmcgav

unread,
May 4, 2017, 8:40:13 AM5/4/17
to puppet...@googlegroups.com
You should be able to roll Puppetboard back to an earlier version that supports PuppetDB 2.x...

Glad I could help though... 

Gav 

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/K9VGn6tjbmQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/efc48051-e8c8-49dc-b5ca-95e6706b486b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages