I am implementing a workflow of tasks in a Java program. One of the tasks is running some commands on multiple Linux servers.
The servers are determined dynamically - read from an XML file. I examined Rundeck's API, but it seems that I have to configure the servers in advance, which doesn't suit my needs.
Any ideas?
One answer is to use rundeck, I think you just need rundeck to dynamically load your nodes.
To make it dynamic you need to refresh the project. Simply restart rundeck or use the api refresh method. I haven't tried the latter which I think is the better solution. The Resource Model supports files and getting your node list of servers from an external source URL.
But if your are rolling your own a better answer maybe SSH and consider a SSH library for Java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With