Skip to content

Instantly share code, notes, and snippets.

View gamename's full-sized avatar
💭
retired

Tennis Smith gamename

💭
retired
  • 14:16 (UTC -05:00)
View GitHub Profile
--> Idempotence test in progress (can take a few minutes)...
--> Starting Ansible Run...
Idempotence test passed.
--> Executing ansible-lint...
--> Executing rubocop on *.rb files found in spec/...
Inspecting 2 files
..
2 files inspected, no offenses detected
--> Executing serverspec tests found in spec/...
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provider "virtualbox" do |vb|
vb.memory = "8192"
end
config.vm.provision "shell", inline: <<-SHELL
sudo yum install -y ntp
sudo systemctl start ntpd
@gamename
gamename / cronitor.sh
Created February 26, 2016 22:44 — forked from erchn/cronitor.sh
Cronitor wrapper script for start/stop notifications, shamelessly stolen from the now defunct Proby
#!/bin/bash
#
# This script surrounds the command passed in with start and finish notifications
# to the cronitor monitoring application.
#
# === SETUP
#
# * Make sure the cronitor script is executable.
#
# chmod +x cronitor
[ngd@localhost ~]$ cd ./bin
[ngd@localhost bin]$ gulp deploy --cwd .. --branch='shippable' --hashkey='blit' --type=production
[21:23:44] Requiring external module coffee-script/register
[21:23:44] Working directory changed to ~
[21:23:44] Using gulpfile ~/gulpfile.coffee
[21:23:44] Starting 'mortar:clean'...
[21:23:44] Finished 'mortar:clean' after 61 ms
[21:23:44] Starting 'mortar:stylus'...
[21:23:45] Starting 'mortar:jade'...
@gamename
gamename / gist:cbd750ca3634fbed9679
Created February 26, 2015 21:42
box file upload
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 498 100 395 100 103 343 89 0:00:01 0:00:01 --:--:-- 343
{
"version": "1.0.3",
"status": "unreleased",
"description_html": null,
"description_markdown": null,
"created_at": "2015-02-26T21:35:53.478Z",
"updated_at": "2015-02-26T21:35:53.478Z",
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
require "ipaddr"
variable_path = "variables.json"
@gamename
gamename / CommandLIne
Last active August 29, 2015 14:15
Vagrant+Ansible+SSH Connection Timeouts With Multiple Hosts
> vup
Bringing machine 'pgdb-1' up with 'virtualbox' provider...
Bringing machine 'pgdb-2' up with 'virtualbox' provider...
Bringing machine 'consul-1' up with 'virtualbox' provider...
Bringing machine 'consul-2' up with 'virtualbox' provider...
Bringing machine 'consul-3' up with 'virtualbox' provider...
==> pgdb-1: Importing base box 'nextgxdx/centos-70'...
==> pgdb-1: Matching MAC address for NAT networking...
==> pgdb-1: Checking if box 'nextgxdx/centos-70' is up to date...
==> pgdb-1: Setting the name of the VM: pgdb-1
2015/02/20 12:34:00 [INFO] Packer version: 0.7.5 f1970370ef337a6361a8a39bb4b17ddf625e4378+CHANGES
2015/02/20 12:34:00 Packer Target OS/Arch: darwin amd64
2015/02/20 12:34:00 Built with Go Version: go1.4.1
2015/02/20 12:34:00 [DEBUG] Discovered plugin: amazon-chroot = /Users/tennis/Documents/golang/src/github.com/mitchellh/packer/bin/packer-builder-amazon-chroot
2015/02/20 12:34:00 [DEBUG] Discovered plugin: amazon-ebs = /Users/tennis/Documents/golang/src/github.com/mitchellh/packer/bin/packer-builder-amazon-ebs
2015/02/20 12:34:00 [DEBUG] Discovered plugin: amazon-instance = /Users/tennis/Documents/golang/src/github.com/mitchellh/packer/bin/packer-builder-amazon-instance
2015/02/20 12:34:00 [DEBUG] Discovered plugin: digitalocean = /Users/tennis/Documents/golang/src/github.com/mitchellh/packer/bin/packer-builder-digitalocean
2015/02/20 12:34:00 [DEBUG] Discovered plugin: docker = /Users/tennis/Documents/golang/src/github.com/mitchellh/packer/bin/packer-builder-docker
2015/02/20 12:34:00 [DEBUG] Discovered pl
{
"variables": {
"platform": "dummy_platform",
"os_name": "dummy_os_name",
"built_on": "dummy_built_on",
"out_dir": "dummy_out_dir",
"vagrant_cloud_token": "{{ env `VCLOUD_TOKEN`}}",
"aws_access_key": "{{ env `AWS_ACCESS_KEY_ID` }}",
"aws_secret_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}",