View failure
[ec2-user@ip-10-0-0-10 delivery-cluster-master]$ rake setup:cluster
-bash: rake: command not found
[ec2-user@ip-10-0-0-10 delivery-cluster-master]$ chef exec rake setup:cluster
Verifying ChefDK version
Running ChefDK version 0.10.0
Configuring the provisioner node
View Rakefile
namespace :gsub do
desc 'populate a configuration'
task :populate do
content = File.read('config.yml')
content.gsub!('REPLACE_ME_KEY','REAL_KEY')
content.gsub!('REPLACE_ME_ID','REAL_ID')
puts content
end
View son_lint.rb
require 'json'
Dir["**/*.json"].each do |json_file|
JSON.parse(File.read(json_file))
end
View gist:488e950f5a3a7645b227
---
driver:
name: vagrant
provisioner:
name: chef_zero
platforms:
- name: centos-6.5
View .zshrc
read () {
open "http://franklinwebber.com"
}
article () {
# change in to the directory where I keep my journal project
cd ~/journal
echo "Creating article '$@'"
View winrm.ps1
# Get the ID and security principal of the current user account
$myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWindowsID)
# Get the security principal for the Administrator role
$adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
# Check to see if we are currently running "as Administrator"
if ($myWindowsPrincipal.IsInRole($adminRole))
{
View 00_attendees.md
Name Workstation
Rebekah ec2-52-3-218-73.compute-1.amazonaws.com
Frank ec2-52-0-134-92.compute-1.amazonaws.com
View httpd_cookbook_centos6.rb
#
# Cookbook Name:: apache
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
package "httpd" do
View attributes_default.rb
default['email_handler']['from_address'] = "chef@localhost"
default['email_handler']['to_address'] = "chef@localhost"