[Puppet Users] augeas-0.10.0_1 in FreeBSD can't see /etc/rc.conf
Howdy: Since I upgraded some of my FreeBSD boxen to augeas-0.10.0* I can't get augeas to address /etc/rc.conf. I was able to modify key/values in /etc/rc.conf in augeas-0.7.1_2 in my puppet classes and augtool. I think I recall Dominic saying that the /etc/rc.conf lens was added by the FreeBSD ports maintainer. Can you help please? I just refreshed my ports tree (portsnap fetch extract) and remade augeas. The checksums on the lens files has not changes between versions. I am seeing this behavior in FreeBSD 8.2 and 9.0 RELEASE. # pwd /usr/ports/textproc/augeas # make deinstall reinstall clean Here is the output of augtool: broken: # pkg_info |grep augeas augeas-0.10.0_1 A configuration editing tool # find /usr/local/share/augeas/lenses/ -name *rcconf* -exec sum {} \; 29678 1 /usr/local/share/augeas/lenses/tests/rcconf.aug 13563 1 /usr/local/share/augeas/lenses/rcconf.aug # augtool augtool print /files/etc/rc.conf augtool works: # pkg_info |grep augeas augeas-0.7.1_2 A configuration editing tool $ find /usr/local/share/augeas/lenses/ -name *rcconf* -exec sum {} \; 13563 1 /usr/local/share/augeas/lenses/rcconf.aug 29678 1 /usr/local/share/augeas/lenses/tests/rcconf.aug # augtool augtool print /files/etc/rc.conf /files/etc/rc.conf /files/etc/rc.conf/cloned_interfaces = lagg0 vlan502 vlan503 tap0 [snip] /files/etc/rc.conf/ifconfig_em0 = up /files/etc/rc.conf/ifconfig_em1 = up /files/etc/rc.conf/ifconfig_lagg0 = up laggproto failover laggport em0 laggport em1 /files/etc/rc.conf/openssh_enable = YES /files/etc/rc.conf/ntpd_enable = YES /files/etc/rc.conf/ntpd_sync_on_start = YES /files/etc/rc.conf/nrpe2_enable = YES /files/etc/rc.conf/sendmail_enable = NONE /files/etc/rc.conf/tmpmfs = YES /files/etc/rc.conf/postgresql_enable = YES /files/etc/rc.conf/puppet_enable = YES /files/etc/rc.conf/snmpd_enable = YES /files/etc/rc.conf/pf_enable = YES /files/etc/rc.conf/jail_enable = YES [snip] Thanks, -dkw -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] augeas-0.10.0_1 in FreeBSD can't see /etc/rc.conf
Hi Darryl, On 01/05/12 16:11, Darryl Wisneski wrote: Since I upgraded some of my FreeBSD boxen to augeas-0.10.0* I can't get augeas to address /etc/rc.conf. I was able to modify key/values in /etc/rc.conf in augeas-0.7.1_2 in my puppet classes and augtool. I think I recall Dominic saying that the /etc/rc.conf lens was added by the FreeBSD ports maintainer. Can you help please? I just refreshed my ports tree (portsnap fetch extract) and remade augeas. The checksums on the lens files has not changes between versions. I am seeing this behavior in FreeBSD 8.2 and 9.0 RELEASE. There are a few overlapping issues with /etc/rc.conf. There is indeed a lens shipped with the FreeBSD port which you're seeing here. In Augeas 0.8.1, rc.conf was added to the Shellvars lens shipped with Augeas itself, but then in 0.10.0 it was accidentally removed from the list. This has been fixed in git, but is unreleased. I suspect on 0.7.1 you're using the FreeBSD lens. On 0.10.0 you would have to be using the FreeBSD lens, but it looks like this isn't being picked up - so either the rcconf.aug lens is disabled somehow (or isn't in the right search path) or it is failing to parse your rc.conf file. broken: # pkg_info |grep augeas augeas-0.10.0_1 A configuration editing tool # find /usr/local/share/augeas/lenses/ -name *rcconf* -exec sum {} \; 29678 1 /usr/local/share/augeas/lenses/tests/rcconf.aug 13563 1 /usr/local/share/augeas/lenses/rcconf.aug # augtool augtool print /files/etc/rc.conf augtool Could you try running this in augtool to see if a lens is being used, and if there are errors? print /augeas/files/etc/rc.conf/ -- Dominic Cleal Red Hat Consulting m: +44 (0)7817 878113 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] augeas-0.10.0_1 in FreeBSD can't see /etc/rc.conf
Hi Dominic: On Tue, May 01, 2012 at 09:01:16PM +0100, Dominic Cleal wrote: Hi Darryl, On 01/05/12 16:11, Darryl Wisneski wrote: Since I upgraded some of my FreeBSD boxen to augeas-0.10.0* I can't get augeas to address /etc/rc.conf. I was able to modify key/values in /etc/rc.conf in augeas-0.7.1_2 in my puppet classes and augtool. I think I recall Dominic saying that the /etc/rc.conf lens was added by the FreeBSD ports maintainer. Can you help please? I just refreshed my ports tree (portsnap fetch extract) and remade augeas. The checksums on the lens files has not changes between versions. I am seeing this behavior in FreeBSD 8.2 and 9.0 RELEASE. There are a few overlapping issues with /etc/rc.conf. There is indeed a lens shipped with the FreeBSD port which you're seeing here. In Augeas 0.8.1, rc.conf was added to the Shellvars lens shipped with Augeas itself, but then in 0.10.0 it was accidentally removed from the list. This has been fixed in git, but is unreleased. I suspect on 0.7.1 you're using the FreeBSD lens. On 0.10.0 you would have to be using the FreeBSD lens, but it looks like this isn't being picked up - so either the rcconf.aug lens is disabled somehow (or isn't in the right search path) or it is failing to parse your rc.conf file. broken: # pkg_info |grep augeas augeas-0.10.0_1 A configuration editing tool # find /usr/local/share/augeas/lenses/ -name *rcconf* -exec sum {} \; 29678 1 /usr/local/share/augeas/lenses/tests/rcconf.aug 13563 1 /usr/local/share/augeas/lenses/rcconf.aug # augtool augtool print /files/etc/rc.conf augtool Could you try running this in augtool to see if a lens is being used, and if there are errors? print /augeas/files/etc/rc.conf/ Just reinstalling the problematic port here: augeas-0.10.0_1 install -o root -g wheel -m 444 /usr/ports/textproc/augeas/files/test_rcconf.aug /usr/local/share/augeas/lenses/tests/rcconf.aug === Compressing manual pages for augeas-0.10.0_1 === Running ldconfig /sbin/ldconfig -m /usr/local/lib === Registering installation for augeas-0.10.0_1 # augtool --version augtool 0.10.0 http://augeas.net/ Copyright (C) 2007-2011 David Lutterkort License LGPLv2+: GNU LGPL version 2.1 or later http://www.gnu.org/licenses/lgpl-2.1.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David Lutterkort # augtool augtool print /augeas/files/etc/rc.conf /augeas/files/etc/rc.conf /augeas/files/etc/rc.conf/path = /files/etc/rc.conf /augeas/files/etc/rc.conf/mtime = 1335894110 /augeas/files/etc/rc.conf/lens = @RcConf /augeas/files/etc/rc.conf/lens/info = /usr/local/share/augeas/lenses/rcconf.aug:15.11-.39: -dkw -- Dominic Cleal Red Hat Consulting m: +44 (0)7817 878113 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.