I have below code
class dummy::eachtest{
$filename = [1,2,3]
each($filename) |$value| {
file {'/etc/dummy/manifests/${value}':
ensure => 'directory',
}
}
I got below error when I compile
Could not match |$value| at /etc/dummy/manifests/eachtest.pp:5 on node Got an update need to add future parser in config file
I added parser = future in puppet.conf under [master]
Now I am getting the below error when I compile eachtest.pp manifest
Use of 'import' has been discontinued in favor of a manifest directory
My puppet version is 3.7.3