Skip to content

kolosovpetro/azure-linux-vm-terraform

Repository files navigation

Azure Linux VM Terraform

Notes

Jenkins commands

Docs

Commands

  • sudo systemctl daemon-reload
  • sudo systemctl restart jenkins
  • sudo systemctl stop jenkins
  • sudo systemctl start jenkins
  • sudo systemctl status jenkins
  • sudo chmod -R a+rw /var/lib/jenkins
  • sudo chmod -R a+rw /var/lib/jenkins/workspace
  • sudo chmod -R a+rw /tmp/NugerScratch
  • sudo chmod -R a+rw /tmp
  • sudo ufw allow 8080
  • sudo apt update
  • sudo apt install git

Sources

Requirements

Name Version
azurerm =3.71.0

Providers

Name Version
azurerm 3.71.0

Modules

Name Source Version
key_vault ./modules/keyvault n/a
key_vault_secrets ./modules/keyvault-secrets n/a
network ./modules/network n/a
storage ./modules/storage n/a
ubuntu-vm-password-auth ./modules/ubuntu-vm-password-auth n/a
ubuntu-vm-public-key-auth ./modules/ubuntu-vm-public-key-auth n/a

Resources

Name Type
azurerm_resource_group.public resource
azurerm_client_config.current data source

Inputs

Name Description Type Default Required
os_profile_admin_password Specifies the password of the administrator account. string n/a yes
os_profile_admin_public_key_path Specifies the public key of the administrator account. string n/a yes
os_profile_admin_username Specifies the name of the administrator account. string n/a yes
prefix Resources name prefix string n/a yes
resource_group_location Location of the resource group. string n/a yes
storage_account_replication Messenger storage account replication strategy string n/a yes
storage_account_tier Messenger storage account tier string n/a yes
storage_image_reference_offer Specifies the offer of the platform image or marketplace image used to create the virtual machine. string n/a yes
storage_image_reference_publisher The publisher of the image used to create the virtual machine. string n/a yes
storage_image_reference_sku Specifies the SKU of the platform image or marketplace image used to create the virtual machine. string n/a yes
storage_image_reference_version Specifies the version of the platform image or marketplace image used to create the virtual machine. string n/a yes
storage_os_disk_caching Specifies the caching requirements for the OS disk. string n/a yes
storage_os_disk_create_option Specifies how the virtual machine should be created. string n/a yes
storage_os_disk_managed_disk_type Specifies the storage account type for the managed disk. string n/a yes
vm_size The size of the virtual machine. string n/a yes

Outputs

Name Description
pass_public_ip n/a
pass_public_ip_id n/a
ssh_public_ip n/a
ssh_public_ip_id n/a