Hi, after reading http://lists.fedoraproject.org/pipermail/devel/2012-March/163781.html I realized that ovirt-node could use some cleanup WRT config files to make it more FHS compatible. Currently we have (from ovirt.ovirtfunctions BTW should be renamed to ovirt.functions)
# configuration values are loaded in the following order: # 1. /etc/sysconfig/node-config sets the default values # 2. /etc/default/ovirt is loaded to override defaults with karg values NODE_SYSCONFIG="/etc/sysconfig/node-config" OVIRT_DEFAULTS="/etc/default/ovirt" Besides using deprecated locations, naming is confusing, so I propose to change to +# 1. /etc/ovirt-node/defaults sets the default values for the node +# 2. /etc/ovirt-node/config is loaded to override defaults with kernel arguments values +NODE_DEFAULTS="/etc/ovirt-node/defaults" +OVIRT_CONFIG="/etc/ovirt-node/config" Proposed change, including an Augeas lens which will be a collection of lenses we might need in the future is http://gerrit.ovirt.org/#change,2686 This is just untest RFC, some unresolved issues are around compatibility with old locations e.g. for upgrades, should we move old persisted configs to new locations or not? Also I've changed other locations to follow http://rvokal.fedorapeople.org/devconf2012/harald-A_streamlined_and_fully_compatible_Linux_Files.pdf e.g. ovirt-config-boot post-install and ovirt-early hooks moved from /etc/ to under /usr/share/ovirt-node/ since hooks are scripts by definition so shouldn't be in /etc. This breaks 3r parties using those hooks. Please have a look and review, I might have missed few hardcoded places. Cheers, Alan _______________________________________________ node-devel mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-devel
