Use rsdeploy to deploy a file package to several hosts in the cluster.
The following steps summarize the process:
- Create a file package containing the files to deploy, a deployment configuration file called deployment.xml, an install script, and an uninstall script.
- Upload the file package to the repository server by sending an add request to the repository server.
- Deploy the file package to a group of hosts by sending an install request to the repository server.
The repository server installs the file package by remotely starting the rsdeploy agent on each host. The rsdeploy agent downloads the package and executes the install script to install the files onto the host.
- If you want to remove the file package from the group of hosts, send an uninstall request to the repository server.
The repository server remotely removes the file package by remotely starting the rsdeploy agent on each host. The rsdeploy agent runs the uninstall script to remove the files from the host, then removes the file package.
- If you no longer need the file package, remove it from the repository server.