diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-03-09 09:30:24 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-03-09 09:30:24 -0500 |
commit | c9301aa9682846a35dac6948cc0efb5d4628a3ad (patch) | |
tree | 8de46887206d3cc596c6b562c5c7f762ad924a53 /utils/src/ooinstall/oo_config.py | |
parent | 72fbab29392f7b4697a440f406d6873941086d7d (diff) | |
parent | bcbb870431bea53a9863802e15bbfad98931b04d (diff) | |
download | openshift-c9301aa9682846a35dac6948cc0efb5d4628a3ad.tar.gz openshift-c9301aa9682846a35dac6948cc0efb5d4628a3ad.tar.bz2 openshift-c9301aa9682846a35dac6948cc0efb5d4628a3ad.tar.xz openshift-c9301aa9682846a35dac6948cc0efb5d4628a3ad.zip |
Merge pull request #1009 from smunilla/nfs_question
Questions for NFS Storage Registry
Diffstat (limited to 'utils/src/ooinstall/oo_config.py')
-rw-r--r-- | utils/src/ooinstall/oo_config.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py index b1af21773..c9498542f 100644 --- a/utils/src/ooinstall/oo_config.py +++ b/utils/src/ooinstall/oo_config.py @@ -50,13 +50,17 @@ class Host(object): # Should this host run as an HAProxy: self.master_lb = kwargs.get('master_lb', False) + # Should this host run as an HAProxy: + self.storage = kwargs.get('storage', False) + self.containerized = kwargs.get('containerized', False) if self.connect_to is None: raise OOConfigInvalidHostError("You must specify either an ip " \ "or hostname as 'connect_to'") - if self.master is False and self.node is False and self.master_lb is False: + if self.master is False and self.node is False and \ + self.master_lb is False and self.storage is False: raise OOConfigInvalidHostError( "You must specify each host as either a master or a node.") @@ -70,7 +74,7 @@ class Host(object): """ Used when exporting to yaml. """ d = {} for prop in ['ip', 'hostname', 'public_ip', 'public_hostname', - 'master', 'node', 'master_lb', 'containerized', + 'master', 'node', 'master_lb', 'storage', 'containerized', 'connect_to', 'preconfigured', 'new_host']: # If the property is defined (not None or False), export it: if getattr(self, prop): |