...
You will find the xsd-schema for the configuration in config/scheduler_universal_agent_installations.xsd
The files have the following structure
- installations
- global
- installation
- installation
In the global entry, you specify the values which are used for all installation items. The installation items can overwrite these values. There is one installation item for each agent. You can make use of substitution in the values of the entries.
Example:
Code Block | ||
---|---|---|
| ||
<serviceId>scheduler_agent_${host}_${service_port}</serviceId> <command>echo ${ssh.sudo_password} | sudo cp ${install_path}/bin/jobscheduler_agent.sh /etc/init.d/jobscheduler</command> |
The global sections have the following entries:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <installations lastRun="20112015-0311-0409 1516:0311"> <globals> <licence>aLicenceKey</licence> <servicePort>4945</servicePort> <serviceAllowedHost>myHost</serviceAllowedHost> <installPath>/opt/sos-berlin.com/jobscheduler</installPath> <userPathPanelElement>/home/test/sos-berlin.com/jobscheduler</UserPathPanelElement> <ftp> <localDir>myLocalDir</localDir> <remoteDir>/home/test/sample</remoteDir> </ftp> <ssh> <authMethod>password</authMethod> <port>22</port> <command>echo ${sudo_password} | sudo -S java -jar ${ftp_remote_dir}/scheduler_linux32_agent.jar ${ftp_remote_dir}/${installation_file}</command> </ssh> </globals> <installation> <licence>aLicenceKey</licence> <serviceId>scheduler_agent_${host}_${servicePort}</serviceId> <host>sampleHost</host> <servicePort>4945</servicePort> <installPath>/opt/sos-berlin.com/jobscheduler</installPath> <UserPathPanelElement>/home/test/sos-berlin.com/jobscheduler</UserPathPanelElement> <serviceAllowedHost>theLocalHost</serviceAllowedHost> <ftp> <user>test</user> <localDir>aLocalDir</localDir> <remoteDir>/home/test/sample</remoteDir> <password>myPwd</password> <port>21</port> </ftp> <ssh> <user>test</user> <password>myPwd</password> <sudo_password>mySudoPwd</sudo_password> <authMethod>password</authMethod> <port>22</port> <command>echo ${sudo_password} | sudo -S java -jar ${ftp_remote_dir}/scheduler_linux32_agent.jar ${ftp_remote_dir}/${installation_file}</command> </ssh> </installation> <installation> <licence>aLicenceKey</licence> <serviceId>scheduler_agent_${host}_${servicePort}</serviceId> <host>wilma</host> <servicePort>4946</servicePort> <installPath>/opt/sos-berlin.com/jobscheduler</installPath> <UserPathPanelElement>/home/test/sos-berlin.com/jobscheduler</UserPathPanelElement> <serviceAllowedHost>0.0.0.0</serviceAllowedHost> <ftp> <user>test</user> <localDir>aLocalDir</localDir> <remoteDir>/home/test/ur2</remoteDir> <password>myPwd</password> <port>21</port> </ftp> <ssh> <user>test</user> <password>myPwd</password> <sudo_password>mySudoPwd</sudo_password> <authMethod>password</authMethod> <port>22</port> <command>echo ${<install_path>/home/test/temp/xxx</install_path> <transfer> <operation>copy</operation> <file_spec>.*\.(sh|gz)$</file_spec> <source> <host>localhost</host> <port></port> <protocol>local</protocol> <user></user> <password></password> <dir>C:\Temp\batch_install</dir> <ssh_auth_method>ssh_auth_method</ssh_auth_method> <ssh_auth_file></ssh_auth_file> </source> <target> <host>192.11.0.116</host> <port>22</port> <protocol>sftp</protocol> <user>test</user> <password>12345</password> <dir>/home/test/temp/</dir> <ssh_auth_method>password</ssh_auth_method> <ssh_auth_file></ssh_auth_file> </target> </transfer> <ssh> <host>192.11.0.116</host> <port>22</port> </ssh> </globals> <installation lastRun="2015-11-09 16:11"> <install_path></install_path> <agent_options> <java_home>java home</java_home> <java_options>java options</java_options> <scheduler_home>scheduler home</scheduler_home> <scheduler_http_port>4445</scheduler_http_port> <scheduler_ip_address>192.11.0.116</scheduler_ip_address> <scheduler_user>scheduler user</scheduler_user> <scheduler_log_dir>scheduler log dir</scheduler_log_dir> <scheduler_kill_script>scheduler kill script</scheduler_kill_script> <scheduler_pid_file_dir>scheduler pid file dir</scheduler_pid_file_dir> </agent_options> <transfer> <operation>copy</operation> <file_spec>.*\.(sh|gz)$</file_spec> <source> <host></host> <port></port> <protocol></protocol> <user></user> <password></password> <ssh_auth_method>ssh_auth_method</ssh_auth_method> <ssh_auth_file></ssh_auth_file> </source> <target> <host></host> <port></port> <protocol></protocol> <user></user> <password></password> <ssh_auth_method></ssh_auth_method> <ssh_auth_file></ssh_auth_file> </target> </transfer> <ssh> <user>test</user> <password>12345</password> <sudo_password>12345</sudo_password> <auth_method>password</auth_method> <auth_file></auth_file> <port>22</port> </ssh> <postprocessing> <command>echo ${ssh.sudo_password} | sudo -S java -jar cp ${ftpinstall_remote_dirpath}/scheduler_linux32bin/jobscheduler_agent.jar sh /etc/init.d/jobscheduler</command> <command>echo ${ftp_remote_dir}/${installation_file}</command> </ssh> ssh.sudo_password} | sudo update-rc.d jobscheduler defaults</command> </postprocessing> </installation> </installations> |