Issue #6494 has been updated by Jesse Wolfe. Status changed from Ready For Testing to Available In Testing Branch Target version changed from 2.6.x to Statler
Merged into `next` as of commit:9290b2f990fd4b267b2eb0da719b8f320484c4d7 ---------------------------------------- Bug #6494: Augeas defvar (def*?) does not appear to be supported in Puppet https://projects.puppetlabs.com/issues/6494 Author: Justin Honold Status: Available In Testing Branch Priority: Normal Assignee: Nigel Kersten Category: augeas Target version: Statler Affected Puppet version: 2.6.4 Keywords: Branch: https://github.com/domcleal/puppet/tree/tickets/master/6494 Affected URL: RHEL5 host, puppet-0.25.5-1.el5 and ruby-augeas-0.3.0-1.el5 packages from the EPEL repository. Per the 2009-06-05 commit at http://tinyurl.com/4w6ssjf , it looks like defvar is supported in 0.3.0. Example manifest code: <pre>bondprobe { [ "bond0", "bond1" ]: } define bondprobe() { augeas { "bondprobe-$name": context => "/files/etc/modprobe.conf", changes => [ "defvar nomatch '.[count(alias[. = \"$name\"]) = 0]'", "set \$nomatch/alias[last()+1] $name", "defvar match '/files/etc/modprobe.conf/alias[. = \"$name\"]'", "set \$match/modulename bonding" ], } }</pre> Returned error: <pre>err: /Stage[main]/test-server/Bondprobe[bond0]/Augeas[bondprobe-bond0]: Failed to retrieve current state of resource: Unknown command defvar</pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
