parser is invalidated in puppet v4.x (addendum)
@@ -227,11 +227,12 @@ task toolchain(type:Exec,
description: 'Setup dev. env via toolchain; Requires: Puppet, sudo',
group: DEVENV_GROUP) {
def command = ['sudo', 'puppet', 'apply', '-d']
- if ("puppet --version".execute().text[0] == '3') {
+ def version = "sudo puppet --version".execute().text
+ if ('3.7' <= version && version < '4') {
command.addAll(['--parser', 'future'])
}
- command.addAll(["--modulepath=${projectDir.absolutePath}:/etc/puppet/modules", '-e',
- 'include bigtop_toolchain::installer'])
+ command.addAll(["--modulepath=${projectDir.absolutePath}:/etc/puppet/modules:/usr/share/puppet/modules",
+ '-e', 'include bigtop_toolchain::installer'])
workingDir '.'
commandLine command
}
