Rundeck - Job options for large list

Skip to first unread message


Oct 11, 2021, 8:04:44 AM10/11/21
to rundeck-discuss

I am using the Rundeck job options in order to receive variables/commands which will be re-used by a script for the configuration of Cisco routers. One of the tasks to be carried out is to configure an access-lists or NAT entries. The syntax of these commands to send to the routers is shown in the examples below. I have provided below an example of an access-list and NAT commands with for 4 entries but it could be 40 entries for each.

Access list example:
10 ip permit  <--- acces-list entry example
20 ip permit
40 ip deny
30 ip permit host host

NAT example:
ip nat inside source static  <--- NAT entry example
ip nat inside source static
ip nat inside source static
ip nat inside source static

As you would note using an access-list or a NAT with 20 or 40 entries is not manageable with the multi-valued job option. Is there a block text job option that could be used for such input? That could allow the return a list on which I could iterate in order to recover each entry one by one?

Thank you for any feedback.

Oct 11, 2021, 9:20:33 AM10/11/21
to rundeck-discuss
Hi Rock,

Maybe a good approach for that use case take the list and "publish it" in JSON format on a remote service, in that way the Rundeck job can take that list as a remote option URL allowed values.

Reply all
Reply to author
0 new messages