diff options
author | Chengcheng Mu <chengcheng.mu@amadeus.com> | 2015-11-18 11:10:16 +0100 |
---|---|---|
committer | Chengcheng Mu <chengcheng.mu@amadeus.com> | 2015-11-18 11:13:25 +0100 |
commit | 31dbbf54a22202dfcce44dbb82f8bfcb4ea5181c (patch) | |
tree | 4395cf50d5835ce01b0dce77790dcbe40bd2f9ea /filter_plugins | |
parent | 544633e687e4d51c169eca435f7f356aad78bacf (diff) | |
download | openshift-31dbbf54a22202dfcce44dbb82f8bfcb4ea5181c.tar.gz openshift-31dbbf54a22202dfcce44dbb82f8bfcb4ea5181c.tar.bz2 openshift-31dbbf54a22202dfcce44dbb82f8bfcb4ea5181c.tar.xz openshift-31dbbf54a22202dfcce44dbb82f8bfcb4ea5181c.zip |
add a volume on master host, in AWS provisioning
Diffstat (limited to 'filter_plugins')
-rw-r--r-- | filter_plugins/oo_filters.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py index 2386b5878..4dfa33a2c 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']: docker_vol = data[host_type]['docker'] docker_vol['device_name'] = '/dev/xvdb' docker_vol['delete_on_termination'] = True |