diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-07-10 16:44:11 -0400 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-07-10 16:44:11 -0400 |
commit | aefff9001ab43155696820f01db7cc11de5cfcea (patch) | |
tree | d3cee420bafce1fffb340eb59fe07096aa15f93c /filter_plugins | |
parent | f752eaccbb1a5f0e2c1d36502f755d022a21d073 (diff) | |
download | openshift-aefff9001ab43155696820f01db7cc11de5cfcea.tar.gz openshift-aefff9001ab43155696820f01db7cc11de5cfcea.tar.bz2 openshift-aefff9001ab43155696820f01db7cc11de5cfcea.tar.xz openshift-aefff9001ab43155696820f01db7cc11de5cfcea.zip |
Add support for separate etcd volume with aws provider through bin/cluster
Diffstat (limited to 'filter_plugins')
-rw-r--r-- | filter_plugins/oo_filters.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py index 30b8819b8..e8f60ca73 100644 --- a/filter_plugins/oo_filters.py +++ b/filter_plugins/oo_filters.py @@ -195,6 +195,13 @@ class FilterModule(object): docker_vol.pop('delete_on_termination', None) docker_vol['ephemeral'] = 'ephemeral0' return [root_vol, docker_vol] + elif host_type == 'etcd': + etcd_vol = data[host_type]['etcd'] + etcd_vol['device_name'] = '/dev/xvdb' + etcd_vol['delete_on_termination'] = True + if etcd_vol['device_type'] != 'io1': + etcd_vol.pop('iops', None) + return [root_vol, etcd_vol] return [root_vol] @staticmethod |