[augeas-devel] [PATCH] - New lens for NFS server settings
ajs at redhat.com
ajs at redhat.com
Thu Jan 7 02:52:51 UTC 2010
Since /etc/sysconfig/nfs comments out all settings this lens allows for specified settings to be altered and uncommented. This also has the ability to recomment a setting.
For example,
#MOUNTD_PORT=682
augtool> rm /files/etc/sysconfig/nfs/MOUNTD_PORT/commented
will become
MOUNTD_PORT=682
Recommenting is just as simple
augtool> clear /files/etc/sysconfig/nfs/MOUNTD_PORT/commented
Finally setting
augtool> set /files/etc/sysconfig/nfs/MOUNTD_PORT 5500
Cool thing about the set functionality is it will leave the setting in its current commented/uncommented state.
Thanks to David for all his help on getting this setup and some of this functionality will make its way back into shellvars for the rest of the sysconfig scripts to use.
I am hoping to utilize all of this and the pure python library for augeas to re-work system-config-nfs and more of the system-config* down the road.
thanks
--
__ __
.-----.| |_.-----.| |--.-----.-----.
|__ --|| _| _ || <| -__|__ --|
|_____||____|_____||__|__|_____|_____|
.----------------------------------.
( ajs at redhat.com || 919.754.4187 )
`----------------------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dist-nfsserver-aug.patch
Type: text/x-patch
Size: 2381 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20100106/56c47b1b/attachment.bin>
More information about the augeas-devel
mailing list