Rundeck - Job options for large list

15 views
Skip to first unread message

Rock

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

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 172.12.0.0 0.0.15.255 10.0.0.0 0.255.255.255  <--- acces-list entry example
20 ip permit 192.168.0.0 0.0.0.255 10.0.0.0 0.255.255.255
40 ip deny 172.33.0.0 0.0.255.255 192.168.24.0 0.0.0.255
30 ip permit host 2.2.2.2 host 1.1.1.1

NAT example:
ip nat inside source static 10.10.10.1 172.16.131.1  <--- NAT entry example
ip nat inside source static 10.10.10.2 172.16.131.2
ip nat inside source static 10.10.10.3 172.16.131.3
ip nat inside source static 10.10.10.4 172.16.131.4


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.

rac...@rundeck.com

unread,
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.

Regards.
Reply all
Reply to author
Forward
0 new messages