diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-08-26 11:48:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-26 11:48:29 -0400 |
commit | 739648d2131a2723a21eafa4217203025438e729 (patch) | |
tree | 38a2fecf60f29150cda12cdc38f4df73e47afc1d /utils/src/ooinstall/variants.py | |
parent | 577195e3eefe19b95e39f0f52834cd3dc8f77cdf (diff) | |
parent | 517f3390c14bc9bf570581a914fa64ac55c1ccd9 (diff) | |
download | openshift-739648d2131a2723a21eafa4217203025438e729.tar.gz openshift-739648d2131a2723a21eafa4217203025438e729.tar.bz2 openshift-739648d2131a2723a21eafa4217203025438e729.tar.xz openshift-739648d2131a2723a21eafa4217203025438e729.zip |
Merge pull request #2235 from smunilla/atomic-registry
a-o-i: Add support for Atomic Registry Installs
Diffstat (limited to 'utils/src/ooinstall/variants.py')
-rw-r--r-- | utils/src/ooinstall/variants.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/utils/src/ooinstall/variants.py b/utils/src/ooinstall/variants.py index c723c7e61..8f82655fd 100644 --- a/utils/src/ooinstall/variants.py +++ b/utils/src/ooinstall/variants.py @@ -16,10 +16,11 @@ installer_log = logging.getLogger('installer') class Version(object): - def __init__(self, name, ansible_key): + def __init__(self, name, ansible_key, subtype=''): self.name = name # i.e. 3.0, 3.1 self.ansible_key = ansible_key + self.subtype = subtype class Variant(object): @@ -43,6 +44,12 @@ OSE = Variant('openshift-enterprise', 'OpenShift Container Platform', ] ) +REG = Variant('openshift-enterprise', 'Registry', + [ + Version('3.2', 'openshift-enterprise', 'registry'), + ] +) + origin = Variant('origin', 'OpenShift Origin', [ Version('1.2', 'origin'), @@ -58,8 +65,8 @@ LEGACY = Variant('openshift-enterprise', 'OpenShift Container Platform', ) # Ordered list of variants we can install, first is the default. -SUPPORTED_VARIANTS = (OSE, origin, LEGACY) -DISPLAY_VARIANTS = (OSE, ) +SUPPORTED_VARIANTS = (OSE, REG, origin, LEGACY) +DISPLAY_VARIANTS = (OSE, REG,) def find_variant(name, version=None): |