Skip to content

Instantly share code, notes, and snippets.

View rohrerb's full-sized avatar

Brandon Rohrer rohrerb

View GitHub Profile
2018/05/30 06:29:24 [INFO] Packer version: 1.2.4
2018/05/30 06:29:24 Packer Target OS/Arch: linux amd64
2018/05/30 06:29:24 Built with Go Version: go1.10.1
2018/05/30 06:29:24 Detected home directory from env var: /home/saadmin
2018/05/30 06:29:24 Using internal plugin for scaleway
2018/05/30 06:29:24 Using internal plugin for parallels-pvm
2018/05/30 06:29:24 Using internal plugin for amazon-ebsvolume
2018/05/30 06:29:24 Using internal plugin for docker
2018/05/30 06:29:24 Using internal plugin for profitbricks
2018/05/30 06:29:24 Using internal plugin for virtualbox-ovf
2018-06-05T07:56:19.619-0400 [DEBUG] plugin.terraform-provider-azurerm_v1.6.0_x4: 2018/06/05 07:56:19 [DEBUG] AzureRM Response for https://management.usgovcloudapi.net/subscriptions/75406810-f3e6-42fa-97c6-e9027e0a0a45/providers/Microsoft.Cdn/register?api-version=2017-05-10:
2018-06-05T07:56:19.619-0400 [DEBUG] plugin.terraform-provider-azurerm_v1.6.0_x4: HTTP/1.1 404 Not Found
2018-06-05T07:56:19.619-0400 [DEBUG] plugin.terraform-provider-azurerm_v1.6.0_x4: Content-Length: 108
2018-06-05T07:56:19.619-0400 [DEBUG] plugin.terraform-provider-azurerm_v1.6.0_x4: Cache-Control: no-cache
2018-06-05T07:56:19.619-0400 [DEBUG] plugin.terraform-provider-azurerm_v1.6.0_x4: Content-Type: application/json; charset=utf-8
2018-06-05T07:56:19.619-0400 [DEBUG] plugin.terraform-provider-azurerm_v1.6.0_x4: Date: Tue, 05 Jun 2018 11:56:12 GMT
2018-06-05T07:56:19.619-0400 [DEBUG] plugin.terraform-provider-azurerm_v1.6.0_x4: Expires: -1
2018-06-05T07:56:19.619-0400 [DEBUG] plugin.terraform-provider-azurerm_v1.6.0_x4: Pragma: no-ca
variable "environment_code" {
default = "US"
}
variable "deployment_code" {
default = "T"
}
variable "location_code" {
default = "V"
#! /bin/bash
rg="USTV-Web"
avSetName="myAvSet"
targetsize="Standard_DS2"
avSetDetail=$(az vm availability-set show -g $rg -n $avSetName)
vms=$(echo $avSetDetail | jq '.virtualMachines[]')
avVMIDs=$(echo $vms | jq -r '.id')
variable "environment_code" { default = "US"}
variable "deployment_code" { default = "T"}
variable "location_code" { default = "V"}
variable "instance_count" { default = 2}
variable "data_disk_count" { default = 1}
variable "data_disk_size" { default = 1}
locals {
base_hostname = "${format("%s%s%s%s%s", var.environment_code, var.deployment_code, var.location_code, "l", "xyz")}"
}
variable "environment_code" { default = "US"}
variable "deployment_code" { default = "A"}
variable "location_code" { default = "V"}
variable "instance_count" { default = 1}
variable "data_disk_count" { default = 0}
variable "data_disk_size" { default = 0}
locals {
base_hostname = "${format("%s%s%s%s%s", var.environment_code, var.deployment_code, var.location_code, "l", "xyz")}"
}
module "x11x" {
source = "module/linux"
environment_code = "t"
deployment_code = "us1"
location_code = "e11"
instance_count = 1
data_disk_count = 1
data_disk_size = 5
vm_code = "x11x"
@rohrerb
rohrerb / main.tf
Last active August 20, 2018 15:36
variable "environment_code" { default = "US"}
variable "deployment_code" { default = "T"}
variable "location_code" { default = "V"}
variable "instance_count" { default = 1}
variable "data_disk_count" { default = 0}
variable "data_disk_size" { default = 1}
locals {
base_hostname = "${format("%s%s%s%s%s", var.environment_code, var.deployment_code, var.location_code, "l", "xyz")}"
}
locals {
base_hostname = "${format("%s%s%s%s%s", var.environment_code, var.deployment_code, var.location_code, var.os_code, var.instance_type)}"
msi_principal_ids = ["${azurerm_virtual_machine.vm.*.identity.0.principal_id}"]
}
data "azurerm_subscription" "current" {}
resource "azurerm_public_ip" "vm_pip" {
count = "${var.pip_count}"
variable "environment_code" { default = "US"}
variable "deployment_code" { default = "T"}
variable "location_code" { default = "V"}
variable "instance_count" { default = 1}
//variable "enable_msi" { default = false}
variable "msi_block_identity" {
type = "map"
default = {
"type" = "SystemAssigned"