Skip to content

Instantly share code, notes, and snippets.

View jeanpaulazara's full-sized avatar

jeanpaulazara

View GitHub Profile
@jeanpaulazara
jeanpaulazara / readme.md
Last active March 1, 2017 00:12
Testing provision scripts w/o restarting vagrant

We spin up a Cassandra cluster. It takes 12 to fifteen minutes to run vagrant up. Sometimes we want to test a new playbook or bash script without taking the instances down.

First step is to get Vagrant to rsync our project directory.

vagrant rsync

$ vagrant rsync
==> node0: Rsyncing folder: /Users/jean/github/cassandra-image/ => /vagrant
==> node1: Rsyncing folder: /Users/jean/github/cassandra-image/ => /vagrant
==> node2: Rsyncing folder: /Users/jean/github/cassandra-image/ => /vagrant
@jeanpaulazara
jeanpaulazara / prepare_binaries.sh
Created February 24, 2017 18:28
Script that downloads and checks a checksum.
```
#!/bin/bash
set -e
export ADVANTAGEOUS_GITHUB_HOME=https://github.com/advantageous
export CLOUDURABLE_GITHUB_HOME=https://github.com/cloudurable
downloadAndVerify() {
githome=$1