|
@@ -1657,7 +1657,12 @@ class OpenShiftFacts(object):
|
|
else:
|
|
else:
|
|
deployment_type = 'origin'
|
|
deployment_type = 'origin'
|
|
|
|
|
|
- defaults = self.get_defaults(roles, deployment_type)
|
|
|
|
|
|
+ if 'common' in local_facts and 'deployment_subtype' in local_facts['common']:
|
|
|
|
+ deployment_subtype = local_facts['common']['deployment_subtype']
|
|
|
|
+ else:
|
|
|
|
+ deployment_subtype = 'basic'
|
|
|
|
+
|
|
|
|
+ defaults = self.get_defaults(roles, deployment_type, deployment_subtype)
|
|
provider_facts = self.init_provider_facts()
|
|
provider_facts = self.init_provider_facts()
|
|
facts = apply_provider_facts(defaults, provider_facts)
|
|
facts = apply_provider_facts(defaults, provider_facts)
|
|
facts = merge_facts(facts,
|
|
facts = merge_facts(facts,
|
|
@@ -1689,7 +1694,7 @@ class OpenShiftFacts(object):
|
|
facts = set_installed_variant_rpm_facts(facts)
|
|
facts = set_installed_variant_rpm_facts(facts)
|
|
return dict(openshift=facts)
|
|
return dict(openshift=facts)
|
|
|
|
|
|
- def get_defaults(self, roles, deployment_type):
|
|
|
|
|
|
+ def get_defaults(self, roles, deployment_type, deployment_subtype):
|
|
""" Get default fact values
|
|
""" Get default fact values
|
|
|
|
|
|
Args:
|
|
Args:
|
|
@@ -1709,6 +1714,7 @@ class OpenShiftFacts(object):
|
|
defaults['common'] = dict(use_openshift_sdn=True, ip=ip_addr,
|
|
defaults['common'] = dict(use_openshift_sdn=True, ip=ip_addr,
|
|
public_ip=ip_addr,
|
|
public_ip=ip_addr,
|
|
deployment_type=deployment_type,
|
|
deployment_type=deployment_type,
|
|
|
|
+ deployment_subtype=deployment_subtype,
|
|
hostname=hostname,
|
|
hostname=hostname,
|
|
public_hostname=hostname,
|
|
public_hostname=hostname,
|
|
portal_net='172.30.0.0/16',
|
|
portal_net='172.30.0.0/16',
|