could not match error in each function

asked 2014-11-12 02:28:05 -0500

Chutki gravatar image


I have below code

class dummy::eachtest{

$filename = [1,2,3]

each($filename) |$value| {
file {'/etc/dummy/manifests/${value}':
ensure => 'directory',

I am getting below error when I compile

Could not match |$value| at /etc/dummy/manifests/eachtest.pp:5 on node
edit retag flag offensive close merge delete


What version of puppet are you using, and do you have `parser = future` in your puppet.conf ?

llowder gravatar imagellowder ( 2014-11-12 07:00:36 -0500 )edit

I am using version 3.7.3 I added parser = future in puppet.conf, still I am getting "Use of 'import' has been discontinued in favor of a manifest directory" error

Chutki gravatar imageChutki ( 2014-11-13 21:24:41 -0500 )edit