This file contains hidden or 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
| KEYCHAIN=$(which keychain) | |
| if [[ -z "${KEYCHAIN}" ]]; then | |
| echo "Please install keychain" | |
| fi | |
| KEYS=(id_rsa id_rsa_boomer) | |
| if [ -d ${HOME}/.ssh ] || [ -d ${HOME}/.gnupg ]; then | |
| for i in ${KEYS[@]}; do | |
| keychain --nogui ${i} |
This file contains hidden or 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
| Host * | |
| HashKnownHosts no | |
| ForwardAgent yes |
This file contains hidden or 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
| amazon-ebs-ubuntu: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. | |
| amazon-ebs-ubuntu: invoke-rc.d: initscript docker, action "start" failed. | |
| amazon-ebs-ubuntu: * docker.service - Docker Application Container Engine | |
| amazon-ebs-ubuntu: Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) | |
| amazon-ebs-ubuntu: Active: activating (auto-restart) (Result: exit-code) since Fri 2018-02-09 18:00:23 UTC; 4ms ago | |
| amazon-ebs-ubuntu: Docs: https://docs.docker.com | |
| amazon-ebs-ubuntu: Process: 21528 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE) | |
| amazon-ebs-ubuntu: Main PID: 21528 (code=exited, status=1/FAILURE) |
This file contains hidden or 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
| function aws-vault() { | |
| local aws_vault_cmd=$(which aws-vault) | |
| if [ -z "${aws_vault_cmd}" ]; then | |
| echo "aws-vault is not on your path you do not have it installed" | |
| exit 1 | |
| fi | |
| case "$1" in | |
| exec) | |
| local action=$1 |
This file contains hidden or 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
| diff --git a/Dockerfile b/Dockerfile | |
| index d1b8f0f..608700f 100644 | |
| --- a/Dockerfile | |
| +++ b/Dockerfile | |
| @@ -12,13 +12,20 @@ ENV AwCliVersion=1.10.38 \ | |
| Toml2JSONVersion=0.1.0 | |
| # Intall package dependencies | |
| -RUN apt-get update && apt-get install -y \ | |
| - curl \ |
This file contains hidden or 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
| case $::osfamily { | |
| 'RedHat': { | |
| $firewall = 'firewalld' | |
| } | |
| 'Debian': { | |
| $firewall = 'ufw' | |
| } | |
| default: { | |
| fail("Module firewall does not support ${::osfamily}") | |
| } |
This file contains hidden or 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
| $ curl -I --verbose https://mozilla.com.tw/free-fox | |
| * Trying 172.16.142.242... | |
| * TCP_NODELAY set | |
| * Connected to proxy.service.consul (172.16.142.242) port 3128 (#0) | |
| * Establish HTTP proxy tunnel to mozilla.com.tw:443 | |
| > CONNECT mozilla.com.tw:443 HTTP/1.1 | |
| > Host: mozilla.com.tw:443 | |
| > User-Agent: curl/7.53.1 | |
| > Proxy-Connection: Keep-Alive | |
| > |
This file contains hidden or 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
| diff --git a/Dockerfile b/Dockerfile | |
| index 96dad6a..4e21aab 100644 | |
| --- a/Dockerfile | |
| +++ b/Dockerfile | |
| @@ -10,11 +10,15 @@ ENV AwCliVersion=1.10.38 \ | |
| PuppetVersion=3.8.7 \ | |
| TerraformVersion=0.10.7 \ | |
| LibrarianPuppetVersion=2.2.3 \ | |
| - NubisBuilderVersion=1.5.4 | |
| + NubisBuilderVersion=1.5.4 \ |
This file contains hidden or 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
| diff --git a/modules/vpc/main.tf b/modules/vpc/main.tf | |
| index b642fe7..98cf72c 100644 | |
| --- a/modules/vpc/main.tf | |
| +++ b/modules/vpc/main.tf | |
| @@ -1549,6 +1549,6 @@ resource "null_resource" "user_management_unicreds" { | |
| provisioner "local-exec" { | |
| when = "destroy" | |
| - command = "${self.triggers.unicreds_rm}/user-sync/config" | |
| + command = "${self.triggers.unicreds_rm}/user-sync/config ${self.triggers.context}" |
This file contains hidden or 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 | |
| # This does an sts assume role and spits out | |
| # credentials for you to use, works by grabbing password out of mac keychain | |
| import sys | |
| import re | |
| import os | |
| import json | |
| import boto3 |