Skip to content

Commit

Permalink
fix: Allow to define Dir->JobDefs Type
Browse files Browse the repository at this point in the history
Do not enforce the Backup JOB_TYPE in the template, users must be able
to configure different types of jobs.
  • Loading branch information
btravouillon committed Aug 31, 2023
1 parent ee9de45 commit a033842
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ bareos_jobdefs:
pool: IncrementalFoo
full_pool: FullFoo
incr_pool: IncrementalFoo
type: JOB_TYPE # optional, defaults to 'Backup'
```

`bareos_jobs`: List of jobs in following format:
Expand Down
2 changes: 1 addition & 1 deletion templates/bareos-dir/jobdefs/jobdef.conf.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# {{ ansible_managed }}
JobDefs {
Name = "{{ item.name }}"
Type = Backup
Type = {{ item.type | default('Backup') }}
Level = {{ item.level }}
Client = {{ item.client }}
FileSet = "{{ item.fileset }}"
Expand Down

0 comments on commit a033842

Please sign in to comment.