Browse Source

Update openvz-diff-backup to stable version for initial installation 🎉

master
LecygneNoir 4 years ago
parent
commit
9e7498af8b
2 changed files with 4 additions and 33 deletions
  1. +1
    -2
      README.md
  2. +3
    -31
      roles/ovzdb/tasks/main.yml

+ 1
- 2
README.md View File

@ -58,7 +58,7 @@ Yet another ansible's playbook repository
* **Note** : Using xymon-client tag/role needs a working xymon-server (whenever the server was installed with the playbook or not)
* Cloud be (theoretically, to be tested) used to update xymon server binaries to last stable release
* ovzdb
* http://projets.developpeur-neurasthenique.fr/projects/openvz-diff-backups
* https://www.openvz-diff-backups.fr/
* Install openvz-diff-backup to an openvz host to backup container
* enable update of openvz-diff-backup thanks to 0.9.4 version
* enable backup AND upload feature via cron
@ -66,7 +66,6 @@ Yet another ansible's playbook repository
* enable customization of configuration file
* use standard installation method (conf in /etc, link binary to /usr/local/bin)
* provide bonus hook to create files when problems occurs (additionnally to send emails), allowing monitoring with standard tool (ie xymon and else)
* Possibility to use beta version in file directory: hard coded for the moment, name the file openvz-diff-backups_v0.9.8-beta.tar.gz and use -e beta=true on command line
* rudder-node
* https://www.rudder-project.org
* allow to configure a debian/ubuntu rudder node to report to a rudder server

+ 3
- 31
roles/ovzdb/tasks/main.yml View File

@ -21,6 +21,7 @@
- bc
- uuid-runtime
- pbzip2
- bzip2
when: ansible_distribution == 'Debian'
- name: install openvz-diff-backups - prerequisite Centos
@ -40,53 +41,25 @@
## Ref : src option from http://docs.ansible.com/ansible/unarchive_module.html
- name: install openvz-diff-backups - download
get_url:
url=http://download.openvz-diff-backups.fr/releases/openvz-diff-backups_v0.9.9.12-beta.tar.gz
url=https://download.openvz-diff-backups.fr/releases/openvz-diff-backups_v1.0.1.9-stable.tar.gz
dest=/tmp/openvz-diff-backup.tar.gz
force=yes
tags:
- backup
when: not beta | bool
- name: install openvz-diff-backups - untar
unarchive: src=/tmp/openvz-diff-backup.tar.gz dest=/root/ copy=no
tags:
- backup
when: not beta | bool
### Possibility to use beta version ###
- name: install openvz-diff-backup - beta file
copy:
src=openvz-diff-backups_v0.9.9.12-beta.tar.gz
dest=/tmp/openvz-diff-backup.tar.gz
force=yes
tags:
- backup
when: beta | bool
- name: install openvz-diff-backups - untar beta
unarchive: src=/tmp/openvz-diff-backup.tar.gz dest=/root/ copy=no
tags:
- backup
when: beta | bool
#### Configure openvz-diff-backups ####
- name: install openvz-diff-backups - link to simple directory
file:
src=/root/openvz-diff-backups_v0.9.9.12-beta
path=/root/openvz-diff-backups
state=link
tags:
- backup
when: not beta | bool
- name: install openvz-diff-backups - link to simple directory - beta
file:
src=/root/openvz-diff-backups_v0.9.9.12-beta
src=/root/openvz-diff-backups_v1.0.1.9-stable
path=/root/openvz-diff-backups
state=link
tags:
- backup
when: beta | bool
- name: install openvz-diff-backups - upload conf file
template: src=openvz-diff-backups.conf.j2 dest=/etc/openvz-diff-backups.conf
@ -108,7 +81,6 @@
retries: 10
tags:
- backup
when: not beta | bool
- name: install openvz-diff-backups - cron for dump
cron: name="backup container with openvz-diff-backups" minute="{{ backup_minute }}" hour="{{ backup_hour }}" job='/usr/local/bin/openvz-diff-backups backup all hold -q -c /etc/openvz-diff-backups.conf> /dev/null'

Loading…
Cancel
Save