Skip to content

Commit

Permalink
Puppet 6 support (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored Jul 29, 2019
1 parent 8672b98 commit e1b2a99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def get_puppet_path():
puppet_path = None
if puppet_major_version == 3:
puppet_path = '/usr/bin/puppet'
elif puppet_major_version in [4, 5]:
elif puppet_major_version in [4, 5, 6]:
puppet_path = '/opt/puppetlabs/puppet/bin/puppet'

if not puppet_path:
Expand Down Expand Up @@ -585,7 +585,7 @@ def install_puppet_agent():
rundir = /var/run/puppet
ssldir = $vardir/ssl
"""
elif puppet_major_version in [4, 5]:
elif puppet_major_version in [4, 5, 6]:
puppet_conf_file = '/etc/puppetlabs/puppet/puppet.conf'
main_section = """[main]
vardir = /opt/puppetlabs/puppet/cache
Expand Down Expand Up @@ -1496,7 +1496,7 @@ def exec_service(service, command, failonerror=True):
puppet_conf_path = '/etc/puppet/puppet.conf'
var_dir = '/var/lib/puppet'
ssl_dir = '/var/lib/puppet/ssl'
elif puppet_version in [4, 5]:
elif puppet_version in [4, 5, 6]:
puppet_conf_path = '/etc/puppetlabs/puppet/puppet.conf'
var_dir = '/opt/puppetlabs/puppet/cache'
ssl_dir = '/etc/puppetlabs/puppet/ssl'
Expand Down

0 comments on commit e1b2a99

Please sign in to comment.