For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| #!/bin/bash | |
| set -e | |
| # Deploy built site to this branch | |
| TARGET_BRANCH=master | |
| # Sync the contents of this directory where the site should have been built | |
| SOURCE_DIR=_site | |
| if [ ! -d "$SOURCE_DIR" ]; then | |
| echo "SOURCE_DIR ($SOURCE_DIR) does not exist, build the source directory before deploying" |
| --- | |
| ### | |
| # Elasticsearch Rolling restart using Ansible | |
| ### | |
| ## | |
| ## Why is this needed? | |
| ## | |
| # | |
| # Even if you use a serial setting to limit the number of nodes processed at one |
| I1217 19:23:11.844920 2201 state.cpp:33] Recovering state from '/tmp/mesos/meta' | |
| Incompatible slave info detected. | |
| ------------------------------------------------------------ | |
| Old slave info: | |
| hostname: "ip-10-46-210-228.ec2.internal" | |
| webui_hostname: "ip-10-46-210-228.ec2.internal" | |
| resources { | |
| name: "cpus" | |
| type: SCALAR | |
| scalar { |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| /* | |
| * Compile: gcc mpdsonglisten.c -o mpdsonglisten -lmpdclient -std=c99 | |
| * Run: ./mpdsonglisten localhost 6600 <on_play_script> <on_stop_script> | |
| * Example: ./mpdsong localhost 6600 'echo plays!' 'echo stopped!' | |
| * | |
| * It will call on_play_script once mpd starts playing, | |
| * and on_stop_script once it pauses, stops or does something unknown. | |
| * | |
| * Error handling is done by ignoring none-fatal erros and trying to reconnect if | |
| * fatal errors happen. |
| HTTP transfer protocols | |
| ======================= | |
| Git supports two HTTP based transfer protocols. A "dumb" protocol | |
| which requires only a standard HTTP server on the server end of the | |
| connection, and a "smart" protocol which requires a Git aware CGI | |
| (or server module). This document describes both protocols. | |
| As a design feature smart clients can automatically upgrade "dumb" | |
| protocol URLs to smart URLs. This permits all users to have the |
| ## Install necessary packages | |
| $ sudo apt-get install virtualbox-ose qemu-utils genisoimage cloud-utils | |
| ## get kvm unloaded so virtualbox can load | |
| $ sudo modprobe -r kvm_amd kvm_intel | |
| $ sudo service virtualbox stop | |
| $ sudo service virtualbox start | |
| ## URL to most recent cloud image of 12.04 | |
| $ img_url="http://cloud-images.ubuntu.com/server/releases/12.04/release" |