Loads StarCluster configuration settings defined in config_file which
defaults to ~/.starclustercfg
cfg = StarClusterConfig() or cfg =
StarClusterConfig('/path/to/my/config.cfg') cfg.load() aws_info = cfg.aws
cluster_cfg = cfg.clusters['mycluster'] key_cfg = cfg.keys['gsg-keypair']
print cluster_cfg
|
|
__init__(self,
config_file=None,
cache=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__load_config(self)
Populates self._config with a new ConfigParser instance |
source code
|
|
|
|
reload(self)
Reloads the configuration file |
source code
|
|
|
|
| load_settings(self,
section_name,
settings,
store) |
source code
|
|
|
|
| check_required(self,
section_name,
settings,
store) |
source code
|
|
|
|
|
|
|
| load_extends_variables(self,
section_name,
store) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_aws_from_environ(self)
Returns AWS credentials defined in the user's shell environment. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_easy_s3(self)
Factory for EasyEC2 class that attempts to load AWS credentials from
the StarCluster config file. |
source code
|
|
|
|
get_easy_ec2(self)
Factory for EasyEC2 class that attempts to load AWS credentials from
the StarCluster config file. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|
|
|
global_settings = {'DEFAULT_TEMPLATE': (<type 'str'>, False, N...
|
|
|
aws_settings = {'AWS_ACCESS_KEY_ID': (<type 'str'>, True, None...
|
|
|
key_settings = {'KEY_LOCATION': (<type 'str'>, True, None)}
|
|
|
volume_settings = {'DEVICE': (<type 'str'>, False, None), 'MOU...
|
|
|
plugin_settings = {'SETUP_CLASS': (<type 'str'>, True, None)}
|
|
|
cluster_settings = {'AVAILABILITY_ZONE': (<type 'str'>, False,...
|
|
|
instance_types = {'c1.medium': 'i386', 'c1.xlarge': 'x86_64', ...
|