Skip to content

Instantly share code, notes, and snippets.

@alexs77
Created March 1, 2018 08:16
Show Gist options
  • Select an option

  • Save alexs77/2843345612e5ac107bc1ce8157b9f04f to your computer and use it in GitHub Desktop.

Select an option

Save alexs77/2843345612e5ac107bc1ce8157b9f04f to your computer and use it in GitHub Desktop.
Rundeck Multiple Multi-Value Options
- 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