Skip to content

Commit 3059970

Browse files
committed
added var bacula_sd_device_extra_options and explanation of bacula_sd_device_template
1 parent 5164b07 commit 3059970

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

roles/bacula/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ Example: Ringbuffer
7474
- size is bacula_sd_pool_max_volumes x bacula_sd_pool_max_volume_byte
7575
Example: 10G x 100 Volumes means maximum capacity is ~1TB backupspace, depending on the amount
7676
77+
see template from var "bacula_sd_device_template" (default is [storage_device_include_ringbuffer.j2](templates/storage_device_include_ringbuffer.j2)) and optional more options from var "bacula_sd_device_extra_options".
78+
7779
### Storage Definitions
7880
bacula_sd_device_name: "RingBuffer"
7981
bacula_sd_media_type: "File"

roles/bacula/defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ bacula_sd_max_jobs: 15
8282
bacula_sd_device_max_jobs: "{{ bacula_sd_max_jobs }}"
8383

8484
# define which storage device-template we use:
85+
# include all vars from that template to stay compatible
8586
bacula_sd_device_template: "storage_device_include_ringbuffer.j2"
8687

8788
# define port defaults in case they got overriden later:
@@ -138,6 +139,11 @@ bacula_fd_fileset_ignore_changes: False
138139
# bacula_dir_extra_director_options: |+
139140
# Option1 = Value1
140141

142+
# extend SD device-section with extra options
143+
# (makes only sense if predefined template for bacula_sd_device_template should be used, if you override that template anyway, you need to add these options there):
144+
#bacula_sd_device_extra_options: |+
145+
# Option1 = Value1
146+
141147
# define extra systemwide filesets:
142148
# bacula_dir_fileset_extra_template: ""
143149

roles/bacula/templates/storage_device_include_ringbuffer.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
RemovableMedia = no;
88
AlwaysOpen = no;
99
Maximum Concurrent Jobs = {{ bacula_sd_device_max_jobs }}
10+
{% if bacula_sd_device_extra_options is defined and bacula_sd_device_extra_options|length > 0 %}
11+
{{ bacula_sd_device_extra_options }}
12+
{% endif %}

0 commit comments

Comments
 (0)