Sha256: dd6e63e33ad5e7a9701c76b3a0e439832acd42271dd75ccc4bb70d241aaaccf9

Contents?: true

Size: 1.5 KB

Versions: 14

Compression:

Stored size: 1.5 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 = "development"
    X-Application = "mixlib-install"
  }

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mixlib-install-3.0.0 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.12 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.11 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.10 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.9 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.8 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.7 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.6 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.5 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.4 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.3 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.2 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.1 acceptance/ubuntu_install_command/terraform/application.tf
mixlib-install-2.1.0 acceptance/ubuntu_install_command/terraform/application.tf