Skip to content

Instantly share code, notes, and snippets.

View yvovandoorn's full-sized avatar

Yvo yvovandoorn

View GitHub Profile
#!/bin/bash
DEST="/Users/yvo/Desktop/logos2"
# Run this from devopsdays-web/static/events
for i in $(ls); do echo $i >> /tmp/cities; done
awk -F"-" '{ print $2}' /tmp/cities | sort | uniq > /tmp/stripped
for i in $(cat /tmp/stripped); do
for j in {2010..2020}; do
@yvovandoorn
yvovandoorn / README.md
Last active October 7, 2015 09:43
Chef Metal & Machine config

Updates to DevOps for VMware Administrators – Chapter 9

Overview

This gist will contain updates to the Chef Provisioning portion located in Chapter 9 of the 1st edition of “DevOps for VMWare Administrators"

The chapter has a warning on page 136 warning users due to the heavy development of Chef Provisioning that the instructions may no longer work. This gist is to

@yvovandoorn
yvovandoorn / production.rb
Created June 1, 2014 21:19
DoVA - Environment files
name "production"
description "Your production environment"
default_attributes ({
"root" => {
"password" => "$6$uLD5kuid$pvYSgFZMp5a.m8Q2fjVaIhcCIyhGFytWZYQXCkCW8oC.JvNWV5hmCptApdBOBZLA4DJc.rimnngPF9oZoZ6Ga1"
},
"ntp" => {
"servers" => [ "0.vmware.pool.ntp.org", "1.vmware.pool.ntp.org", "2.vmware.pool.ntp.org" ]
}
})
@yvovandoorn
yvovandoorn / colon-in-the-path-problem.mkd
Last active December 16, 2015 02:59
When the file / template has a hardcoded path defined (either set via node attribute or hard coded as in the example), specifically when a colon (:) is present, the notifies parameter does not work.

Works:

script

service "Apache2.2" do
  action :nothing
end

file "./blah" do
service "Apache2.2" do
  action :nothing
end

file "C:\\blah.txt" do
  notifies :restart, "service[Apache2.2]", :immediate
end