- Run the CloudFormation to create the VPC and subnets (cloud_formation/VPCLockDown.json)
- Get AWS Access credentials for the user the cloudformation created
- Locate the control node AMI (ami-2fa35242) Finding Shared AMIs
- Launch an instance from the AMI. Launching Your Instance
- Configure the security group to allow SSH from your IP. Security Group Rules
- Include an Amazon EC2 Keypair that you have access to
- Once the instance has launched, scp your private key to the instance
scp -i yourkey.pem yourkey.pem ubuntu@ec2-instance-ip:~/on-premise/ansible/yourkey.pem
- ssh to the instance
ssh -i yourkey.pem ubuntu@ec2-instance-ip
- export the following variables
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
In 2014, my family had had enough of the typical 9 to 5. I tried the startup thing, I tried the corporate thing, I tried the non-profit thing. None of it was fulfilling. And the repetition of it all was driving me crazy. So we sold everything we had, bought an RV, and hit the road. I'll talk through what led us to do this, how it's been going, and provide a few different ways for people to dip their toes into this lifestyle: from weekend warriors, short-term trips, international travel, and full-time travel. If you're a programmer, you have a TON of options to work from the road. I'd love to let people know they're not stuck and give them ideas on how to see the world -- not just a dark cubicle |
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/07/25 20:42:36 [INFO] serf: EventMemberJoin: 10.10.10.63 10.10.10.63 | |
2016/07/25 20:42:36 [INFO] serf: EventMemberJoin: 10.10.10.62 10.10.10.62 | |
2016/07/25 20:42:36 [INFO] consul: adding LAN server 10.10.10.63 (Addr: 10.10.10.63:8300) (DC: us-east-1) | |
2016/07/25 20:42:36 [INFO] consul: adding LAN server 10.10.10.62 (Addr: 10.10.10.62:8300) (DC: us-east-1) | |
Broadcast message from root@ip-10-10-10-156 | |
(unknown) at 20:43 ... | |
The system is going down for power off NOW! |
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
ubuntu@ip-10-10-10-31:~$ consul info | |
agent: | |
check_monitors = 0 | |
check_ttls = 0 | |
checks = 0 | |
services = 1 | |
build: | |
prerelease = | |
revision = 46499d6e | |
version = 0.6.0 |
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
``` | |
sudo -u consul -g consul GOMAXPROCS=1 /opt/consul/bin/consul agent -config-file=/etc/consul.conf | |
``` | |
consul.conf | |
``` | |
{ | |
"start_join": ["10.10.10.10"], | |
"disable_remote_exec": true, | |
"domain": "consul", |
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
docker-machine create \ | |
--driver amazonec2 \ | |
--amazonec2-access-key ${AWS_ACCESS_KEY_ID} \ | |
--amazonec2-secret-key ${AWS_SECRET_ACCESS_KEY} \ | |
--amazonec2-region ${AWS_REGION} \ | |
--amazonec2-vpc-id ${AWS_VPC_ID} \ | |
--amazonec2-subnet-id ${AWS_SUBNET_ID} \ | |
--amazonec2-zone ${AWS_ZONE} \ | |
consul1 |
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 -xe | |
set -e | |
sudo apt-get update | |
sudo apt-get install -yf python-virtualenv python-dev python-apt make git | |
git clone git@github.com:Mashape/on-premise.git /home/ubuntu/on-premise | |
cd /home/ubuntu/on-premise/ansible/galileo-api | |
make install |
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
{ | |
"variables": { | |
}, | |
"builders": [ | |
{ | |
"type": "amazon-ebs", | |
"ssh_pty": "true", | |
"communicator": "ssh", | |
"region": "us-east-1", | |
"source_ami": "ami-fce3c696", |
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
docker build -t yantis/thunderbird . | |
Sending build context to Docker daemon 195.1 kB | |
Step 1 : FROM yantis/ssh-hpn-x | |
latest: Pulling from yantis/ssh-hpn-x | |
a3ed95caeb02: Already exists | |
2073d8161837: Already exists | |
bae9a9c5e678: Already exists | |
650e457b334b: Already exists | |
d03340e9c052: Already exists | |
315facafbf3e: Already exists |
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/sh | |
# Make sure you replace the API and/or APP key below | |
# with the ones for your account | |
api_key=nope | |
app_key=nope | |
alert_id=512 | |
curl -X POST -H "Content-type: application/json" \ | |
-d '{ |