Azure

Create Azure Service Principal

To know how to create your Azure Service Principal, refer to Creating Azure Service Principal. This helps in setting the variables client_id, tenant and secret.

The application should have Contributor role to allow provisioning of resources correctly. Ref: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal#assign-application-to-role

Variables

Variable Name Description Default value

client_id

Azure Client ID or Application Id

secret

Azure Client Secret Key

subscription_id

Your Azure Subscription ID . More info here

tenant

Azure Tenant ID

location

The Azure Regions. Examples: southindia, eastus, northeurope

cloud_user

The user to SSH into the instances, this will be created during instance creation. For Linux instances this user will have sudo rights

centos

private_key_file

The SSH private key file will be required to SSH into the instances, if the file does not exists it will created

$PROJECT_HOME/keys/azure_id_rsa

public_key_file

The SSH Public Key of the private_key_file that will be added to ~/.ssh/authorized_keys of the cloud_user in the Azure VM instances

$PROJECT_HOME/keys/azure_id_rsa.pub

resource_group

The resource group a.k.a logical group name under which all the resources of the location will be grouped. https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-overview

OpenShift

cloud

The Azure Cloud Environment to use, possible values are AzurePublicCloud or AzureChinaCloud or AzureUSGovernment

AzurePublicCloud

vm_size

The Azure VM sizes

Standard_D4_v3

image

The Azure VM OS Image, defaults to CentOS offered by Rogue Wave (OpenLogic)

  image:
    offer: CentOS
    publisher: OpenLogic
    sku: '7.5'
    version: latest

security_group

Azure Network Security Group that will be by default attached to the network, by default allows Port 22, 80,443 and 8443

openshift-nsg

vm_net_name

The virtual private connection (VPC) name

openshift-net

References