0
I am trying to get a puppet class with parameters, Here is what I've tried
class testing ( String $file = 'testing' ) {
file { "/tmp/$file":
ensure => present,
mode => 0777,
content => "Testing123"
}
}
When I run this I get the error:
Could not parse for environment production: Syntax error at 'String'; expected ')'
Not an expert here, but looking at the puppet documentation and the error message, maybe you need to remove the space character between the open bracket and "String". Thats the only syntactical difference I can see between that and the Puppetlabs documentation example. – davidgo – 2015-11-23T00:17:55.293
What version of puppet are you using? – daxlerod – 2015-11-23T14:33:22.077