Skip to content

stevebargelt/absSetupScripts

Repository files navigation

Jenkins Docker

Terraform

Terraform version is a work in progress. Teh basic infrastructure does get created.

ToDo:

  1. Create SSH keys for VM
  2. Create TLS keys for remote Docker communication
  3. Verify connection to remote Docker w/ TLS
  4. Clone git repo and start with docker compose 1. Install Docker in VM

Maybe:

  1. Pull backup data to restore state
  2. Use renew or add letsencrypt

Basics

Create secret.tfvars :

azure_subscription_id = "00000000-0000-0000-0000-000000000000"

Edit abs.tfvars for your enviroment.

Create the TLS keys for SSHing into your VM

sh tls-create.sh
terraform init -var-file="secret.tfvars" -var-file="abs.tfvars"

terraform plan -var-file="secret.tfvars" -var-file="abs.tfvars"

terraform apply -var-file="secret.tfvars" -var-file="abs.tfvars"

Manual Verify

To manually verify you can connect over SSH

Replace abs3 with your fullName variable Replace absadmin with your adminUsername Replace abs3.westus2.cloudapp.azure.com wit your fqdn or Public IP

eval "$(ssh-agent -s)"  
ssh-add ./keys/abs3/id_abs3_rsa
ssh absadmin@abs3.westus2.cloudapp.azure.com

Shell Script

Edit the variables in the first 30 lines of the script.

sh abs_create.sh

Get a cup of coffee... this takes a little while.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published