Make etcd_backup_prefix configurable. Ensures that backups can be stored on a different location other than ${HOST}/var/backups, say an EBS volume on AWS.
This commit is contained in:
parent
5364a10033
commit
408b78a937
2 changed files with 3 additions and 4 deletions
|
@ -4,6 +4,9 @@ bootstrap_os: none
|
|||
#Directory where etcd data stored
|
||||
etcd_data_dir: /var/lib/etcd
|
||||
|
||||
#Directory where etcd backups are stored on the host
|
||||
etcd_backup_prefix: /var/backups
|
||||
|
||||
# Directory where the binaries will be installed
|
||||
bin_dir: /usr/local/bin
|
||||
|
||||
|
|
|
@ -13,10 +13,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 }}"
|
||||
|
|
Loading…
Reference in a new issue