summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-11-19 10:34:19 -0500
committerThomas Wiest <twiest@users.noreply.github.com>2015-11-19 10:34:19 -0500
commit6ee1a17c508327bb30b4a6563859358cc13786ef (patch)
tree8bdedda07d526f5e49a649d2036b4998f90dd5cb /filter_plugins
parent631132c2f0e043b2d86bfd999eef5be001090eeb (diff)
parent0925d936bf1d5b22951b644d9430f443f0551cac (diff)
downloadopenshift-6ee1a17c508327bb30b4a6563859358cc13786ef.tar.gz
openshift-6ee1a17c508327bb30b4a6563859358cc13786ef.tar.bz2
openshift-6ee1a17c508327bb30b4a6563859358cc13786ef.tar.xz
openshift-6ee1a17c508327bb30b4a6563859358cc13786ef.zip
Merge pull request #933 from menren/dockerOnMasterAWS
Docker on master aws
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index 83f5cdcef..1a854f637 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -191,7 +191,11 @@ class FilterModule(object):
{ 'root':
{ 'volume_size': 10, 'device_type': 'gp2',
'iops': 500
- }
+ },
+ 'docker':
+ { 'volume_size': 40, 'device_type': 'gp2',
+ 'iops': 500, 'ephemeral': 'true'
+ }
},
'node':
{ 'root':
@@ -216,7 +220,7 @@ class FilterModule(object):
root_vol['delete_on_termination'] = True
if root_vol['device_type'] != 'io1':
root_vol.pop('iops', None)
- if host_type == 'node':
+ if host_type in ['master', 'node'] and 'docker' in data[host_type]:
docker_vol = data[host_type]['docker']
docker_vol['device_name'] = '/dev/xvdb'
docker_vol['delete_on_termination'] = True
@@ -227,7 +231,7 @@ class FilterModule(object):
docker_vol.pop('delete_on_termination', None)
docker_vol['ephemeral'] = 'ephemeral0'
return [root_vol, docker_vol]
- elif host_type == 'etcd':
+ elif host_type == 'etcd' and 'etcd' in data[host_type]:
etcd_vol = data[host_type]['etcd']
etcd_vol['device_name'] = '/dev/xvdb'
etcd_vol['delete_on_termination'] = True