Sha256: 6e947e1033ca1b323a2bccd07655ae6b0901ea5bf26bd17f8d32a7f549fbff50

Contents?: true

Size: 1.51 KB

Versions: 7

Compression:

Stored size: 1.51 KB

Contents

data "aws_ami" "ubuntu_14_ami" {
  most_recent = true

  filter {
    name   = "owner-id"
    values = ["099720109477"]
  }

  filter {
    name   = "name"
    values = ["ubuntu/images/*/ubuntu-*-14.04-*-server-*"]
  }

  filter {
    name   = "architecture"
    values = ["x86_64"]
  }

  filter {
    name   = "virtualization-type"
    values = ["hvm"]
  }

  filter {
    name   = "block-device-mapping.volume-type"
    values = ["gp2"]
  }

  filter {
    name   = "image-type"
    values = ["machine"]
  }
}

resource "aws_instance" "mixlib_install_sh" {
  count = 1

  ami           = "${data.aws_ami.ubuntu_14_ami.id}"
  instance_type = "${var.aws_instance_type}"
  key_name      = "es-infrastructure"

  associate_public_ip_address = true

  subnet_id         = "subnet-11ac0174" # Planet Releng Public Subnet
  source_dest_check = false

  vpc_security_group_ids = [
    "sg-96274af3",
  ]

  connection {
    user        = "ubuntu"
    private_key = "${file("${var.connection_private_key}")}"
    agent       = "${var.connection_agent}"
    timeout  = "10m"
  }

  tags {
    # ChefOps's AWS standard tags:
    X-Dept        = "EngServ"
    X-Contact     = "pwright"
    X-Production  = "false"
    X-Environment = "acceptance"
    X-Application = "mixlib-install"
  }

  provisioner "file" {
    source      = "../../.acceptance_data/ubuntu_install_command_once.sh"
    destination = "/tmp/install.sh"
  }

  provisioner "remote-exec" {
    inline = [
      "chmod +x /tmp/install.sh",
      "sudo bash /tmp/install.sh",
    ]
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mixlib-install-3.9.0 acceptance/ubuntu_install_command_once/terraform/application.tf
mixlib-install-3.8.0 acceptance/ubuntu_install_command_once/terraform/application.tf
mixlib-install-3.7.0 acceptance/ubuntu_install_command_once/terraform/application.tf
mixlib-install-3.6.0 acceptance/ubuntu_install_command_once/terraform/application.tf
mixlib-install-3.5.1 acceptance/ubuntu_install_command_once/terraform/application.tf
mixlib-install-3.5.0 acceptance/ubuntu_install_command_once/terraform/application.tf
mixlib-install-3.4.0 acceptance/ubuntu_install_command_once/terraform/application.tf