質問

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 consider using an external API look into using JSCAPE's SSH Factory for Java. Documentation can be located here.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top