May I highly recommend Visual Studio Code with the puppet plugin - it picks up also sorts of things like this before you even start testing your code
A huge leap in productivity for me! John On Wed, 12 Feb 2020 at 01:43, 'Prentice Bisbal' via Puppet Users < [email protected]> wrote: > Yup, that fixed it. Thanks for the help. > > Prentice > > On 2/10/20 4:53 PM, Ramin K wrote: > > Looks like single quoting params is causing the problem. This passes > > validation > > > > class { 'cis::iptables::configure': > > level => $level, > > type => $type, > > roles => $roles, > > } > > > > Ramin > > > > On 2/10/2020 12:38 PM, 'Prentice Bisbal' via Puppet Users wrote: > >> 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 > >> } > >> > > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/bd98ec7d-e541-2759-abd3-f0bbe418c89e%40pppl.gov > . > -- John Warburton Ph: 0417 299 600 Email: [email protected] -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAAJLFxW4PtgYmNnhH1k_btKXWBXDYPKeVye8epO0iTEpODOjdQ%40mail.gmail.com.
