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
--- | |
- name: ensure required packages are installed for Java 7 | |
apt: name=$item state=latest update_cache=yes | |
with_items: | |
- python-software-properties | |
- name: Add Java repository to sources | |
action: apt_repository repo='ppa:webupd8team/java' |
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
package backends | |
import ( | |
"fmt" | |
"io" | |
"strings" | |
"sync" | |
"time" | |
"github.com/docker/libswarm" |
This is a 5-minute crash course to start using vagrant. We will host our vagrant files in /home/USER/vms
. That's
my convention working with many vagrant machines.
vagrant: https://docs.vagrantup.com/v2/installation/
virtualbox: https://www.virtualbox.org/wiki/Downloads
##Install AWS CLI Tools##
- Install AWS CLI Tools. You can also use the EC2 API Tool if you are more comfortable with them. But this write-up uses the EC2 CLI.
- Create a user via Amazon IAM or download the security accessID and securitykey you will need it to query Amazon CLI.
- using Terminal cd into .aws directory
cd ~/.aws
edit or create new file namedconfig
paste the following contents inside.- `[default]`
- `aws_access_key_id = ACCESS_ID`
- `aws_secret_access_key = SECRET_ID`
- `output = json OR bson OR text`
- `region = PREFERRED_AWS_REGION`
Save the file as "config"
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
#!/bin/bash -x | |
#DEBUG="-debug" | |
VM=`echo ${1} | sed 's/.json//g'` | |
PACKER=`which packer` | |
rm -rf output-${VM} | |
${PACKER} build ${DEBUG} ${VM}.json |
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
--- | |
# file docker/tasks/main.yml | |
- name: run apt-get update | |
apt: update_cache=yes | |
sudo: yes | |
- name: install required packages | |
apt: name="linux-image-generic-lts-trusty" state="present" | |
sudo: yes |