Skip to content

Commit e1b2a99

Browse files
authored
Puppet 6 support (#316)
1 parent 8672b98 commit e1b2a99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bootstrap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def get_puppet_path():
309309
puppet_path = None
310310
if puppet_major_version == 3:
311311
puppet_path = '/usr/bin/puppet'
312-
elif puppet_major_version in [4, 5]:
312+
elif puppet_major_version in [4, 5, 6]:
313313
puppet_path = '/opt/puppetlabs/puppet/bin/puppet'
314314

315315
if not puppet_path:
@@ -585,7 +585,7 @@ def install_puppet_agent():
585585
rundir = /var/run/puppet
586586
ssldir = $vardir/ssl
587587
"""
588-
elif puppet_major_version in [4, 5]:
588+
elif puppet_major_version in [4, 5, 6]:
589589
puppet_conf_file = '/etc/puppetlabs/puppet/puppet.conf'
590590
main_section = """[main]
591591
vardir = /opt/puppetlabs/puppet/cache
@@ -1496,7 +1496,7 @@ def exec_service(service, command, failonerror=True):
14961496
puppet_conf_path = '/etc/puppet/puppet.conf'
14971497
var_dir = '/var/lib/puppet'
14981498
ssl_dir = '/var/lib/puppet/ssl'
1499-
elif puppet_version in [4, 5]:
1499+
elif puppet_version in [4, 5, 6]:
15001500
puppet_conf_path = '/etc/puppetlabs/puppet/puppet.conf'
15011501
var_dir = '/opt/puppetlabs/puppet/cache'
15021502
ssl_dir = '/etc/puppetlabs/puppet/ssl'

0 commit comments

Comments
 (0)