Skip to content
Snippets Groups Projects
Commit 4ba237c5 authored by gdmelloatpoints's avatar gdmelloatpoints
Browse files

Make etcd_backup_prefix configurable. Ensures that backups can be stored on a...

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.
parent cc5edb72
Branches
Tags
No related merge requests found
...@@ -4,6 +4,9 @@ bootstrap_os: none ...@@ -4,6 +4,9 @@ bootstrap_os: none
#Directory where etcd data stored #Directory where etcd data stored
etcd_data_dir: /var/lib/etcd 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 # Directory where the binaries will be installed
bin_dir: /usr/local/bin bin_dir: /usr/local/bin
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
command: /bin/true command: /bin/true
notify: notify:
- Refresh Time Fact - Refresh Time Fact
- Set etcd Backup Directory Prefix
- Set Backup Directory - Set Backup Directory
- Create Backup Directory - Create Backup Directory
- Backup etcd v2 data - Backup etcd v2 data
...@@ -13,10 +12,6 @@ ...@@ -13,10 +12,6 @@
- name: Refresh Time Fact - name: Refresh Time Fact
setup: filter=ansible_date_time setup: filter=ansible_date_time
- name: Set etcd Backup Directory Prefix
set_fact:
etcd_backup_prefix: '/var/backups'
- name: Set Backup Directory - name: Set Backup Directory
set_fact: set_fact:
etcd_backup_directory: "{{ etcd_backup_prefix }}/etcd-{{ ansible_date_time.date }}_{{ ansible_date_time.time }}" etcd_backup_directory: "{{ etcd_backup_prefix }}/etcd-{{ ansible_date_time.date }}_{{ ansible_date_time.time }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment