I'm trying to execute the following module in Puppet this and got the error:
[root@localhost modules]# puppet apply jenkin_install.pp
Error: Could not parse for environment production: Syntax error at '8080' at /etc/puppetlabs/code/modules/jenkin_install.pp:41:52 on node localhost.localdomain
Here's the code:
exec { 'Change the port from 8080 to 8000':
command => 'sed -i'.original' 's/JENKINS_PORT="8080"/JENKINS_PORT="8000"/' /etc/sysconfig/jenkins',
path => '/usr/local/bin/:/bin/',
logoutput => true,
onlyif => 'grep "8000" /etc/sysconfig/jenkins',
}
I'm wondering how to solve the syntax error in the command?
Thanks