This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** I have the bootstrap_proxy set in knife.rb | |
$ cat .chef/knife.rb | tail -n1 | |
knife[:bootstrap_proxy] = "http://111.111.111.9:8080" | |
** in bootstrap/chef-full.erb I tell it to write it to ~/.curlrc | |
( | |
cat <<'EOP' | |
<%= "http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" %> | |
EOP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Install RUBY | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
brew install rbenv | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
brew install ruby-build | |
rbenv install —list | |
rbenv install 1.9.3-p448 | |
rbenv global 1.9.3-p448 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...CONFIG...] | |
user "jenkins" do | |
supports :manage_home => true | |
comment "The Jenkins user that handles all deploys" | |
home "/home/jenkins" | |
shell "/bin/bash" | |
password "12341234" | |
end | |
node['authorization']['sudo']['include_sudoers_d'] = true | |
include_recipe "sudo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...full client.log output...] | |
[2013-11-19T09:31:05-06:00] INFO: Forking chef instance to converge... | |
[2013-11-19T09:31:05-06:00] INFO: *** Chef 11.6.0 *** | |
[2013-11-19T09:31:06-06:00] INFO: Run List is [role[base], role[web], recipe[logging], recipe[app-website]] | |
[2013-11-19T09:31:06-06:00] INFO: Run List expands to [base, web, logging, app-website] | |
[2013-11-19T09:31:06-06:00] INFO: Starting Chef Run for website03.corpycorp.com | |
[2013-11-19T09:31:06-06:00] INFO: Running start handlers | |
[2013-11-19T09:31:06-06:00] INFO: Start handlers complete. | |
[2013-11-19T09:31:06-06:00] INFO: Loading cookbooks [apache2, app-website, apt, aws, base, build-essential, chef-client, chef-varnish, chef_handler, couchbase, cron, database, dmg, drush, firewall, git, line, logging, logrotate, mysql, nfs, ntp, openssl, php, postgresql, runit, splunk_cookbook, sudo, ufw, users, web, windows, xfs, xml, yum, zabbix] | |
[2013-11-19T09:31:07-06:00] WARN: Cloning resource attributes for service[apache2] from prior resource (CHEF-3694) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -1 ~/software/osx-apps/ | |
Adium_1.5.8.dmg | |
AdobeFlashPlayerInstaller_11_ltrosxd_aaa_aih.dmg | |
CitrixReceiverWeb.dmg | |
Dropbox 2.4.4.dmg | |
Evernote_402146.dmg | |
Firefox 24.0.dmg | |
Flux.zip | |
Gimp-2.8.6p1-MountainLion.dmg | |
HandBrake-0.9.9-MacOSX.6_GUI_x86_64.dmg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# chef-client | |
Starting Chef Client, version 11.6.0 | |
resolving cookbooks for run list: ["base", "web", "logging", "app-ctscom"] | |
Synchronizing Cookbooks: | |
- sudo | |
- users | |
- line | |
- nfs | |
- yum | |
- windows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chef-client -l debug | |
==== | |
[2014-01-29T14:08:44-06:00] DEBUG: Sending HTTP Request via POST to dc2mgmtdpsqa01.mgmt.sdirect:443/reports/nodes/dc2ctscomqa01.mgmt.sdirect/runs | |
[2014-01-29T14:08:44-06:00] DEBUG: ---- HTTP Status and Header Data: ---- | |
[2014-01-29T14:08:44-06:00] DEBUG: HTTP 1.1 404 Object Not Found | |
[2014-01-29T14:08:44-06:00] DEBUG: server: nginx/1.4.4 | |
[2014-01-29T14:08:44-06:00] DEBUG: date: Wed, 29 Jan 2014 20:08:50 GMT | |
[2014-01-29T14:08:44-06:00] DEBUG: content-type: text/html | |
[2014-01-29T14:08:44-06:00] DEBUG: transfer-encoding: chunked | |
[2014-01-29T14:08:44-06:00] DEBUG: connection: close |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
####################################################### | |
## goose-lift is a strangely named simple backup script | |
## ---------------------------------------------------- | |
## * modify variables below to match your needed values | |
## * create an ssh key, and transfer it via ssh-copy-id | |
## * set cron example 00 11 * * 0,2,4,6 ~/goose-lift.sh | |
## * you are all done, start goose-lifting your server! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Save the pwd | |
cwd=`pwd` | |
# Set the env | |
cat >> ~/.profile << EOT | |
export GOROOT=$HOME/go | |
export GOOS=linux | |
#export GOARCH=`arch` | |
#NOTE: last line errors with: go tool dist: unknown $GOARCH x86_64 - hard-coding for great justice! | |
export GOARCH=amd64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ssh 107.170.89.168 -vvv | |
OpenSSH_6.2p2 Ubuntu-6ubuntu0.2, OpenSSL 1.0.1e 11 Feb 2013 | |
debug1: Reading configuration data /home/phil/.ssh/config | |
debug1: /home/phil/.ssh/config line 1: Applying options for * | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: /etc/ssh/ssh_config line 19: Applying options for * | |
debug2: ssh_connect: needpriv 0 | |
debug1: Executing proxy command: exec corkscrew 127.0.0.1 80 107.170.89.168 22 | |
debug1: permanently_drop_suid: 1000 | |
debug3: Incorrect RSA1 identifier |