Is this legitimate puppet code? I'm trying to pass arguments instead of
using global variables (ie, don't keep looking them up in hiera). This
syntax works elsewhere, but I've yet to use it within a class. When I
run 'puppet parser validate', I get an error.
class cis::iptables (
Integer $level,
String $type,
Array $roles ) {
include cis::iptables::install
class {'cis::iptables::configure': 'level' => $level, 'type' =>
$type, 'roles' => $roles} #This line
class {'cis::iptables::service': 'level' => $level, 'type' => $type,
'roles' => $roles} # and this line
}
--
Prentice Bisbal
Lead Software Engineer
Princeton Plasma Physics Laboratory
http://www.pppl.gov