diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2015-10-30 09:02:26 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2015-10-30 09:33:32 -0300 |
commit | ef2e4fc1fa247ba51394766f9cf9279f0beaf0b0 (patch) | |
tree | fdf7f8adcac640f029da0c957217286fead821fe /roles/openshift_facts/library | |
parent | 18df191a381ced63613dea302c5bf2e172d3c803 (diff) | |
download | openshift-ef2e4fc1fa247ba51394766f9cf9279f0beaf0b0.tar.gz openshift-ef2e4fc1fa247ba51394766f9cf9279f0beaf0b0.tar.bz2 openshift-ef2e4fc1fa247ba51394766f9cf9279f0beaf0b0.tar.xz openshift-ef2e4fc1fa247ba51394766f9cf9279f0beaf0b0.zip |
Add etcd_data_dir fact.
Diffstat (limited to 'roles/openshift_facts/library')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 3570de693..44f8cbb31 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -465,6 +465,12 @@ def set_aggregate_facts(facts): if 'cluster_public_hostname' in facts['master']: all_hostnames.add(facts['master']['cluster_public_hostname']) + if facts['master']['embedded_etcd']: + facts['master']['etcd_data_dir'] = os.path.join( + facts['common']['data_dir'], 'openshift.local.etcd') + else: + facts['master']['etcd_data_dir'] = '/var/lib/etcd' + facts['common']['all_hostnames'] = list(all_hostnames) return facts |