diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-06-14 09:32:02 +0200 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-06-14 09:48:24 +0200 |
commit | 9e2fcb48c36b9478e34b93ed0025c6b77b7ad597 (patch) | |
tree | c0a833746bedbcc6043f7e9ee08b76a088ee793d /roles/etcd_common/defaults | |
parent | 8ab1f771de34c52b1c85493a0002ac12952a0ed5 (diff) | |
download | openshift-9e2fcb48c36b9478e34b93ed0025c6b77b7ad597.tar.gz openshift-9e2fcb48c36b9478e34b93ed0025c6b77b7ad597.tar.bz2 openshift-9e2fcb48c36b9478e34b93ed0025c6b77b7ad597.tar.xz openshift-9e2fcb48c36b9478e34b93ed0025c6b77b7ad597.zip |
move etcd backup to etcd_common role
Diffstat (limited to 'roles/etcd_common/defaults')
-rw-r--r-- | roles/etcd_common/defaults/main.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/etcd_common/defaults/main.yml b/roles/etcd_common/defaults/main.yml index 14e712fcf..8cc7a9c20 100644 --- a/roles/etcd_common/defaults/main.yml +++ b/roles/etcd_common/defaults/main.yml @@ -1,8 +1,18 @@ --- +# Default action when calling this role +r_etcd_common_action: noop +r_etcd_common_backup_tag: '' +r_etcd_common_backup_sufix_name: '' + # runc, docker, host r_etcd_common_etcd_runtime: "docker" r_etcd_common_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 +r_etcd_common_etcdctl_command: "{{ 'etcdctl' if r_etcd_common_etcd_runtime == 'host' or r_etcd_common_embedded_etcd | bool else 'docker exec etcd_container etcdctl' if r_etcd_common_etcd_runtime == 'docker' else 'runc exec etcd etcdctl' }}" + # etcd server vars etcd_conf_dir: '/etc/etcd' r_etcd_common_system_container_host_dir: /var/lib/etcd/etcd.etcd |