Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Debian fuse support #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ $ git clone https://github.com/borgbase/ansible-role-borgbackup.git roles/ansibl
- `borgmatic_cron_checks_day`: Day when cron job for infrequent checks will run. Defaults to `{{ 28 | random }}`
- `borgmatic_cron_checks_hour`: Hour when cron job for infrequent checks will run. Defaults to `{{ range(7, 24) | random }}`
- `borgmatic_cron_checks_minute`: Minute when cron job for infrequent checks will run. Defaults to `{{ 59 | random }}`
- `borgmatic_fuse_support`: Adds borgmatics fuse mount support. Defaults to `false`


### Optional Arguments for [BorgBase.com](https://www.borgbase.com) repository auto creation
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ borgmatic_cron_minute: "{{ 59 | random(seed=inventory_hostname) }}"
borgmatic_cron_checks_day: "{{ range(1, 28) | random(seed=inventory_hostname) }}"
borgmatic_cron_checks_hour: "{{ range(9, 24) | random(seed=inventory_hostname) }}"
borgmatic_cron_checks_minute: "{{ 59 | random(seed=inventory_hostname) }}"
borgmatic_fuse_support: "false"
14 changes: 13 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
name: "{{ borg_packages }}"
state: present

- name: adding fuse support
package:
name: "{{ borg_packages_fuse }}"
state: present
when: borgmatic_fuse_support

- name: Create virtualenv for borg
pip:
name: pip-tools
Expand All @@ -29,7 +35,13 @@
pip:
name: "{{ borg_python_packages }}"
virtualenv: /opt/borgmatic
when: borg_python_packages is defined
when: borg_python_packages is defined and not borgmatic_fuse_support

- name: Install required Python Packages with fuse support
pip:
name: "{{ borg_python_packages_fuse }}"
virtualenv: /opt/borgmatic
when: borg_python_packages is defined and borgmatic_fuse_support

- name: Create borgmatic command in /usr/local/bin
copy:
Expand Down
11 changes: 10 additions & 1 deletion vars/Archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,14 @@ borg_python_packages:
- borgbackup
- borgmatic

borg_packages_fuse:
- fuse2

borg_python_packages_fuse:
- cython
- borgbackup[fuse]
- borgmatic
- python-llfuse

python_bin: python3
pip_bin: pip3
pip_bin: pip3
14 changes: 11 additions & 3 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ borg_packages:
- openssh-client
- cron

python_bin: python3
pip_bin: pip3

borg_python_packages:
- cython
- borgbackup
- borgmatic

borg_packages_fuse:
- libfuse-dev

borg_python_packages_fuse:
- cython
- borgbackup[fuse]
- borgmatic

python_bin: python3
pip_bin: pip3
16 changes: 13 additions & 3 deletions vars/Fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ borg_packages:
- openssh-clients
- cronie

python_bin: python3
pip_bin: pip3

borg_python_packages:
- cython
- borgbackup
- borgmatic

borg_packages_fuse:
- fuse-devel
- fuse
- pkgconfig

borg_python_packages_fuse:
- cython
- borgbackup[fuse]
- borgmatic

python_bin: python3
pip_bin: pip3
16 changes: 13 additions & 3 deletions vars/RedHat-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ borg_packages:
- openssh-clients
- cronie

python_bin: python3
pip_bin: pip3

borg_python_packages:
- cython
- borgbackup
- borgmatic

borg_packages_fuse:
- fuse-devel
- fuse
- pkgconfig

borg_python_packages_fuse:
- cython
- borgbackup[fuse]
- borgmatic

python_bin: python3
pip_bin: pip3
16 changes: 13 additions & 3 deletions vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ borg_packages:
- openssh-clients
- cronie

python_bin: python3
pip_bin: pip3

borg_python_packages:
- cython
- borgbackup
- borgmatic

borg_packages_fuse:
- fuse-devel
- fuse
- pkgconfig

borg_python_packages_fuse:
- cython
- borgbackup[fuse]
- borgmatic

python_bin: python3
pip_bin: pip3