1

How to determine from the puppet master whether the installed version is opensource or enterprise?

Thanks, Lokesh

Lokn
  • 421
  • 4
  • 17
  • Why do you want to make this determination inside Puppet? And which version do you want -- that of the agent or that of the master? – John Bollinger Dec 16 '15 at 16:06

1 Answers1

0

Most obvious look at the "puppetversion" fact on enterprise

# /usr/local/bin/facter puppetversion
3.4.3 (Puppet Enterprise 3.2.0)

on open source

# facter puppetversion
3.7.3

The fact is easily available in manifests

Alternative method

puppet config print config

if it is /etc/puppet/puppet.conf then it's probably open source puppet

if it is /etc/puppetlabs/puppet/puppet.conf probably enterprise

You could also check for those files and if they existed. Of course the file location is not compulsary, these are just defaults

Vorsprung
  • 32,923
  • 5
  • 39
  • 63
  • I checked the command facter puppetversion, it looks like it has been removed in the latest version of pe2015 and facter 3.1, is there any other command which gives the exact version? – Lokn Dec 15 '15 at 14:57
  • Also facter -p puppetversion, is just giving the version it is not showing whether it is enterprise or not. – Lokn Dec 15 '15 at 15:09
  • @Lokn sorry only have that old version of puppet enterprise so can't help you. Upgrade has been kicked into Q2 2016 :( – Vorsprung Dec 15 '15 at 15:33