Reads the configuration properties from a ini file.
Parameters: | configfile (str) – path to configfile |
---|
Reads the configuration properties from the ini file and links the section to comply with the cluster config dictionary format.
Returns: | dictionary containing all configuration properties from the ini file in compliance to the cluster config format |
---|---|
Raises : | voluptuous.MultipleInvalid if not all sections present or broken links between secitons |
Validator for the cluster configuration dictionary.
Parameters: | config – dictionary containing cluster configuration properties |
---|
configuration and (II) offer factory methods to create all kind of objects that need information from the configuration.
The cluster configuration dictionary is structured in the following way: (see an example @
{ "<cluster_template>" : {
"setup" : { properties of the setup section },
"cloud" : { properties of the cloud section },
"login" : { properties of the login section },
"cluster" : { properties of the cluster section },
"nodes": { "<node_kind>" : { properties of the node},
"<node_kind>" : { properties of the node},
},
},
"<cluster_template>" : {
(see above)
}
}
Parameters: |
|
---|---|
Raises MultipleInvalid: | |
configuration validation |
Creates a cloud provider by inspecting the configuration properties of the given cluster template.
Parameters: | cluster_template (str) – template to use (if not already specified on init) |
---|---|
Returns: | cloud provider that fulfills the contract of elasticluster.providers.AbstractSetupProvider |
Creates a cluster by inspecting the configuration properties of the given cluster template.
Parameters: |
|
---|
will be named after the template.
Returns: | elasticluster.cluster.cluster instance |
---|---|
Raises ConfigurationError: | |
cluster template not found in config |
Creates the setup provider for the given cluster template.
Parameters: |
|
---|
Helper method to initialize Configurator from an ini file.
Parameters: | configfile (str) – path to the ini file |
---|---|
Returns: | Configurator |