Issue #13204 has been reported by Dominic Cleal.
----------------------------------------
Bug #13204: Augeas save under /boot causes no such file or directory errror
https://projects.puppetlabs.com/issues/13204
Author: Dominic Cleal
Status: Unreviewed
Priority: Low
Assignee: Dominic Cleal
Category: augeas
Target version: 2.7.x
Affected Puppet version: 2.7.12rc2
Keywords:
Branch:
The following snippet generates an error:
augeas { "grub":
context => "/files/boot/grub/menu.lst",
changes => "set timeout 3",
}
err: /Stage[main]//Augeas[grub]: Could not evaluate: No such file or
directory -
/home/dcleal/code/puppet/augeas-examples/fakeroot/boot/grub/menu.lst.augnew
/boot/grub/menu.lst is a symlink to /boot/grub/grub.conf.
Root cause was due to bug [#264](https://fedorahosted.org/augeas/ticket/264) in
Augeas, which caused it to return the saved path twice from
/augeas/events/saved.
Because Puppet loops around this in 2.7.x, diffing and unlinking the new files,
it errors on the second iteration. Since this happens in need_to_run?, no
changes are made.
As a workaround, edit via /files/etc/grub.conf or /files/boot/grub/grub.conf
(with lens/incl) instead of /files/boot/grub/menu.lst.
--
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.