Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: /Stage[main]/Sudo/Augeas[includedirsudoers]: Could not evaluate: Saving failed, see debug #128

Closed
mukeshdevops opened this issue Jul 7, 2015 · 2 comments · Fixed by #135

Comments

@mukeshdevops
Copy link

"name": "saz-sudo",
"version": "3.0.9",

Puppet augeas lens fails to parse the following line in sudo file:

Cmnd_Alias BALANCE = /sbin/lvm lvdisplay -m, /sbin/scsi_id -p 0x83 -s /block/sd* -g, /lib/udev/scsi_id --page=0x83 --whitelisted --device=/dev/sd_, /sbin/dmsetup deps, /sbin/fdisk -lu, /sbin/mdadm -D /dev/sd_, /usr/local/bin/scli -z all

Warning: Augeasincludedirsudoers: Loading failed for one or more files, see debug for /augeas//error output
Debug: Augeasincludedirsudoers: /augeas/files/etc/sudoers/error = parse_failed
Debug: Augeasincludedirsudoers: /augeas/files/etc/sudoers/error/pos = 3549
Debug: Augeasincludedirsudoers: /augeas/files/etc/sudoers/error/line = 105
Debug: Augeasincludedirsudoers: /augeas/files/etc/sudoers/error/char = 0
Debug: Augeasincludedirsudoers: /augeas/files/etc/sudoers/error/lens = /var/opt/lib/pe-puppet/lib/augeas/lenses/fixedsudoers.aug:509.10-.70:
Debug: Augeasincludedirsudoers: /augeas/files/etc/sudoers/error/message = Iterated lens matched less than it should
Debug: Augeasincludedirsudoers: Will attempt to save and only run if files changed
Debug: Augeasincludedirsudoers: sending command 'set' with params ["/files/etc/sudoers/#includedir", "/etc/sudoers.d"]
Debug: Augeasincludedirsudoers: Closed the augeas connection

augeas tool parse it successfully with the standard lense /usr/share/augeas/lenses/dist/sudoers.aug shipped with augtool 1.2.0.

@tosmi
Copy link
Contributor

tosmi commented Aug 11, 2015

you do not mention on what distribution this happens... (rhel, debian). please also specify the exact version you are using. i'm not sure the the lense from augeas 1.2.0 is going to work on all distributions, especially the older ones (e.g. rhel 5).

@mukeshdevops
Copy link
Author

The issue was detected on rhel5. I agree that we should include the standard souders lense for rhel5.

@saz saz closed this as completed in #135 Apr 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants