Browse Source

Skip Initialize an empty borg repository when disabled

It is possible that borg-server is empty, if so, don't run init.

Also, fix CI issues due to bitrot.

Change-Id: I0f3a4a71ce095f6fe2916ab0151516849d6e07c7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/80/713980/7
Paul Belanger 2 years ago
parent
commit
ee4386a976
  1. 1
      .yamllint
  2. 7
      .zuul.d/project-templates.yaml
  3. 2
      bindep.txt
  4. 2
      playbooks/borg-client.yaml
  5. 2
      requirements.txt
  6. 2
      test-requirements.txt

1
.yamllint

@ -1,3 +1,4 @@
---
extends: default
ignore: |

7
.zuul.d/project-templates.yaml

@ -3,11 +3,8 @@
name: windmill-backup-jobs-fedora-latest
check:
jobs:
- windmill-backup-fedora-latest
gate:
queue: windmill
jobs:
- windmill-backup-fedora-latest
- windmill-backup-fedora-latest:
voting: false
- project-template:
name: windmill-backup-jobs-bionic

2
bindep.txt

@ -7,7 +7,7 @@ libffi-dev [platform:dpkg]
libselinux-python [platform:rpm]
libssl-dev [platform:dpkg]
openssl-devel [platform:rpm]
python2-dnf [platform:fedora]
python3-dnf [platform:fedora]
python3-devel [platform:rpm]
python3-dev [platform:dpkg]
python-devel [platform:rpm]

2
playbooks/borg-client.yaml

@ -78,3 +78,5 @@
command: "{{ borgmatic_pip_virtualenv }}/bin/borgmatic --init --encryption repokey"
register: r
changed_when: r.stderr | length > 0
with_inventory_hostnames:
- borg-server:!disabled

2
requirements.txt

@ -1,2 +1,2 @@
ansible>=2.4.0
ansible>=2.4.0,<2.8.0
netaddr

2
test-requirements.txt

@ -1,6 +1,6 @@
hacking<0.11,>=0.10
ansible-lint
ara
ara<1.0.0
bashate
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
yamllint

Loading…
Cancel
Save