Job definitions in YAML
-
Greg Schueler
- State changed from new to open
- Assigned user set to Greg Schueler
-
Greg Schueler
Three comments about this format:
First,
schedule: weekday: {day: '*'}is pretty verbose.schedule: weekday: '*'seems cleaner. Similar for month.Additionally, users can specify either day-of-week OR day-of-month (crontab), so a day-of-month indicator is needed.
possibly: "weekday" and "day" (for day-of-month)
schedule: time: ... month: ... weekday: '1-5'and
schedule: time: ... month: ... day: '1,23'Second point: Workflows have additional properties (keepgoing, strategy), so a simple
sequence: [list]isn't enough.We could do:
sequence: keepgoing: true strategy: node-first commands: - exec: ... - script: ...or change the key names a bit, replace sequence with workflow, and commands with sequence:
workflow: keepgoing: true strategy: node-first sequence: - exec: ... - script: ...Third item: All the workflow items allow some kind of argument string, but they are named inconsistently. "scriptargs" for the exec/script items, and then
arg: line:for the jobref.Suggest we change them all to be just "args" or "arguments" or something.
FYI: here is a first-pass at the yaml output for a job: https://gist.github.com/790772
-
Deleted User
Yes for second and third item.
For first item: can you just use
crontab: "* * * * *"so I can cut and paste my crontab time info into a job definition? -
Deleted User
(from [1a74fb3af36794bc58b85f3d2146d2eb287372c6]) Initial jobs yaml format support [#172 Job definitions in YAML] https://github.com/dtolabs/rundeck/commit/1a74fb3af36794bc58b85f3d2...
-
Greg Schueler
Notes on format:
for schedule:
schedule: time: ... month: ... weekday: day: '1-4'or
schedule: time: ... month: ... dayofmonth: day: '1-5'crontab is supported:
schedule: crontab: * * * * * *For workflows the format is:
sequence: keepgoing: true strategy: node-first commands: - exec: ... args: ... - script: ... args: ... - scriptfile: ... args: - jobref: name: jobname group: group args: argsFor node dispatch parameters:
nodefilters: dispatch: threadcount: 1 keepgoing: true excludePrecedence: true include: tags: ... exclude: tags: ... -
Deleted User
(from [9287281332a2f9532f92127041bf5c51ad3b7a5a]) Force multiline scalars to literal style. [#172 Job definitions in YAML] https://github.com/dtolabs/rundeck/commit/9287281332a2f9532f9212704...
-
Deleted User
(from [2ff2df98b855d4502c16f3ed709d9c6b9cb666e5]) Fix some domain properties, update yaml tests [#172 Job definitions in YAML] https://github.com/dtolabs/rundeck/commit/2ff2df98b855d4502c16f3ed7...
-
Greg Schueler
Note, for "exec" workflow items there is no support for "args", that was a mistake.
- exec: ... -
Deleted User
- Milestone order changed from 14 to 0
(from [c1c60e4118233b4e48698b728d6f2284b3501d0e]) Update job definition download toolbar to allow format selection [#172 Job definitions in YAML] https://github.com/dtolabs/rundeck/commit/c1c60e4118233b4e48698b728...
-
Greg Schueler
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.