Skip to content

Commit

Permalink
Merge pull request #44 from mila-iqia/feat/multiplied_devices
Browse files Browse the repository at this point in the history
feat: Add support of multiplied devices
  • Loading branch information
btravouillon authored Nov 12, 2024
2 parents d5a57a2 + 4d5e53b commit 4a4a40c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ bareos_devices:
mode: '0750' # default
opts: '' # optional, for ansible.posix.mount
state: 'mounted' # default, for ansible.posix.mount
count: 5 # optional, number of multiplied devices
media_type: File2 # optional, defaults to 'File'
max_concurrent_jobs: 42 # optional, defaults to '50'
```
Expand Down
4 changes: 4 additions & 0 deletions templates/bareos-sd/device/device.conf.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# {{ ansible_managed }}
Device {
{% if item.count is defined %}
# Multiply this device Count times
Count = {{ item.count }}
{% endif %}
Name = "{{ item.name }}"
Media Type = {{ item.media_type | default('File') }}
Archive Device = {{ item.archive_device | default(item.arch_device) }}
Expand Down

0 comments on commit 4a4a40c

Please sign in to comment.