Add parser = future config option to puppet.conf

Enable testing puppet 3 with the future parser[1] by adding the boolean
parameter 'futureparser' to the role, which will turn on `parser =
future` in puppet.conf if set.

[1] https://docs.puppet.com/puppet/3.8/experiments_future.html

Change-Id: Ia65948ba954457d873758ed08502e844151f5cf5
This commit is contained in:
Colleen Murphy 2018-06-05 22:38:48 +02:00
parent 7fbe25598b
commit f0cd27f060
2 changed files with 4 additions and 0 deletions

View File

@ -16,3 +16,4 @@ puppet_hiera_datadir: '/opt/system-config/'
puppet_environment_basedir: '/opt/system-config/'
puppet_environment: production
puppet_timeout: 30m
futureparser: False

View File

@ -15,6 +15,9 @@ basemodulepath = {{ puppet_basemodulepath }}
{% if puppet_environmentpath != '' %}
environmentpath={{ puppet_environmentpath }}
{% endif %}
{% if puppet_version != '4' and futureparser == True %}
parser = future
{% endif %}
[master]
# These are needed when the puppetmaster is run by passenger