Merge pull request #1384 from gdmello/etcd_backup_dir_fix

Make etcd_backup_prefix configurable.
This commit is contained in:
Brad Beam 2017-06-27 22:25:53 -05:00 committed by GitHub
commit a7cd08603e
2 changed files with 1 additions and 5 deletions

View file

@ -2,6 +2,7 @@
# Set to false to only do certificate management
etcd_cluster_setup: true
etcd_backup_prefix: "/var/backups"
etcd_bin_dir: "{{ local_release_dir }}/etcd/etcd-{{ etcd_version }}-linux-amd64/"
etcd_data_dir: "/var/lib/etcd"

View file

@ -3,7 +3,6 @@
command: /bin/true
notify:
- Refresh Time Fact
- Set etcd Backup Directory Prefix
- Set Backup Directory
- Create Backup Directory
- Backup etcd v2 data
@ -13,10 +12,6 @@
- name: Refresh Time Fact
setup: filter=ansible_date_time
- name: Set etcd Backup Directory Prefix
set_fact:
etcd_backup_prefix: '/var/backups'
- name: Set Backup Directory
set_fact:
etcd_backup_directory: "{{ etcd_backup_prefix }}/etcd-{{ ansible_date_time.date }}_{{ ansible_date_time.time }}"