Now we can use the python script ui_ext_api.py to upload the plugin:
> python ui_ext_api.py deploy
This should upload the plugin to the vCD cell configured in the ini file we previously set.
Manually Installing the Rubrik Plugin with Bash
The Rubrik Plugin can be uploaded directly the the vCloud Director API, below is a script to perform these steps:
You will need to replace the following values:
VCDHOST - this needs to be in the format VCDHOST="VCD-DNS-ADDRESS"
AUTH - this needs to be in the format AUTH="MyProviderUsername@System:MyPass"
This script is designed to check for previous versions of the Rubrik Plugin, remove it if it exists and then upload the new script which is contained in plugin.zip. This will still require you to share the plugin to tenants however as this will only be available to the Provider after upload.
RHEL/CentOS Script:
Downloading this package will contain the following files:
bundle.js
i18n.json
src/public/manifest.json
assets
plugin.zip
Uploading the plugin
Extract the package of the package downloaded in the previous step, and edit the file so we can add the VCDHOST and AUTH value as mentioned earlier; this can be done by the following commands:
You will now be in the vi console, press i to enter --INSERT-- mode; Copy and Paste the above script and then navigate to the lines for VCDHOST and AUTH and update the values to be for your vCloud Director Cell.
Once updated, press esc to leave --INSERT-- mode and the press : followed by wq! and press return.
You should now have a saved copy of the script in the directory you are working in. We must then make this executable, do this by using the command below:
Finally, we run the script with ./plugin_upload.sh