Zan Thorn
2014-May-19 21:50 UTC
[Puppet Users] What is wrong with this? Could not match ${variablehere}
So I am just trying to create a file based off a template. I've done this many times but am stumped. Maybe some silly syntax error I'm not seeing? I define the variable: $local_server_root = 'E:\LocalServer' Then use it in the file type: file { 'LocalServer_conf': ensure => file, path => "${local_server_root}\\LocalServer.conf", content => template('local_server/LocalServer.conf.erb'), require => Package['local_server'], notify => Service['local_server'], } But I am still getting this error?! Any help is appreciated. err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not match ${local_server_root}\\LocalServer.conf", at /etc/puppetlabs/puppet/environments/test/modules/local_server/manifests/init.pp:45 on node node.local -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4f8ee26b-bc51-48be-9b52-c35d299bf96a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.