summaryrefslogtreecommitdiffstats
path: root/compass-tasks-base
diff options
context:
space:
mode:
Diffstat (limited to 'compass-tasks-base')
-rw-r--r--compass-tasks-base/db/api/cluster.py2
-rw-r--r--compass-tasks-base/deployment/installers/config_manager.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/compass-tasks-base/db/api/cluster.py b/compass-tasks-base/db/api/cluster.py
index 7a7022c..9a0b8f0 100644
--- a/compass-tasks-base/db/api/cluster.py
+++ b/compass-tasks-base/db/api/cluster.py
@@ -50,7 +50,7 @@ RESP_CLUSTERHOST_FIELDS = [
'os_installed', 'distributed_system_installed',
'os_name', 'os_id', 'ip',
'reinstall_os', 'reinstall_distributed_system',
- 'owner', 'cluster_id',
+ 'owner', 'cluster_id', 'ipmi_credentials',
'created_at', 'updated_at',
'patched_roles'
]
diff --git a/compass-tasks-base/deployment/installers/config_manager.py b/compass-tasks-base/deployment/installers/config_manager.py
index 597c3a6..d3b28e0 100644
--- a/compass-tasks-base/deployment/installers/config_manager.py
+++ b/compass-tasks-base/deployment/installers/config_manager.py
@@ -170,6 +170,7 @@ class HostInfo(object):
self.roles = self.host_info.setdefault(const.ROLES, [])
self.patched_roles = self.host_info.setdefault(const.PATCHED_ROLES, [])
self.ipmi = deepcopy(self.host_info.setdefault(const.IPMI, {}))
+ self.ipmi_credentials = deepcopy(self.host_info.setdefault(const.IPMI_CREDS, {}))
self.reinstall_os_flag = self.host_info.get(const.REINSTALL_OS_FLAG)
self.deployed_os_config = self.host_info.setdefault(
const.DEPLOYED_OS_CONFIG, {}
@@ -275,6 +276,7 @@ class HostInfo(object):
def baseinfo(self):
return {
const.REINSTALL_OS_FLAG: self.reinstall_os_flag,
+ const.IPMI_CREDS: self.ipmi_credentials,
const.MAC_ADDR: self.mac,
const.NAME: self.name,
const.HOSTNAME: self.hostname,