Skip to content

Instantly share code, notes, and snippets.

View bensojona's full-sized avatar

Jon Benson bensojona

  • HashiCorp
  • San Francisco, CA
View GitHub Profile
Refreshing Terraform state prior to plan...
aws_key_pair.consul: Refreshing state... (ID: consul-key)
aws_security_group.allow_all: Refreshing state... (ID: sg-54bdc030)
module.consul.aws_instance.consul.0: Refreshing state... (ID: i-8a47e177)
module.consul.aws_instance.consul.1: Refreshing state... (ID: i-bd46e040)
module.consul.aws_instance.consul.2: Refreshing state... (ID: i-3f46e0c2)
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
aws_security_group.allow_all: Creating...
description: "" => "Allow all inbound traffic"
egress.#: "" => "<computed>"
ingress.#: "" => "1"
ingress.532441254.cidr_blocks.#: "" => "1"
ingress.532441254.cidr_blocks.0: "" => "0.0.0.0/0"
ingress.532441254.from_port: "" => "0"
ingress.532441254.protocol: "" => "-1"
ingress.532441254.security_groups.#: "" => "0"
ingress.532441254.self: "" => "0"
resource "aws_instance" "consul" {
ami = "${var.ami}"
security_groups = ["${var.security_group}"]
key_name = "${var.key_name}"
instance_type = "${var.instance_type}"
availability_zone = "${var.availability_zone}"
count = "${var.count}"
tags {
Name = "consul_${count.index+1}"
provider "aws" {
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
region = "${var.region}"
}
resource "aws_security_group" "allow_all" {
name = "allow_all"
description = "Allow all inbound traffic"
# -*- mode: ruby -*-
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "trusty64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.ssh.forward_agent = true
config.ssh.private_key_path = "deploy/keys/vagrant"
~/projects/hashicorp/atlas-examples/metamon 🚧 master 😎 › vagrant up --provider=virtualbox
Bringing machine 'dev' up with 'virtualbox' provider...
==> dev: Box 'trusty64' could not be found. Attempting to find and install...
dev: Box Provider: virtualbox
dev: Box Version: >= 0
==> dev: Adding box 'trusty64' (v0) for provider: virtualbox
dev: Downloading: http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
==> dev: Successfully added box 'trusty64' (v0) for 'virtualbox'!
==> dev: Importing base box 'trusty64'...
==> dev: Matching MAC address for NAT networking...
@bensojona
bensojona / metamon_fail_remove_ip_from_known_hosts
Created April 1, 2015 18:45
Removed the IP entry from ~/.ssh/known_hosts, still no luck
PLAY [configuration check] ****************************************************
GATHERING FACTS ***************************************************************
<192.168.50.10> ESTABLISH CONNECTION FOR USER: vagrant
<192.168.50.10> REMOTE_MODULE setup
<192.168.50.10> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o', 'IdentityFile="keys/vagrant"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=vagrant', '-o', 'ConnectTimeout=10', '192.168.50.10', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1427913818.29-1089497436650 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1427913818.29-1089497436650 && echo $HOME/.ansible/tmp/ansible-tmp-1427913818.29-1089497436650'"]
The authenticity of host '192.168.50.10 (192.168.50.10)' can't be established.
RSA key fingerprint is fd:f9:01:f8:c0:36:0f:23:d0:22:46:6a:7c:95:9e:74.
Are you sure you want to continue connecting (yes/no)? yes
@bensojona
bensojona / metamon_fail
Created April 1, 2015 18:09
Copied the metamon files into my root project directory, vagrant up'd, ran the deploy_dev.sh script and got the below debug output. Seems to be an issue SSH'ing into the Vagrant box but I can't figure out where the problem is.
PLAY [configuration check] ****************************************************
GATHERING FACTS ***************************************************************
<192.168.50.10> ESTABLISH CONNECTION FOR USER: vagrant
<192.168.50.10> REMOTE_MODULE setup
<192.168.50.10> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o', 'IdentityFile="keys/vagrant"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=vagrant', '-o', 'ConnectTimeout=10', '192.168.50.10', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1427908374.01-9008411623083 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1427908374.01-9008411623083 && echo $HOME/.ansible/tmp/ansible-tmp-1427908374.01-9008411623083'"]
fatal: [dev] => SSH encountered an unknown error. The output was:
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/jb/.ssh/config
debug1: Reading configuration data /etc/ssh_c
<?xml version="1.0" encoding="utf-8"?>
<VAST version="2.0"> <Ad id="229">
<InLine>
<AdSystem version="4.11.1-2+pl3">LiveRail</AdSystem>
<AdTitle><![CDATA[LiveRail creative 1]]></AdTitle>
<Description><![CDATA[]]></Description>
<Error><![CDATA[http://t4.liverail.com/?metric=error&erc=[ERRORCODE]&pos=0&coid=135&pid=1331&nid=1331&oid=229&olid=2291331&cid=331&tpcid=&vid=&amid=&cc=default&pp=&vi=0&vv=&sg=&tsg=&pmu=0&pau=0&psz=0&ctx=&tctx=&coty=7&adt=0&did=&buid=&scen=&mca=&mma=&mct=0&url=http%3A%2F%2Fwww.iab.net%2Fiab_products_and_industry_services%2F508676%2Fdigitalvideo%2Fvast%2Fvast_xml_samples&trid=545a98be4001b1.46560337&bidf=0.10000&bids=0.00000&bidt=1&bidh=0&bidlaf=0&sdk=0&cb=3014.199.21.86.54.0&ver=1&w=&wy=&x=&y=&xy=&redirect=]]></Error>
<Impression id="LR"><![CDATA[http://t4.liverail.com/?metric=impression&cofl=0&flid=0&pos=0&coid=135&pid=1331&nid=1331&oid=229&olid=2291331&cid=331&tpcid=&vid=&amid=&cc=default&pp=&vi=0&vv=&
<AdResponse><Ads number="1"><Ad type="rm" width="300" height="250"><![CDATA[<html><head><title></title><meta name="viewport" content="user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/><style type="text/css">body {margin: 0px; overflow: hidden;} </style></head><body><a href='http://54.164.151.50/oapi/clickAd;jsessionid=C1367AD26DB57C09459AF94D9EA4C897.soma-i-32b9e0c2' onclick="document.getElementById('click').src='http://c2.w.inmobi.com/c.asm/C/b/e1gic3awqr/v6t/i/2m/ba/M/0/8qm/0/eyJVTTUiOiI2M2M4YWM5ZDAwMjk0NDBiZmM4MTJjNjhkNjBiZDQzMiIsIklVRFMxIjoiY2IxM2MzZDBmODA4NDA0NzFlZDBmMGNhZGYwOWY5ODNkYmRjNDYwZiIsIklEViI6InJlYWwtZGV2aWNlLXV1aWQiLCJJREEiOiJyZWFsLWRldmljZS11dWlkIn0~/3996dab9-014c-1000-cf8a-3ebf29b500c4/-1/0/-1/1/0/37.8975,-122.112/0/nw/101/1/1/432d9e19';" target="_blank" style="text-decoration: none"><img src='http://54.164.151.50/oapi/getAd;jsessionid=C1367AD26DB57C09459AF94D9EA4C897.soma-i-32b9e0c2' /></a><img src='http://c2.w.inmobi.com/c.asm/C/b/e1gic3awqr/v6t/i/2m/ba/M/0/8qm/0/eyJVTTUiOiI2M2M4YWM