This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import time | |
import argparse | |
import boto.sqs | |
from termcolor import cprint | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016/04/13 13:54:09 [INFO] Terraform version: 0.6.14 c7e5b24531e73aae1eec2f7530d968ac8c69804c | |
2016/04/13 13:54:09 [DEBUG] Detected home directory from env var: /home/daniel | |
2016/04/13 13:54:09 [DEBUG] Discovered plugin: atlas = /opt/Hashicorp/Terraform/0.6.14/terraform-provider-atlas | |
2016/04/13 13:54:09 [DEBUG] Discovered plugin: aws = /opt/Hashicorp/Terraform/0.6.14/terraform-provider-aws | |
2016/04/13 13:54:09 [DEBUG] Discovered plugin: azure = /opt/Hashicorp/Terraform/0.6.14/terraform-provider-azure | |
2016/04/13 13:54:09 [DEBUG] Discovered plugin: azurerm = /opt/Hashicorp/Terraform/0.6.14/terraform-provider-azurerm | |
2016/04/13 13:54:09 [DEBUG] Discovered plugin: chef = /opt/Hashicorp/Terraform/0.6.14/terraform-provider-chef | |
2016/04/13 13:54:09 [DEBUG] Discovered plugin: clc = /opt/Hashicorp/Terraform/0.6.14/terraform-provider-clc | |
2016/04/13 13:54:09 [DEBUG] Discovered plugin: cloudflare = /opt/Hashicorp/Terraform/0.6.14/terraform-provider-cloudflare | |
2016/04/13 13:54:09 [DEBUG] Discovered plugin: cloudstack = /o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "access_key" { | |
type = "string" | |
} | |
variable "secret_key" { | |
type = "string" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
INSTALLATION_PATH="/opt/Hashicorp/Terraform" | |
TERRAFORM_RELEASES_URL="https://releases.hashicorp.com/terraform" | |
GITHUB_RELEASES_URL="https://api.github.com/repos/hashicorp/terraform/releases" | |
echo "-> Getting latest release number." | |
release="$( curl -s ${GITHUB_RELEASES_URL} | jq '.[].tag_name' | head -n1 | grep -Eo '[0-9.]+' )" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "access_key" {} | |
variable "secret_key" {} | |
provider "aws" { | |
access_key = "${var.access_key}" | |
secret_key = "${var.secret_key}" | |
region = "eu-west-1" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import os.path | |
import subprocess | |
from OpenSSL import crypto, SSL | |
from ansible.module_utils.basic import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:wheezy | |
RUN apt-get update | |
RUN apt-get install --assume-yes vim | |
RUN apt-get install --assume-yes rrdtool python-rrdtool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:2.7-onbuild | |
CMD [ "python", "./netshare.py" ] |