Skip to content

Instantly share code, notes, and snippets.

View wkf's full-sized avatar
🤝

Will Farrell wkf

🤝
View GitHub Profile
---
- hosts: all
sudo: yes
tasks:
- name: add backports apt repo
apt_repository: repo="deb http://ftp.debian.org/debian wheezy-backports main" state=present
- name: update kernel
apt: pkg={{ item }} default_release=wheezy-backports update_cache=true state=latest
{
"builders": [{
"vm_name": "debian74",
"type": "vmware-iso",
"iso_url": "debian-7.4.0-amd64-netinst.iso",
"iso_checksum": "e7e9433973f082a297793c3c5010b2c5",
"guest_os_type": "debian7-64",
"http_directory": ".",
"iso_checksum_type": "md5",
"shutdown_command": "shutdown -P now",
# Debian 7.1.0 preseed file - preseed.cfg
#
# For more information on preseed syntax and commands, refer to:
# http://www.debian.org/releases/stable/i386/apbs01.html.en
#
# For testing, you can fire up a local http server temporary.
# Download the preseed.cfg file locally, cd to the directory where the
# preseed.cfg resides and run hte following command:
# $ python -m SimpleHTTPServer
# You don't have to restart the server every time you make changes. Python
---
- name: install reprepro
sudo: yes
apt: pkg=reprepro default_release="wheezy-backports" update_cache=true state=latest
- name: create package directory
sudo: yes
file: path=/var/packages/debian recurse=yes state=directory
@def $DOCKER_IP = `ip -4 -o addr show dev docker0 | awk '{print $4}'`;
domain ip table mangle {
chain PREROUTING {
proto tcp interface docker0 dport 80 MARK set-mark 42;
proto tcp interface docker0 dport 443 MARK set-mark 42;
}
}
domain ip table nat {
---
- name: install iptables-persistent
sudo: yes
apt: pkg=iptables-persistent update_cache=true state=latest
- name: enable localnet routing for all interfaces
sudo: yes
sysctl: name=net.ipv4.conf.all.route_localnet value=1 sysctl_set=yes state=present
*nat
:PREROUTING ACCEPT [0:0]
-A PREROUTING -i docker0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 127.0.0.1:{{ squid_intercepted_http_port }}
-A PREROUTING -i docker0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 127.0.0.1:{{ squid_intercepted_https_port }}
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
FROM mojo/debian:wheezy
MAINTAINER mojotech <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV NODE_PATH /usr/local/lib/node_modules
ADD apt/backports.list /etc/apt/sources.list.d/backports.list
RUN apt-get update && \
apt-get install -y --no-install-recommends -t wheezy-backports \
mojotech.addresses = "mojotech.irc.slack.com"
mojotech.proxy
mojotech.ipv6
mojotech.ssl = on
mojotech.ssl_cert
mojotech.ssl_priorities = "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT"
mojotech.ssl_dhkey_size
mojotech.ssl_fingerprint
mojotech.ssl_verify
mojotech.capabilities
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "mojo-debian"
config.vm.box_url = "http://mojo-boxes.s3.amazonaws.com/mojo-debian-vagrant-virtualbox-1399125106.box"
config.vm.provider :vmware_fusion do |v, override|