d414588a47
apply-rg.sh was for Azure command version 1("azure" command) and the command is old and version 2("az" command) is officially used today. apply-rg_2.sh was for the version 2. In addition, the README[1] says we need to run apply-rg.sh for applying templates. This renames apply-rg_2.sh to apply-rg.sh for common usages of the version 2. [1]: https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/azurerm#generating-and-applying
19 lines
772 B
Bash
Executable file
19 lines
772 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
AZURE_RESOURCE_GROUP="$1"
|
|
|
|
if [ "$AZURE_RESOURCE_GROUP" == "" ]; then
|
|
echo "AZURE_RESOURCE_GROUP is missing"
|
|
exit 1
|
|
fi
|
|
|
|
ansible-playbook generate-templates.yml
|
|
|
|
az deployment group create --template-file ./.generated/network.json -g $AZURE_RESOURCE_GROUP
|
|
az deployment group create --template-file ./.generated/storage.json -g $AZURE_RESOURCE_GROUP
|
|
az deployment group create --template-file ./.generated/availability-sets.json -g $AZURE_RESOURCE_GROUP
|
|
az deployment group create --template-file ./.generated/bastion.json -g $AZURE_RESOURCE_GROUP
|
|
az deployment group create --template-file ./.generated/masters.json -g $AZURE_RESOURCE_GROUP
|
|
az deployment group create --template-file ./.generated/minions.json -g $AZURE_RESOURCE_GROUP
|