Closed Orest-Worhacz closed 1 year ago
Now I see.
https://github.com/voxpupuli/puppet-bareos/blob/0.4.0/manifests/director/job.pp#L147
Is of type runscrupt_short
not runscript
. Placing just command there works.
Could it be simply extended by replacing in code the type of runscript_short
to change it to runscript
?
No it's defined in Bareos itself not the module. Closing as solved.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Value need to be an string (file: /etc/puppetlabs/code/environments/production/modules_external/bareos/manifests/director/job.pp, line: 728, column: 18) (file: /etc/puppetlabs/code/environments/production/modules/its_bareos/manifests/jobs.pp, line: 493) on node bareos-puppet.tld
What behavior did you expect instead
Module would produce somewhat following code:
Output log
Log attached in what I am seeing
Any additional information you'd like to impart
I tried many combinations of the run_script but without success. How to proceed? Line 493 in jobs.pp is just the main resource with name:
::bareos::director::job { 'weekly_backup_of_somehost':
I am also trying to follow: https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunScript But the documentation is unclear to me.