-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
#!/usr/bin/python | |
''' Not my script, found on the Internet, and rediscovered on my hard drive | |
''' | |
import sys | |
def cidr_to_regex(cidr): | |
ip, prefix = cidr.split('/') | |
base = 0 | |
for val in map(int, ip.split('.')): |
FROM debian:8.1 | |
RUN dpkg-divert --local --rename --add /sbin/initctl | |
RUN ln -sf /bin/true /sbin/initctl | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update | |
RUN apt-get install -y sudo openssh-server curl lsb-release | |
# test-kitchen user setup |
#!/bin/bash | |
KEYBASE_USERID=trinitronx | |
GPG_PUBKEY_URL="https://keybase.io/trinitronx/key.asc" | |
SIGCHAIN_LINK="271330c45423cd997dafdc3f355c9575c0e6213aeb464596a457995ba0ae89110f" | |
THIS_SCRIPT_URL="https://gist.github.com/trinitronx/aee110cbdf55e67185dc44272784e694/raw/keybase-verify-signing-key-sig.sh" | |
THIS_SCRIPT_KEYBASE_SIGNATURE_URL="https://gist.github.com/trinitronx/aee110cbdf55e67185dc44272784e694/raw/keybase-verify-signing-key-sig.sh.keybase.sig.asc" | |
THIS_SCRIPT_GPG_SIGNATURE_URL="https://gist.github.com/trinitronx/aee110cbdf55e67185dc44272784e694/raw/keybase-verify-signing-key-sig.sh.gpg.sig.asc" | |
echo "This script requires that curl, gpg2, and jq are installed" |
launchctl unload -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist | |
launchctl load -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist |
I hereby claim:
- I am trinitronx on github.
- I am trinitronx (https://keybase.io/trinitronx) on keybase.
- I have a public key whose fingerprint is 177C AEC0 0C77 B281 2AD2 886F 1ABA 4874 3609 41DA
To claim this, I am signing this object:
Running the a playbook to create an EC2 host, I find that there is a race condition for Ansible to be able to connect to the host.
Both wait_for
and shell: echo host_is_up
(with retry / do..until loop) tasks are not enough to avoid hitting the race condition where Ansible fails to SSH.
Running the play shows that the "Wait for SSH" task completes successfully, and the initial connect for the "Wait up to 10mins for potential cloud-init sshd race condition" task fails completely without retrying as I had expected:
$ export AWS_ACCESS_KEY_ID=ABCDEFGHIJKLMNOPQRST
$ export AWS_ACCESS_KEY=$AWS_ACCESS_KEY_ID
$ export AWS_SECRET_ACCESS_KEY=1234567890abcdefghijklmnopqrstuvwxyzABCD
$ export AWS_SECRET_KEY=$AWS_SECRET_ACCESS_KEY
#!/bin/sh | |
# iterm_open_with - open a URL, file from CWD, full path, or path with linenumber in default app or Sublime Text if text file | |
# For usage with iTerm2: | |
# In iTerm's Preferences > Profiles > Default > Advanced > Semantic History, | |
# choose "Run command..." and enter "/your/path/to/iterm_open_with \5 \1 \2". | |
# Usage: iterm_open_with $(pwd) filename [linenumber] | |
# $(pwd) = current working directory (either use `pwd` or $PWD) | |
# filename = filename to open | |
# lineno = line number | |
pwd=$1 |
PLAY [test-kitchen] *********************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [localhost] | |
TASK: [altermn.rvm | include install type vars] ******************************* | |
ok: [localhost] => {"ansible_facts": {"rvm_init_script": "/etc/profile.d/rvm.sh", "rvm_root": "/usr/local/rvm"}} | |
TASK: [altermn.rvm | ensure necessary yum packages are installed] ************* | |
skipping: [localhost] |
This script has moved to: neillturner/omnibus-ansible
This is the original version of the Ansible install script. If you want the latest, please see the above link!
Install latest Ansible via pip + dependencies via a shell script
This file is used to install ansible in test kitchen when you set in the kitchen.yaml file