Issue #11478 has been reported by Steve Shipway.
----------------------------------------
Bug #11478: Augeas provider fails to work under Ubuntu
https://projects.puppetlabs.com/issues/11478
Author: Steve Shipway
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 2.7.6
Keywords: ubuntu, augeas
Branch:
Running Augeas provider under Ubuntu(lucid) seems to always fail.
Running Ubuntu 10.4.3 (lucid)
Upgraded augeas-tool to version 0.10.0, libaugeas-ruby1.8 version 0.3.0 in
order to make it work at all.
Now, when running an Augeas resource, it will run even when the 'onlyif' says
it should not, and it fails to update anything.
I can run the required tests and changes via 'augtool' and they work correctly,
so I know the lens and file are OK.
**Manifest:**
augeas { "config-$name":
context => "/files/etc/default/iptables-config",
incl => "/etc/default/iptables-config",
lens => 'Shellvars.lns',
onlyif => "get $name != \"$value\"",
changes => "set $name \"$value\"",
}
**Debug log:**
Mon Dec 19 14:26:33 +1300 2011
Augeas[etc-default-iptables-config-IPTABLES_SAVE_ON_RESTART](provider=augeas)
(debug): Opening augeas with root /, lens path , flags 64
Mon Dec 19 14:26:33 +1300 2011
Augeas[etc-default-iptables-config-IPTABLES_SAVE_ON_RESTART](provider=augeas)
(debug): Closed the augeas connection
Mon Dec 19 14:26:33 +1300 2011
Augeas[etc-default-iptables-config-IPTABLES_SAVE_ON_RESTART](provider=augeas)
(debug): Opening augeas with root /, lens path , flags 64
Mon Dec 19 14:26:33 +1300 2011
Augeas[etc-default-iptables-config-IPTABLES_SAVE_ON_RESTART](provider=augeas)
(debug): Closed the augeas connection
Mon Dec 19 14:26:33 +1300 2011
/Stage[main]/Iptables::Ubuntu/Iptables::Config[IPTABLES_SAVE_ON_RESTART]/Augeas[etc-default-iptables-config-IPTABLES_SAVE_ON_RESTART]/returns
(notice): executed successfully
However, after all this, the file has not been modified. Have run this on a
RedHat box with the same resource items, and found additional debug entries
appeared:
Mon Dec 19 14:29:41 +1300 2011
Augeas[etc-sysconfig-iptables-config-IPTABLES_SAVE_ON_RESTART](provider=augeas)
(debug): Opening augeas with root /, lens path , flags 64
Mon Dec 19 14:29:41 +1300 2011
Augeas[etc-sysconfig-iptables-config-IPTABLES_SAVE_ON_RESTART](provider=augeas)
(debug): Augeas version 0.7.2 is installed
Mon Dec 19 14:29:41 +1300 2011
Augeas[etc-sysconfig-iptables-config-IPTABLES_SAVE_ON_RESTART](provider=augeas)
(debug): Closed the augeas connection
I'm wondering if this is a problem with the 0.10 version of Augeas? Will try a
downgrade of augeas to manage this, however the libaugeas-ruby1.8 module will
not work at all before v0.3.
--
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.