Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jobs Template not working with "RunScript" Bareos Jobs feature (2.0.0 Branch) #7

Open
GitBytes opened this issue Feb 5, 2016 · 0 comments
Assignees
Labels

Comments

@GitBytes
Copy link
Member

GitBytes commented Feb 5, 2016

Kitchen Job Error Output:

Recipe: chef-bareos::server  
           ---- Begin output of su - bareos -s /bin/sh -c "/usr/sbin/bareos-dir -t -c /etc/bareos/bareos-dir.conf" ----
           STDOUT: 04-Feb 23:47 bareos-dir: ERROR TERMINATION at dird_conf.c:3574
           Config error: Expecting open brace. Got =
                : line 129, col 13 of file /etc/bareos/bareos-dir.d/jobs.conf
             RunScript = {"RunsWhen"=>"Before", "FailJobOnError"=>"No", "Command"=>"/etc/bareos/scripts/pausejob"}
           STDERR:
           ---- End output of su - bareos -s /bin/sh -c "/usr/sbin/bareos-dir -t -c /etc/bareos/bareos-dir.conf" ----

Jobs File Content:

Job {
  Name = "admin-pause-job"
  Type = Backup
  Client = dir-fd
  JobDefs = DefaultJob
  Level = Full
  Accurate = no
  Enabled = no
  Priority = 5
  RunScript = {"RunsWhen"=>"Before", "FailJobOnError"=>"No", "Command"=>"/etc/bareos/scripts/pausejob"}
  Fileset = EmptySet
}

Attempted Attribute Hash:

...
  'RunScript' => {
    'RunsWhen' => 'Before'
    'FailJobOnError' => 'No',
    'Command' => '/etc/bareos/scripts/pausejob'
  },
...
@GitBytes GitBytes added the bug label Feb 5, 2016
@GitBytes GitBytes self-assigned this Feb 5, 2016
@GitBytes GitBytes changed the title Jobs Template not working with "RunScript" Bareos Jobs feature Jobs Template not working with "RunScript" Bareos Jobs feature (2.0.0 Branch) Feb 5, 2016
GitBytes pushed a commit that referenced this issue May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant