gighiveGigHive includes an Azure deployment path for users who want to run the system in their own Azure subscription instead of setting it up locally.
This guide is written as a simple overview of the setup flow that already exists in this repository.
We’ve done some pre-work for you in regards to cost estimation of running Gighive in Azure. If interested, check out this information.
The most important prerequisites are:
1prereqsInstall.shazure.env with your Azure subscription and tenant informationWithout those two pieces, the Azure bootstrap flow will not work.
1prereqsInstall.shUse 1prereqsInstall.sh first.
This script prepares your machine for the Azure deployment workflow.
It can install:
For Azure setup, the Azure, Ansible, and Terraform parts are the important ones.
What the script does:
~/.ansible-azure when neededazure-prereqs.txtImportant note:
azure.envBefore running the bootstrap script, make sure azure.env is present and contains your Azure environment values.
The scripts in this repository expect azure.env to define:
ARM_SUBSCRIPTION_IDARM_TENANT_IDThe comments in the scripts show the expected format as exported environment variables.
This step is important because:
2bootstrap.sh loads azure.env before starting the Azure workflow3deleteAll.sh also loads azure.env3deleteAll.sh stops immediately if ARM_SUBSCRIPTION_ID is not set2bootstrap.shUse 2bootstrap.sh after your prerequisites are installed and azure.env is ready.
This is the main Azure setup script.
What it does:
azure.env if the file is presentThis script supports partial or resumed runs.
Supported start stages are:
allplanapplyinventorybuildThat means you can run the full flow or restart from a later stage if part of the work has already been completed.
Important notes from the script:
azure.env file in the repoterraform/backend.tfvars3deleteAll.shUse 3deleteAll.sh only when you want to tear down Azure resources.
This script is destructive.
What it does:
azure.envARM_SUBSCRIPTION_ID to be setImportant note:
If you are new to the Azure path, use this order:
1prereqsInstall.shazure.env is present and correct2bootstrap.sh3deleteAll.sh1prereqsInstall.shazure.env2bootstrap.sh3deleteAll.shBefore using the Azure scripts:
azure.env contains the values the scripts expect2bootstrap.sh includes optional apply, inventory, and build steps3deleteAll.sh is a teardown script and deletes all listed resource groups in the selected subscription after confirmation