From 9e7498af8b046172b4ae8d40e1c5bb739e8f19b5 Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sun, 29 Sep 2019 13:55:42 +0200 Subject: [PATCH] =?UTF-8?q?Update=20openvz-diff-backup=20to=20stable=20ver?= =?UTF-8?q?sion=20for=20initial=20installation=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +-- roles/ovzdb/tasks/main.yml | 34 +++------------------------------- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 1436a5a..c96df77 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/roles/ovzdb/tasks/main.yml b/roles/ovzdb/tasks/main.yml index 7ca83d1..fb738b1 100644 --- a/roles/ovzdb/tasks/main.yml +++ b/roles/ovzdb/tasks/main.yml @@ -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'