X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=cmframework%2Fsrc%2Fcmframework%2Futils%2Fcmansibleinventory.py;fp=cmframework%2Fsrc%2Fcmframework%2Futils%2Fcmansibleinventory.py;h=8757426c3e3676e3b6144033e6ff73b0e4f14e3f;hb=3cb6b540af283dac09b21c64d19d8f65527ff9ac;hp=13db5f26108cdc90c23b397dfdc355d0d4a23771;hpb=064ff06a8f5921e6f1b1c6a84b8a4e69837d2c11;p=ta%2Fconfig-manager.git diff --git a/cmframework/src/cmframework/utils/cmansibleinventory.py b/cmframework/src/cmframework/utils/cmansibleinventory.py index 13db5f2..8757426 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())