Hey,

node 3.0 moved much of the configuration stuff to the ovirt-node-config
module, but until now the whole configuration could only be done through
the TUI or during auto-installation.

ovirt-node-config is a small tool (or shall become one) which exposes
all classes from ovirt.node.config and which can be used to:
1. Introspect the classes and see what they do
2. Run the classes to perform the configuration from the console

I see two main use cases for this:
1. Test automation - This eases the testing of the functionalit ywhich
does the actual configuration work.
Basically we can write tests like:

(Pseudo code)
$ ovirt-node-config run Network.configure_disable_networking
$ assert_no_files_like "/etc/sysconfig/network-scripts/ifcfg-*"

or

$ ovirt-node-config run SSH.configure_pw_auth true
$ assert_file_contains /etc/ssh/sshd_config "PWAuth yes"


2. Reuse
Other components can use this tool to perform high-level configuration
on Node.

The corresponding draft can be found here:
http://gerrit.ovirt.org/#/c/24968/

The code is not yet fully functional.

Thoughts suggestions and anything else is welcome :)

- fabian

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
node-devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/node-devel

Reply via email to