git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>Label</key> | |
| <string>hashicorp.vault.server</string> | |
| <key>ProgramArguments</key> | |
| <array> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>Label</key> | |
| <string>hashicorp.consul.server</string> | |
| <key>ProgramArguments</key> | |
| <array> |
| #!/bin/bash | |
| set -x | |
| # Root user required | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "Sorry, you must be root to install dd-agent" && exit 1 | |
| fi | |
| # Python and sysstat are required | |
| if ! command -v python &>/dev/null; then echo "Python not installed" && exit 1; fi |
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
| #!/bin/bash | |
| set -e | |
| set -x | |
| disk="/dev/sdb" | |
| rootfs="ArchLinuxARM-rpi-2-latest.tar.gz" | |
| pushd $(mktemp -d) | |
| mkdir root boot |
| # the following are the commands to get deis up and running | |
| # on your OS X machine. i've made the assumption that you have | |
| # the latest versions of vagrant & virtualbox already | |
| # installed. | |
| # | |
| # if not... | |
| # | |
| # vagrant: https://www.vagrantup.com/downloads.html | |
| # virtualbox: https://www.virtualbox.org/wiki/Downloads |
| #!/usr/bin/env bash | |
| set -x | |
| # Domain you wish to update | |
| DOMAIN="example.com" | |
| # Get the v4/v6 addresses from icanhazip.com [pretty reliable!] | |
| IPV4_ADDR=`wget -4 -q -O - icanhazip.com` | |
| IPV6_ADDR=`wget -6 -q -O - icanhazip.com` |
| [Unit] | |
| Description=Set system hostname to Ethernet MAC address | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/bin/bash -c "hostnamectl set-hostname $(cat /sys/class/net/eth0/address | tr -d ':')" | |
| [Install] | |
| WantedBy=multi-user.target |
| 127.0.0.1 localhost.localdomain localhost | |
| ::1 localhost.localdomain localhost | |
| 192.168.99.1 salt |
| [Unit] | |
| Description=Docker TCP Socket | |
| PartOf=docker.service | |
| [Socket] | |
| ListenStream=2375 | |
| BindIPv6Only=both | |
| Service=docker.service | |
| [Install] |