...
Log in to your HCP portal account.
Click Service Orchestration and navigate to Appstore > Plugins > Click New > Select the Plugin Type from the drop-down list.
Enter these details in your Script Plugin dialog:
Provide a Name for your plugin.
Click +Advance Configuration and enter these details:
Enter a plugin Version.
Enter a brief description of your new Script Plugin.
Select the License from the drop-down list.
Enter the Timeout for your plugin in seconds.
Enter the following in the Scripts text-box:
#!/bin/bash
[1] Use the script below to update your packages:Code Block language bash echo "Updating OS packages" sudo apt-get update && sudo apt-get upgrade -y || yum update -y echo "Ping Test to Google DNS Server" ping $IP_ADDRESS -c 8|
If you want to add conditions for your Script Plugin run:
Click Arguments+
Enter the argument Key and its Value.
Example:
Key:IP_ADDRESS
Value:8.8.8.8
To entitle users to your plugin, select:
Only Me: if you do not want anyone to access your plugin.
Everyone: if you want to share your plugin with everyone.
Groups & Users: if you want to share the plugin with specific users or groups.
Enter the first three alphabets of the username in the Users drop-down and select the username.
Type the first three alphabets of the Group Name in the Groups drop-down and select the group name.
Click Save Changes.
Once you create your Plugin, the HCP portal will create a unique REFERENCE ID for the same.
Example: Q5G9A
Note: HyperCloud
[1] The HCP portal will replace all
occurrences of
$IP_ADDRESS
in the plugin with the value8.8.8.8
However,
the HCP portal will ignore the occurrences of
${IP_ADDRESS}
in the
...
plugin
...
Run plugins on-demand
...
Users can run plugins on-demand any of their own existing Virtual Machines without the need of connecting to the VM. Use the following steps to run an existing plugin on an existing VM.
Note: Running plugins on an existing VM requires the HyperCloud™ Agent to be installed on the Virtual Machine. The Agent Status must be Connected.
...