summaryrefslogtreecommitdiffstats
path: root/roles/etcd_upgrade/defaults
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-05-21 18:44:31 +0200
committerGitHub <noreply@github.com>2017-05-21 18:44:31 +0200
commit4cd57c9d9f2ed4838f7dceed36cd48b418b5f2f3 (patch)
tree9d52993b1625ed02ad7590e381b1313cebaa5d82 /roles/etcd_upgrade/defaults
parent22dfad7ae3492cf949871981e3a84bcefbd138f0 (diff)
parent4fcbe72aeaf359d56ac636a8722f817ec10c629f (diff)
downloadopenshift-4cd57c9d9f2ed4838f7dceed36cd48b418b5f2f3.tar.gz
openshift-4cd57c9d9f2ed4838f7dceed36cd48b418b5f2f3.tar.bz2
openshift-4cd57c9d9f2ed4838f7dceed36cd48b418b5f2f3.tar.xz
openshift-4cd57c9d9f2ed4838f7dceed36cd48b418b5f2f3.zip
Merge pull request #4217 from ingvagabund/move-etcd-upgrade-code-into-role
Move etcd upgrade code into role
Diffstat (limited to 'roles/etcd_upgrade/defaults')
-rw-r--r--roles/etcd_upgrade/defaults/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/etcd_upgrade/defaults/main.yml b/roles/etcd_upgrade/defaults/main.yml
new file mode 100644
index 000000000..01ad8a268
--- /dev/null
+++ b/roles/etcd_upgrade/defaults/main.yml
@@ -0,0 +1,9 @@
+---
+r_etcd_upgrade_action: upgrade
+r_etcd_upgrade_mechanism: rpm
+r_etcd_upgrade_embedded_etcd: False
+
+# etcd run on a host => use etcdctl command directly
+# etcd run as a docker container => use docker exec
+# etcd run as a runc container => use runc exec
+etcdctl_command: "{{ 'etcdctl' if r_etcd_common_etcd_runtime == 'host' or r_etcd_upgrade_embedded_etcd | bool else 'docker exec etcd_container etcdctl' if r_etcd_common_etcd_runtime == 'docker' else 'runc exec etcd etcdctl' }}"