Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This completes the steps to provision a VM using blueprints and use plugins to run automation once the VM is deployed successfully.

Overview

...

Users can add plugins to an existing blueprint by appending the blueprint YAML with the plugin YAML values.

Add Plugin Your Existing Blueprint

...

To add a plugin to an existing MACHINE_COMPOSE Blueprint YAML:

  1. Login to the HyperCloud™ Platform with your credentials

  2. Click on Services Orchestration >Select AppStore:

    1. Click on Plugins > Locate the plugin and copy the REFERENCE ID for e.g. Q5G9A

  3. Click on AppStore > Click on New > Select the Machine Compose Blueprint from the drop-down list

  4. Enter the following details in your Machine Compose Blueprint

    1. Enter the name for the new Machine compose blueprint.

    2. Enter the brief description to your machine compose blueprint.

    3. Select the blueprint type from the drop-down list.

    4. Enter the snippet for your plugin in the YAML Text box. (Refer to table 1.)

    5. Select the Resource pool from the drop-down list.

    6. Enter the cost profiles.

    7. Enter the following details into your Entitled users to your existing blueprint:

      • Only Me: If this template is not meant to be shared.

      • Everyone: If this template is to be shared with everyone in the Tenant.

      • Groups & Users: if the template is to be shared with specific users or groups.

      • All Tenants (Only available to Cloud Admins): if the template is to be shared with all tenants.

  5. Click on Save Change.

  6. Once you’ve created the plugin on your existing blueprint, you can go ahead and create your Virtual Machine (VM). To create a VM:

    1. Click Blueprint

    2. Click Create Machine.

Once the VM/Instance is successfully provisioned, the HyperCloud agent gets installed and then execute all the plugins in the blueprint in the order as per the YAML.

Note

  • plugins: indicates the start of all plugins.

Table number 1.1

Machine:
region: westus
group: hg-poc
image: Canonical:UbuntuServer:16.04-LTS
instanceType: Standard_D13_v2
resourceGroup: hg-dojo-rg
network: hg-dojo-vnet1
subnet: hg-dojo-vnet1-subnet1
securityGroup: hg-dojo-nsg
skipAgentInstall: false
assignFloatingIP: true
publicIPSku: basic
password: "{{credentials 2c9180876f0dbccb016f4f9d87a66886 }}"

count: 1
terminationProtection: DISABLED

2c9180876f0dbccb016f4f9d87a66886 }}"
count: 1
terminationProtection: DISABLED
plugins:

  1. Install Packages

  • !plugin
    id: Q5G9A
    order: 1

  • !plugin

  1. Download & Install Security Agent
    id: P5H7K
    order: 2