compass.config_management.installers package

Submodules

compass.config_management.installers.installer module

Module to provider base installer class Installer.

class compass.config_management.installers.installer.Installer

Bases: object

Base class for installer.

NAME = 'installer'
getClusterConfig(clusterid, **kwargs)

interface to get cluster config.

getGlobalConfig(**kwargs)

interface to get global config.

getHostConfig(hostid, **kwargs)

interface to get host config.

getHostConfigs(hostids, **kwargs)

get host configs.

sync()

interface to sync installer.

updateClusterConfig(clusterid, config, **kwargs)

interface to update cluster config.

updateGlobalConfig(config, **kwargs)

interface to update global config.

updateHostConfig(hostid, config, **kwargs)

interface to update host config.

updateHostConfigs(host_configs, **kwargs)

updaet host configs.

compass.config_management.installers.os_installer module

provider Base class for os installer.

class compass.config_management.installers.os_installer.Installer

Bases: compass.config_management.installers.installer.Installer

Base class for os installer.

NAME = 'os_installer'
getOSes()

interface to get supported oses.

Returns:
list of str, each is the supported os name and version.
compass.config_management.installers.os_installer.getInstaller()

Get default os installer.

compass.config_management.installers.os_installer.getInstallerByName(name)

Get os installer by name.

compass.config_management.installers.os_installer.register(os_installer)

Register os installer.

compass.config_management.installers.package_installer module

Provider Base class for package installer.

class compass.config_management.installers.package_installer.Installer

Bases: compass.config_management.installers.installer.Installer

Base class for package installer.

NAME = 'package_installer'
getRoles(target_system)

interface to get all roles of target system.

Args:
target_system: str, target cloud system such as openstack.
Returns:
dict of {role: description}
getTargetSystems(oses)

interface to get available target_systems for each os.

Args:
oses: list of str, supported oses.
Returns:
dict of {os_version: list of supported target system}
os_installer_config(config, **kwargs)

interface to get os installer related config.

compass.config_management.installers.package_installer.getInstaller()

get default package installer.

compass.config_management.installers.package_installer.getInstallerByName(name)

get package installer by name.

compass.config_management.installers.package_installer.register(package_installer)

Register package installer.

Module contents