Skip to content

Commit a21b29a

Browse files
authored
Merge pull request #50 from mila-iqia/remotes/origin/Add_File_Daemon_plugin
Add plugin bloc to fileset template
2 parents 7dcb7ff + ef56040 commit a21b29a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

templates/bareos-dir/fileset/fileset.conf.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ FileSet {
1818
}
1919
{% endfor %}
2020
{% endif %}
21+
{% if item.plugin is defined %}
22+
Plugin = "{{ item.plugin.name }}"
23+
":module_name={{ item.plugin.module_name }}"
24+
":mycnf={{ item.plugin.mycnf }}"
25+
{% endif %}
2126
{% if item.include_files is defined %}
2227
{% for include_file in item.include_files %}
2328
File = {{ include_file }}

templates/myself.conf.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ Client {
55
{% if item.max_job_bandwidth is defined %}
66
Maximum Bandwidth Per Job = {{ item.max_job_bandwidth }}
77
{% endif %}
8+
{% if item.plugin_directory is defined %}
9+
Plugin Directory = {{ item.plugin_directory }}
10+
{% endif %}
11+
{% if item.plugin_names is defined %}
12+
Plugin Names = {{ item.plugin_names }}
13+
{% endif %}
814
}

0 commit comments

Comments
 (0)