I am trying to put together a set of puppet policies for grub/menu.lst.
The serial::grubmenulst looks like this :

    define serial::grubmenulst ( $value ) {
       $key = $title
       $context = "/files/boot/grub/menu.lst"
       augeas { "grubmenulst/${key}":
         context => "$context",
         onlyif  => "get $key != '$value'",
         changes => "set $key '$value'",
       }
    }

It is implemented in the following way :

    $svar = "${serial_tty},${serial_speed}n8r"
    serial::grubmenulst {
        "terminal/console" : value => "";
        "title[1]/kernel/elevator" : value => "deadline";
        "title[1]/kernel/console[1]" : value => "${svar}"; *### It Fails 
for this Line otherwise it works*
    }

Puppet agent complains during the run (see below). Note that, the code 
works if I comment out the last line: "title[1]/kernel/console[1]" : value 
=> "${svar}".  My initial guess is that puppet-augeas is not able to parse 
more than one array values for a single key... (!?)

    Error: Could not retrieve catalog from remote server: Error 400 on 
SERVER:     Puppet::Parser::AST::Resource failed with error ArgumentError: 
Invalid resource type serial::grubmenulst at 
/etc/puppet/modules/serial/manifests/serial.pp:16 on node <hostname>

Any suggestions ?

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to