Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

must pass error

Hi,

I am getting error Must pass filename to Dummy::Parfil[a] at /etc/dummy/manifests/sys_fil.pp:3 on node

class dummy::sys_fil {
  $filename = ['a','b']
  dummy::parfil{$filename:}
}


define dummy::parfil ($filename){
file {$filename:
ensure => 'file',
path => "/etc/dummy/manifests/${filename}"
}
}

please help me.