Copyright IBM Corp. 2022
This code is released under the Apache 2.0 License.
These files are used to create a Turbonomic action server. This action server handles Turbonomic virtual machine scale actions for virtual machines deployed by a CAM service.
- A Turbonomic instance.
- A virtual machine to host the action server.
- The virtual machine must be accessible using an SSH key.
- The virtual machine must have Python 3 installed.
- The following Python packages are required: logging, os, requests, sys and time. Use pip3 to install these packages.
- ssh into the virtual machine.
- Clone this repository.
- Set folder permissions:
chmod -R 755 ./CAM_Turbonomic_Action_Server
- Edit file ./CAM_Turbonomic_Action_Server/actions/settings.ini
- Update the Cloud Automation Manager connection information:
[cam]
auth_url=https://cp-console.apps.xxx.com
cam_url=https://cam.apps.xxx.com
cam user=my_user
cam pw=my_pw
Note: The cam_url can be found in the OpenShift Container Platform user interface under Networking > Routes.
- Sign in to Turbonomic
- In left navigation toolbar, click SETTINGS
- In the Turbonomic Settings page click Target Configuration
- Click the NEW TARGET button in upper right corner
- For Choose Target Category click Orchestrator
- For Choose Target Type click Action Script
- For ADD Action Script Target enter:
- NAME OR ADDRESS - Enter the host name or IP address of the action server.
- SCRIPT PATH - Enter the path of the IA_scale.yaml file. For example: /clone_directory/CAM_Turbonomic_Action_Server/manifests/IA_scale.yaml
- USER ID - Enter the ID of a user that can ssh into the virtual machine. For example: root
- PRIVATE TOKEN - Enter the users private key.
- Click ADD. Validation runs. If all values are correct the resulting target onfiguration will appear in the list with a green indicator.