adding fuse support optional
This commit is contained in:
parent
0bca4c0f2c
commit
4cff5b14c9
@ -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_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_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_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
|
### Optional Arguments for [BorgBase.com](https://www.borgbase.com) repository auto creation
|
||||||
|
@ -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_day: "{{ range(1, 28) | random(seed=inventory_hostname) }}"
|
||||||
borgmatic_cron_checks_hour: "{{ range(9, 24) | 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_cron_checks_minute: "{{ 59 | random(seed=inventory_hostname) }}"
|
||||||
|
borgmatic_fuse_support: "false"
|
@ -19,6 +19,12 @@
|
|||||||
name: "{{ borg_packages }}"
|
name: "{{ borg_packages }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: adding fuse support
|
||||||
|
package:
|
||||||
|
name: "{{ borg_packages_fuse }}"
|
||||||
|
state: present
|
||||||
|
when: borgmatic_fuse_support
|
||||||
|
|
||||||
- name: Create virtualenv for borg
|
- name: Create virtualenv for borg
|
||||||
pip:
|
pip:
|
||||||
name: pip-tools
|
name: pip-tools
|
||||||
@ -29,7 +35,13 @@
|
|||||||
pip:
|
pip:
|
||||||
name: "{{ borg_python_packages }}"
|
name: "{{ borg_python_packages }}"
|
||||||
virtualenv: /opt/borgmatic
|
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
|
- name: Create borgmatic command in /usr/local/bin
|
||||||
copy:
|
copy:
|
||||||
|
@ -10,5 +10,14 @@ borg_python_packages:
|
|||||||
- borgbackup
|
- borgbackup
|
||||||
- borgmatic
|
- borgmatic
|
||||||
|
|
||||||
|
borg_packages_fuse:
|
||||||
|
- fuse2
|
||||||
|
|
||||||
|
borg_python_packages_fuse:
|
||||||
|
- cython
|
||||||
|
- borgbackup[fuse]
|
||||||
|
- borgmatic
|
||||||
|
- python-llfuse
|
||||||
|
|
||||||
python_bin: python3
|
python_bin: python3
|
||||||
pip_bin: pip3
|
pip_bin: pip3
|
@ -10,13 +10,20 @@ borg_packages:
|
|||||||
- python3-msgpack
|
- python3-msgpack
|
||||||
- python3-venv
|
- python3-venv
|
||||||
- openssh-client
|
- openssh-client
|
||||||
- libfuse-dev
|
|
||||||
- cron
|
- cron
|
||||||
|
|
||||||
python_bin: python3
|
|
||||||
pip_bin: pip3
|
|
||||||
|
|
||||||
borg_python_packages:
|
borg_python_packages:
|
||||||
|
- cython
|
||||||
|
- borgbackup
|
||||||
|
- borgmatic
|
||||||
|
|
||||||
|
borg_packages_fuse:
|
||||||
|
- libfuse-dev
|
||||||
|
|
||||||
|
borg_python_packages_fuse:
|
||||||
- cython
|
- cython
|
||||||
- borgbackup[fuse]
|
- borgbackup[fuse]
|
||||||
- borgmatic
|
- borgmatic
|
||||||
|
|
||||||
|
python_bin: python3
|
||||||
|
pip_bin: pip3
|
@ -13,10 +13,20 @@ borg_packages:
|
|||||||
- openssh-clients
|
- openssh-clients
|
||||||
- cronie
|
- cronie
|
||||||
|
|
||||||
python_bin: python3
|
|
||||||
pip_bin: pip3
|
|
||||||
|
|
||||||
borg_python_packages:
|
borg_python_packages:
|
||||||
- cython
|
- cython
|
||||||
- borgbackup
|
- borgbackup
|
||||||
- borgmatic
|
- borgmatic
|
||||||
|
|
||||||
|
borg_packages_fuse:
|
||||||
|
- fuse-devel
|
||||||
|
- fuse
|
||||||
|
- pkgconfig
|
||||||
|
|
||||||
|
borg_python_packages_fuse:
|
||||||
|
- cython
|
||||||
|
- borgbackup[fuse]
|
||||||
|
- borgmatic
|
||||||
|
|
||||||
|
python_bin: python3
|
||||||
|
pip_bin: pip3
|
@ -13,10 +13,20 @@ borg_packages:
|
|||||||
- openssh-clients
|
- openssh-clients
|
||||||
- cronie
|
- cronie
|
||||||
|
|
||||||
python_bin: python3
|
|
||||||
pip_bin: pip3
|
|
||||||
|
|
||||||
borg_python_packages:
|
borg_python_packages:
|
||||||
- cython
|
- cython
|
||||||
- borgbackup
|
- borgbackup
|
||||||
- borgmatic
|
- borgmatic
|
||||||
|
|
||||||
|
borg_packages_fuse:
|
||||||
|
- fuse-devel
|
||||||
|
- fuse
|
||||||
|
- pkgconfig
|
||||||
|
|
||||||
|
borg_python_packages_fuse:
|
||||||
|
- cython
|
||||||
|
- borgbackup[fuse]
|
||||||
|
- borgmatic
|
||||||
|
|
||||||
|
python_bin: python3
|
||||||
|
pip_bin: pip3
|
@ -12,10 +12,20 @@ borg_packages:
|
|||||||
- openssh-clients
|
- openssh-clients
|
||||||
- cronie
|
- cronie
|
||||||
|
|
||||||
python_bin: python3
|
|
||||||
pip_bin: pip3
|
|
||||||
|
|
||||||
borg_python_packages:
|
borg_python_packages:
|
||||||
- cython
|
- cython
|
||||||
- borgbackup
|
- borgbackup
|
||||||
- borgmatic
|
- borgmatic
|
||||||
|
|
||||||
|
borg_packages_fuse:
|
||||||
|
- fuse-devel
|
||||||
|
- fuse
|
||||||
|
- pkgconfig
|
||||||
|
|
||||||
|
borg_python_packages_fuse:
|
||||||
|
- cython
|
||||||
|
- borgbackup[fuse]
|
||||||
|
- borgmatic
|
||||||
|
|
||||||
|
python_bin: python3
|
||||||
|
pip_bin: pip3
|
Loading…
Reference in New Issue
Block a user