Browse Source

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
Colleen Murphy 10 months ago
parent
commit
f0cd27f060
2 changed files with 4 additions and 0 deletions
  1. 1
    0
      defaults/main.yml
  2. 3
    0
      templates/puppet.conf.j2

+ 1
- 0
defaults/main.yml View File

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

+ 3
- 0
templates/puppet.conf.j2 View File

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

Loading…
Cancel
Save