Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
host_vars
inventories
modules/harrow
roles
stow/intern
.gitignore
Makefile
README.md
Vagrantfile
ansible.cfg
provision.yml
requirements.txt
requirements.yml
vault-password

README.md

Ansible

Requirements

Owing to weirdness with the Ubuntu 16.04, VirtualBox and Vagrant incompatibilities, the following versions of software are mandatory.

The specific known-good baseimage version is named in the Vagrantfile.

Installation

If you don't want to use a virutalenv, please feel free to skip those steps if you know what you're doing:

# easy_install pip
# pip install virtualenv
$ virtualenv venv
$ (source venv/bin/activate && pip install "ansible>=2.3,<2.4")

"Secret" Files

A handful of files in this repo are stored with the Ansible Vault function. To keep these files out of Ansible's field of vision for the public released code they are "stowed" using GNU stow.

Although it's rare that you would want to access these files, the system is simple:

$ cd stow
$ stow intern

Observe that this will create new files (symlinks) in ./inventories/ and ./host_vars/. If you are not in the list of authorized users Ansible will fail because you are not able to decrypt the vault password file.

You can undo this process by manually removing the symlinks or running stow -D intern from the stow directory.

Vagrant Plugins

$ vagrant plugin install vagrant-persistent-storage

Galaxy

$ ansible-galaxy install -p roles -r ./requirements.yml

Running

$ make development
# <make a coffee>

Porting Fixes To Base Image

$ lxc launch harrow-baseimage $name
$ lxc exec $name <some command here>
$ lxc publish --force $name
=> Container published with fingerprint: $fingerprint

$ lxc export $fingerprint .
=> Output is in $fingerprint.tar.gz

$ lxc image alias delete harrow-baseimage
$ lxc image alias create harrow-baseimage $fingerprint

Note: Be sure to fix the Ansible scripts, and to put this tarball into the correct S3 bucket.