Created
March 1, 2018 08:16
-
-
Save alexs77/2843345612e5ac107bc1ce8157b9f04f to your computer and use it in GitHub Desktop.
Rundeck Multiple Multi-Value Options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - description: Testing Multi-Value Options | |
| executionEnabled: true | |
| id: 0ff8c9cc-2115-4864-8296-2649df0f1da2 | |
| loglevel: INFO | |
| name: Multi-Value Options | |
| nodeFilterEditable: false | |
| nodefilters: | |
| dispatch: | |
| excludePrecedence: true | |
| keepgoing: false | |
| rankOrder: ascending | |
| successOnEmptyNodeFilter: false | |
| threadcount: 1 | |
| filter: name:ews45 | |
| nodesSelectedByDefault: true | |
| options: | |
| - delimiter: ' ' | |
| multivalued: true | |
| name: dates | |
| - delimiter: ' ' | |
| multivalueAllSelected: true | |
| multivalued: true | |
| name: names | |
| scheduleEnabled: true | |
| sequence: | |
| commands: | |
| - args: '"${option.dates}"' | |
| description: Debugging Script | |
| script: | | |
| #! /bin/bash | |
| echo "@@: $@" | |
| echo "*: $*" | |
| echo args=$1 ;# READ VALUE PASSED INTO ARGUMENT VECTOR | |
| echo names: envvar =$RD_OPTION_NAMES ;# access message as environment variable. | |
| echo names: script [email protected]@ ;# access message via replacement token syntax | |
| echo dates: envvar =$RD_OPTION_DATES ;# access message as environment variable. | |
| echo dates: script [email protected]@ ;# access message via replacement token syntax | |
| keepgoing: false | |
| strategy: node-first | |
| uuid: 0ff8c9cc-2115-4864-8296-2649df0f1da2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment