You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
772 B

  1. #!/usr/bin/env bash
  2. set -e
  3. AZURE_RESOURCE_GROUP="$1"
  4. if [ "$AZURE_RESOURCE_GROUP" == "" ]; then
  5. echo "AZURE_RESOURCE_GROUP is missing"
  6. exit 1
  7. fi
  8. ansible-playbook generate-templates.yml
  9. az group deployment create --template-file ./.generated/network.json -g $AZURE_RESOURCE_GROUP
  10. az group deployment create --template-file ./.generated/storage.json -g $AZURE_RESOURCE_GROUP
  11. az group deployment create --template-file ./.generated/availability-sets.json -g $AZURE_RESOURCE_GROUP
  12. az group deployment create --template-file ./.generated/bastion.json -g $AZURE_RESOURCE_GROUP
  13. az group deployment create --template-file ./.generated/masters.json -g $AZURE_RESOURCE_GROUP
  14. az group deployment create --template-file ./.generated/minions.json -g $AZURE_RESOURCE_GROUP