Skip to content

Instantly share code, notes, and snippets.

View mrtyler's full-sized avatar

Tyler Roscoe mrtyler

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mrtyler on github.
  • I am mrtyler (https://keybase.io/mrtyler) on keybase.
  • I have a public key ASDRa40zfgrsvE6XdQ45taZQ50mVDKZF_8bHNHkBgkGhSAo

To claim this, I am signing this object:

@mrtyler
mrtyler / gist:e3eb15ff815bd7da807bef2492ba5732
Created March 25, 2017 01:09
terraform getting stuck when remote-exec inline is empty
...
aws_instance.main (remote-exec): Connecting to remote host via SSH...
2017/03/24 19:05:17 [DEBUG] plugin: terraform-0.8.8: remote-exec-provisioner (internal) 2017/03/24 19:05:17 connecting to TCP connection for SSH
aws_instance.main (remote-exec): Host: x.y.z.a
aws_instance.main (remote-exec): User: centos
aws_instance.main (remote-exec): Password: false
aws_instance.main (remote-exec): Private key: false
aws_instance.main (remote-exec): SSH Agent: true
2017/03/24 19:05:17 [DEBUG] plugin: terraform-0.8.8: remote-exec-provisioner (internal) 2017/03/24 19:05:17 handshaking with SSH
# This part appears to work. It returns json.
- name: Check if influxdb datasource configured
uri:
method: GET
user: "{{ grafana_admin_login|quote }}"
password: "{{ grafana_admin_password|quote }}"
force_basic_auth: true
body_format: json
url: "http://localhost:{{ grafana_port }}/api/datasources"
register: datasources
$ virtualenv ../venv-double-jeopardy
New python executable in /Users/tyler/rtf/venv-double-jeopardy/bin/python
Installing setuptools, pip, wheel...done.
$ . ../venv-double-jeopardy/bin/activate
(venv-double-jeopardy) $ cat > requirements.txt
docker-py
flake8
molecule
#!/usr/bin/env python
from collections import defaultdict
import re
from subprocess import CalledProcessError, check_output
import sys
IS_INTERESTING = re.compile("^[a-z0-9-.]+ ")
#!/usr/bin/python
import compiler
import compiler.ast
import optparse
import sys
class MockChecker(object):
def __init__(self):
self.errors = 0