-
Dimitris Aragiorgis authored
This module reads the configuration and includes several methods for extracting info. It gets initialized with the command line arguments. It reads the DEFAULT section of synnefo, vcluster, and deploy conf files and evaluates their options in a sense that once it gets imported, one has easy access to generic configuration variables, e.g. config.synnefo_user. On the other hand the setups, nodes, ganeti and packages conf files are proper ConfigParser files with sections and default values. nodes: All info needed for each node. ganeti: All info needed for each cluster. setups: All role-nodes mappings for each setup and each cluster. packages: All special package versions for each OS. The get_info() helper method gets a node or cluster identifier (e.g. node2, ganeti1) and returns a FQDN object with all related options as attributes. The get_package() helper method is used to get the special version (if any) of a package. Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
f6532cfc