Skip to content

Commit

Permalink
Merge pull request #21 from mila-iqia/fix/jobdef_type
Browse files Browse the repository at this point in the history
fix: Allow to define Dir->JobDefs Type
  • Loading branch information
btravouillon authored Aug 31, 2023
2 parents ee9de45 + a033842 commit 1589765
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 1589765

Please sign in to comment.