summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/templates/cluster.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/rke/templates/cluster.yml.j2')
-rw-r--r--ansible/roles/rke/templates/cluster.yml.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/ansible/roles/rke/templates/cluster.yml.j2 b/ansible/roles/rke/templates/cluster.yml.j2
index 2012ab92..737d306f 100644
--- a/ansible/roles/rke/templates/cluster.yml.j2
+++ b/ansible/roles/rke/templates/cluster.yml.j2
@@ -25,8 +25,15 @@ nodes:
services:
etcd:
image: ""
+{% if rke_etcd.enabled_custom_etcd_storage %}
+ extra_args:
+ data-dir: "{{ rke_etcd.storage_mountpoint }}"
+ extra_binds:
+ - "{{ rke_etcd.storage_path }}:{{ rke_etcd.storage_mountpoint }}"
+{% else %}
extra_args: {}
extra_binds: []
+{% endif %}
extra_env: []
external_urls: []
ca_cert: ""