X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fconfig-manager.git;a=blobdiff_plain;f=cmframework%2Fsrc%2Fcmframework%2Futils%2Fcmansibleinventory.py;h=f21fa0bb7c61bcdc60523f49d1b37ac5314b952b;hp=4bd982431586e41d583b40e1a8c75f3cc73d0bd8;hb=1f9487772ca902e5928dbd0ef2585b9f75f2b70f;hpb=04ffd0a9c00d4b58fb5e82825a4c7cdec5b42467 diff --git a/cmframework/src/cmframework/utils/cmansibleinventory.py b/cmframework/src/cmframework/utils/cmansibleinventory.py index 4bd9824..f21fa0b 100644 --- a/cmframework/src/cmframework/utils/cmansibleinventory.py +++ b/cmframework/src/cmframework/utils/cmansibleinventory.py @@ -91,6 +91,11 @@ class AnsibleInventory(object): ips.append(hostvars[node]['ansible_host']) hostvars[node]['ssl_alt_name']['ip'] = ips + caasconf = self.confman.get_caas_config_handler() + hostvars[node]['system_reserved_memory'] = hostsconf.get_system_reserved_memory(node) + hostvars[node]['caas_soft_eviction_threshold'] = caasconf.get_caas_soft_eviction_threshold() + hostvars[node]['caas_hard_eviction_threshold'] = caasconf.get_caas_hard_eviction_threshold() + def set_caas_master_data(self, hostvars, node, caasconf, hostsconf): dns = hostvars[node]['ssl_alt_name']['dns'] dns.append(caasconf.get_kubernetes_domain())