diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-05-12 16:07:34 +0200 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-05-18 12:33:16 +0200 |
commit | 4fcbe72aeaf359d56ac636a8722f817ec10c629f (patch) | |
tree | 93436888a90064b447d60cfa7f365100b81af823 /roles/etcd_upgrade/defaults | |
parent | f186712088f8e14d7f90a010d0f2cb250e24ee42 (diff) | |
download | openshift-4fcbe72aeaf359d56ac636a8722f817ec10c629f.tar.gz openshift-4fcbe72aeaf359d56ac636a8722f817ec10c629f.tar.bz2 openshift-4fcbe72aeaf359d56ac636a8722f817ec10c629f.tar.xz openshift-4fcbe72aeaf359d56ac636a8722f817ec10c629f.zip |
move etcd upgrade related code into etcd_upgrade role
Diffstat (limited to 'roles/etcd_upgrade/defaults')
-rw-r--r-- | roles/etcd_upgrade/defaults/main.yml | 9 |
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' }}" |