Managing automation
With BMC Release Process Management (BRPM), you can automate manual tasks for deploying an application. To deploy components of an application in the specified environment, you create requests. These requests consist of sequential steps that execute the deployment process. During the execution of steps, you might perform manual or repetitive tasks. In some cases, you might need to switch to another application to execute a step. You can automate these steps by using default or writing your own automation scripts.
In BRPM 4.8, you can write automation scripts both in Ruby and any other programming language as long as its interpreter is present in the system that runs the appropriate step.
By default, all automation scripts are divided into the following types:
Data retriever—Automation scripts in the Ruby programming language that run on the target servers to obtain the necessary configuration data.
Local ruby—Automation scripts in the Ruby programming language that run on the agent host of the engine that starts an automation step.
- Remote dispatcher—Automation scripts in the Ruby programming language that run on the engine server. They implement various transport protocols (agent types) for transferring files and executing scripts on remote servers.
Remote dispatcher scripts are executed based on the agent type of the target server. - Local shell—Automation scripts that run on the agent host of the engine that starts an automation step and can be written in any interpreted language available on the engine server.
- Remote shell—Automation scripts that run on the target servers, perform actions specific to the target server, and can be written in any interpreted language available on the target server.
You can also create custom automation types .
To enable automation
To use automation, you must first enable automation functionality in BRPM.
- Log in to BRPM as a user with permissions to access the Settings option under the System tab.
- Go to System > Settings > General.
- Ensure that Enable Automation is selected.
To use an alternate Ruby interpreter
By default, all automation scripts are run on JRuby. For Local Ruby automation scripts, you can use an alternate Ruby interpreter.
- Go to RLMhome\releases\productVersion\RPM\config and open the automation_settings.rb file.
In the file, add the $AUTOMATION_RUBY_PATH parameter with the full path to the executable file of the installed alternate Ruby interpreter.
- Save the file.
- Restart the BRPM services.
To use the alternate Ruby interpreter, you must specify the alternate_ruby parameter with the value set to true in each Local Ruby script that you want to run on the interpreter.
To disable an alternate Ruby interpreter
Open the appropriate script and delete the line with params["alternate_ruby"] = true. Commenting the line or setting the alternate_ruby parameter to false does not disable alternate Ruby.
Related topic