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 /playbooks/aws/openshift-cluster/templates | |
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 'playbooks/aws/openshift-cluster/templates')
-rw-r--r-- | playbooks/aws/openshift-cluster/templates/user_data.j2 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/playbooks/aws/openshift-cluster/templates/user_data.j2 b/playbooks/aws/openshift-cluster/templates/user_data.j2 index db14bacd1..82c2f4d57 100644 --- a/playbooks/aws/openshift-cluster/templates/user_data.j2 +++ b/playbooks/aws/openshift-cluster/templates/user_data.j2 @@ -1,4 +1,24 @@ #cloud-config +{% if type =='etcd' %} +cloud_config_modules: +- disk_setup +- mounts + +mounts: +- [ xvdb, /var/lib/etcd, xfs, "defaults" ] + +disk_setup: + xvdb: + table_type: mbr + layout: True + +fs_setup: +- label: etcd_storage + filesystem: xfs + device: /dev/xvdb + partition: auto +{% endif %} + {% if type == 'node' %} mounts: - [ xvdb ] |