Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

stripping out cruft

  • Loading branch information...
commit 05431fecfb28d9b806ad3217f01cd916ec6d0765 1 parent 6e53bdd
Philip (flip) Kromer authored
Showing with 80 additions and 227 deletions.
  1. +0 −9 away/chimpstation_away/attributes/git_pairs.rb
  2. +0 −38 away/chimpstation_away/libraries/brew.rb
  3. +0 −1  away/chimpstation_away/recipes/ack.rb
  4. +0 −1  away/chimpstation_away/recipes/activemq.rb
  5. 0  ...dor/chimpstation-pantry/cookbooks/chimpstation_prefs → away/chimpstation_away}/recipes/add_ops_user.rb
  6. +0 −6 away/chimpstation_away/recipes/ccmenu.rb
  7. +0 −3  away/chimpstation_away/recipes/ec2_api_tools.rb
  8. +0 −10 away/chimpstation_away/recipes/google_chrome_prevent_updates.rb
  9. +0 −3  away/chimpstation_away/recipes/imagemagick.rb
  10. 0  ...impstation-pantry/cookbooks/chimpstation_prefs → away/chimpstation_away}/recipes/iterm_set_defaults.rb
  11. +0 −3  away/chimpstation_away/recipes/joe.rb
  12. +0 −20 away/chimpstation_away/recipes/memcached.rb
  13. 0  {vendor/chimpstation-pantry/cookbooks/chimpstation_prefs → away/chimpstation_away}/recipes/osx_updates.rb
  14. +0 −1  away/chimpstation_away/recipes/rabbitmq.rb
  15. +0 −1  away/chimpstation_away/recipes/solr.rb
  16. +0 −1  away/chimpstation_away/recipes/svn.rb
  17. +0 −10 away/chimpstation_away/recipes/unix_essentials.rb
  18. +0 −5 away/chimpstation_away/recipes/workspace_directory.rb
  19. +0 −12 away/chimpstation_away/templates/default/git_scripts_pairs.erb
  20. +1 −1  away/chimpstation_away/templates/default/launchd.conf.erb
  21. +0 −1  cookbooks/chimpstation_osxware
  22. +17 −0 ...okbooks/{chimpstation_prefs/recipes/screen_sharing_app.rb → chimpstation_pkg/recipes/screensharing.rb}
  23. +30 −0 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/{active_corners.rb → desktop_prefs.rb}
  24. +0 −4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/disable_front_row.rb
  25. +0 −16 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/dock_defaults.rb
  26. +0 −13 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/dock_preferences.rb
  27. +5 −0 ...impstation-pantry/cookbooks/chimpstation_prefs/recipes/{finder_display_full_path.rb → finder_prefs.rb}
  28. 0  ...ion-pantry/cookbooks/chimpstation_prefs/recipes/{defaults_fast_key_repeat_rate.rb → keyboard_prefs.rb}
  29. 0  ...tion-pantry/cookbooks/chimpstation_prefs/recipes/{set_multitouch_preferences.rb → multitouch_prefs.rb}
  30. +0 −11 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/remove_garageband.rb
  31. 0  ...chimpstation_away → vendor/chimpstation-pantry/cookbooks/chimpstation_prefs}/recipes/rename_machine.rb
  32. +0 −4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/safari_preferences.rb
  33. +5 −0 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/{safari_defaults.rb → safari_prefs.rb}
  34. +0 −16 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/screen_sharing_on.rb
  35. 0  ...on-pantry/cookbooks/chimpstation_prefs/recipes/{set_screensaver_preferences.rb → screensaver_prefs.rb}
  36. +0 −4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/set_finder_show_hd_on_desktop.rb
  37. +0 −3  vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/terminal_defaults.rb
  38. +0 −4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/terminal_focus.rb
  39. +0 −4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/terminal_preferences.rb
  40. +20 −0 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/terminal_prefs.rb
  41. +0 −22 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/timemachine_preferences.rb
  42. 0  .../default_editor.rb → vendor/chimpstation-pantry/cookbooks/textmate/recipes/textmate_handles_unknown.rb
  43. +2 −0  vendor/chimpstation-pantry/roles/osx_apps.rb
View
9 away/chimpstation_away/attributes/git_pairs.rb
@@ -1,9 +0,0 @@
-node.default["git_pairs_authors"] = [
- {"initials" => "mk", "name" => "Matthew Kocher", "shortname" => "mkocher"},
- {"initials" => "bc", "name" => "Brian Cunnie", "shortname" => "cunnie"},
- {"initials" => "jn", "name" => "Jason Noble", "shortname" => "jnoble"},
- {"initials" => "jd", "name" => "Jeff Dean", "shortname" => "jdean"},
- {"initials" => "rk", "name" => "Reed Kennedy", "shortname" => "reed"},
- {"initials" => "rh", "name" => "Rob Head", "shortname" => "rhead"},
- {"initials" => "sc", "name" => "Santa Claus"}
- ]
View
38 away/chimpstation_away/libraries/brew.rb
@@ -1,38 +0,0 @@
-class Chef::Recipe
- def brew_install(package, opts={})
- include_recipe "chimpstation-base::homebrew"
-
- execute "brew install #{package} #{opts[:brew_args]}" do
- user WS_USER
- command "brew install #{package} #{opts[:brew_args]}"
- not_if "brew list | grep '^#{package}$'"
- end
- end
-
- def brew_installed?(package)
- include_recipe "chimpstation-base::homebrew"
-
- system("brew list #{package}")
- end
-
- def brew_remove(package)
- include_recipe "chimpstation-base::homebrew"
-
- brew_installed = `brew list | grep #{package}`
- unless brew_installed.empty?
- execute "brew remove #{package}" do
- user WS_USER
- command "brew remove #{package}"
- end
- end
- end
-
- def brew_update
- include_recipe "chimpstation-base::homebrew"
-
- execute "brew update" do
- user WS_USER
- command "brew update"
- end
- end
-end
View
1  away/chimpstation_away/recipes/ack.rb
@@ -1 +0,0 @@
-brew_install "ack"
View
1  away/chimpstation_away/recipes/activemq.rb
@@ -1 +0,0 @@
-brew_install("activemq")
View
0  ...kbooks/chimpstation_prefs/recipes/add_ops_user.rb → away/chimpstation_away/recipes/add_ops_user.rb
File renamed without changes
View
6 away/chimpstation_away/recipes/ccmenu.rb
@@ -1,6 +0,0 @@
-pivotal_workstation_package "CCMenu" do
- volumes_dir "CCMenu 1.3"
- source "http://surfnet.dl.sourceforge.net/project/ccmenu/CCMenu/1.3/ccmenu-1.3-b.dmg"
- checksum "9afef887022002b0f074eb7db25349da53aea5d5a64d8415b756c676db9ad1de"
- action :install
-end
View
3  away/chimpstation_away/recipes/ec2_api_tools.rb
@@ -1,3 +0,0 @@
-brew_install "ec2-api-tools"
-
-bash_profile_include("ec2_tools")
View
10 away/chimpstation_away/recipes/google_chrome_prevent_updates.rb
@@ -1,10 +0,0 @@
-directory "#{WS_HOME}/Library/Google" do
- owner WS_USER
- action :create
-end
-
-directory "#{WS_HOME}/Library/Google/GoogleSoftwareUpdate" do
- owner WS_USER
- mode "111"
- action :create
-end
View
3  away/chimpstation_away/recipes/imagemagick.rb
@@ -1,3 +0,0 @@
-include_recipe "chimpstation_base::homebrew"
-
-brew_install "imagemagick"
View
0  .../chimpstation_prefs/recipes/iterm_set_defaults.rb → away/chimpstation_away/recipes/iterm_set_defaults.rb
File renamed without changes
View
3  away/chimpstation_away/recipes/joe.rb
@@ -1,3 +0,0 @@
-include_recipe "chimpstation_base::homebrew"
-
-brew_install "joe"
View
20 away/chimpstation_away/recipes/memcached.rb
@@ -1,20 +0,0 @@
-include_recipe "chimpstation_base::homebrew"
-
-unless brew_installed? "memcached"
- brew_install "memcached"
-
- directory "/Users/#{WS_USER}/Library/LaunchAgents" do
- owner WS_USER
- action :create
- end
-
- execute "copy memcached plist to ~/Library/LaunchAgents" do
- command "cp `brew --prefix memcached`/com.danga.memcached.plist #{WS_HOME}/Library/LaunchAgents/"
- user WS_USER
- end
-
- execute "load the memcached plist into the mac daemon startup thing" do
- command "launchctl load -w #{WS_HOME}/Library/LaunchAgents/com.danga.memcached.plist"
- user WS_USER
- end
-end
View
0  ...okbooks/chimpstation_prefs/recipes/osx_updates.rb → away/chimpstation_away/recipes/osx_updates.rb
File renamed without changes
View
1  away/chimpstation_away/recipes/rabbitmq.rb
@@ -1 +0,0 @@
-brew_install "rabbitmq"
View
1  away/chimpstation_away/recipes/solr.rb
@@ -1 +0,0 @@
-brew_install "solr"
View
1  away/chimpstation_away/recipes/svn.rb
@@ -1 +0,0 @@
-brew_install "svn"
View
10 away/chimpstation_away/recipes/unix_essentials.rb
@@ -1,10 +0,0 @@
-include_recipe "chimpstation_base::homebrew"
-
-brew_install "watch"
-brew_install "ack"
-brew_install "ssh-copy-id"
-brew_install "pstree"
-brew_install "tmux"
-brew_install "tree"
-brew_install "wget"
-brew_install "proctools"
View
5 away/chimpstation_away/recipes/workspace_directory.rb
@@ -1,5 +0,0 @@
-directory "#{WS_HOME}/#{node["workspace_directory"]}" do
- owner WS_USER
- mode "0755"
- action :create
-end
View
12 away/chimpstation_away/templates/default/git_scripts_pairs.erb
@@ -1,12 +0,0 @@
-# This file is managed by chef! Override node.default["git_pairs_authors"] in attributes/git_pairs.rb to modify.
-
-pairs:
-<% node.git_pairs_authors.each do |half_pair| %>
- <%= "#{half_pair["initials"]}: #{half_pair["name"]}"%><%= half_pair["shortname"] ? "; #{half_pair["shortname"]}" : "" %>
-<% end %>
-
-email:
- prefix: pair
- domain: pivotallabs.com
-
-global: true
View
2  away/chimpstation_away/templates/default/launchd.conf.erb
@@ -2,4 +2,4 @@
setenv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
-#ensure there are newlines to end the file
+#ensure there are newlines to end the file
View
1  cookbooks/chimpstation_osxware
View
17 .../chimpstation_prefs/recipes/screen_sharing_app.rb → ...okbooks/chimpstation_pkg/recipes/screensharing.rb
@@ -1,3 +1,20 @@
+execute "Enabling Screen Sharing for All Users" do
+ command "/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers"
+end
+
+ruby_block "test to see if screen-sharing is enabled" do
+ block do
+ require 'socket'
+ vnc_port = 5900
+ begin
+ s = TCPSocket.open('localhost',vnc_port)
+ rescue => e
+ raise "Couldn't connect to screen-sharing: " << e
+ end
+ s.close
+ end
+end
+
unless File.exists?("/Applications/Screen Sharing.app")
ruby_block "Copy Screen Sharing to /Applications" do
View
30 ...ooks/chimpstation_prefs/recipes/active_corners.rb → ...books/chimpstation_prefs/recipes/desktop_prefs.rb
@@ -1,3 +1,33 @@
+execute "set dock to be on left" do
+ command "defaults write com.apple.dock orientation -string left"
+ user $ws_user
+end
+
+execute "set dock to autohide" do
+ command "defaults write com.apple.dock autohide -boolean true"
+ user $ws_user
+end
+
+execute "relaunch dock" do
+ command "killall Dock"
+end
+
+dock = service "com.apple.Dock.agent"
+
+defaults "com.apple.dock", "no-glass" do
+ value node[:apple][:dock][:no_glass]
+ notifies :restart, dock, :delayed
+end
+
+defaults "com.apple.dock", "orientation" do
+ value node[:apple][:dock][:orientation]
+ notifies :restart, dock, :delayed
+end
+
+defaults "com.apple.dock", "autohide" do
+ value node[:apple][:dock][:autohide]
+ notifies :restart, dock, :delayed
+end
active_corner_value_to_int = {
desktop: 4,
dashboard: 7,
View
4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/disable_front_row.rb
@@ -1,4 +0,0 @@
-execute "move front row out of the way" do
- command "mv /System/Library/CoreServices/Front\\ Row.app /System/Library/CoreServices/Front_Row_disabled.app"
- not_if { File.exists?("/System/Library/CoreServices/Front_Row_disabled.app") }
-end
View
16 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/dock_defaults.rb
@@ -1,16 +0,0 @@
-dock = service "com.apple.Dock.agent"
-
-defaults "com.apple.dock", "no-glass" do
- value node[:apple][:dock][:no_glass]
- notifies :restart, dock, :delayed
-end
-
-defaults "com.apple.dock", "orientation" do
- value node[:apple][:dock][:orientation]
- notifies :restart, dock, :delayed
-end
-
-defaults "com.apple.dock", "autohide" do
- value node[:apple][:dock][:autohide]
- notifies :restart, dock, :delayed
-end
View
13 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/dock_preferences.rb
@@ -1,13 +0,0 @@
-execute "set dock to be on left" do
- command "defaults write com.apple.dock orientation -string left"
- user $ws_user
-end
-
-execute "set dock to autohide" do
- command "defaults write com.apple.dock autohide -boolean true"
- user $ws_user
-end
-
-execute "relaunch dock" do
- command "killall Dock"
-end
View
5 ...station_prefs/recipes/finder_display_full_path.rb → ...kbooks/chimpstation_prefs/recipes/finder_prefs.rb
@@ -2,3 +2,8 @@
command "defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES"
user $ws_user
end
+
+execute "show hard drive on desktop" do
+ command "defaults write com.apple.finder ShowHardDrivesOnDesktop -bool YES"
+ user $ws_user
+end
View
0  ...on_prefs/recipes/defaults_fast_key_repeat_rate.rb → ...ooks/chimpstation_prefs/recipes/keyboard_prefs.rb
File renamed without changes
View
0  ...ation_prefs/recipes/set_multitouch_preferences.rb → ...ks/chimpstation_prefs/recipes/multitouch_prefs.rb
File renamed without changes
View
11 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/remove_garageband.rb
@@ -1,11 +0,0 @@
-# This is obviously a destructive recipe.
-
-run_unless_marker_file_exists("removed_garage_band") do
- execute "Deleting Garage Band Support Files" do
- command "rm -rf /Library/Application\ Support/GarageBand"
- end
-
- execute "Deleting Garage Band Application" do
- command "rm -rf /Applications/GarageBand.app"
- end
-end
View
0  away/chimpstation_away/recipes/rename_machine.rb → ...ooks/chimpstation_prefs/recipes/rename_machine.rb
File renamed without changes
View
4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/safari_preferences.rb
@@ -1,4 +0,0 @@
-execute "set safari to show status bar" do
- command "defaults write com.apple.safari ShowStatusBar -bool YES"
- user $ws_user
-end
View
5 ...oks/chimpstation_prefs/recipes/safari_defaults.rb → ...kbooks/chimpstation_prefs/recipes/safari_prefs.rb
@@ -1,3 +1,8 @@
+execute "set safari to show status bar" do
+ command "defaults write com.apple.safari ShowStatusBar -bool YES"
+ user $ws_user
+end
+
defaults "com.apple.safari", "AutoFillPasswords" do
value node[:apple][:safari][:auto_fill_passwords]
end
View
16 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/screen_sharing_on.rb
@@ -1,16 +0,0 @@
-execute "Enabling Screen Sharing for All Users" do
- command "/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers"
-end
-
-ruby_block "test to see if screen-sharing is enabled" do
- block do
- require 'socket'
- vnc_port = 5900
- begin
- s = TCPSocket.open('localhost',vnc_port)
- rescue => e
- raise "Couldn't connect to screen-sharing: " << e
- end
- s.close
- end
-end
View
0  ...tion_prefs/recipes/set_screensaver_preferences.rb → ...s/chimpstation_prefs/recipes/screensaver_prefs.rb
File renamed without changes
View
4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/set_finder_show_hd_on_desktop.rb
@@ -1,4 +0,0 @@
-execute "show hard drive on desktop" do
- command "defaults write com.apple.finder ShowHardDrivesOnDesktop -bool YES"
- user $ws_user
-end
View
3  vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/terminal_defaults.rb
@@ -1,3 +0,0 @@
-defaults "com.apple.Terminal", "Shell" do
- value node[:apple][:terminal][:shell]
-end
View
4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/terminal_focus.rb
@@ -1,4 +0,0 @@
-execute "turn on focus-follows-mouse for terminal" do
- command "defaults write com.apple.Terminal FocusFollowsMouse -string YES"
- user $ws_user
-end
View
4 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/terminal_preferences.rb
@@ -1,4 +0,0 @@
-execute "set terminal color scheme" do
- command "defaults write com.apple.Terminal 'Startup Window Settings' -string #{node['terminal']['color_scheme']}"
- user $ws_user
-end
View
20 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/terminal_prefs.rb
@@ -0,0 +1,20 @@
+execute "set terminal color scheme" do
+ command "defaults write com.apple.Terminal 'Startup Window Settings' -string #{node['terminal']['color_scheme']}"
+ user $ws_user
+end
+
+defaults "com.apple.Terminal", "Shell" do
+ value node[:apple][:terminal][:shell]
+end
+
+
+
+defaults "com.apple.Terminal", "Shell" do
+ value node[:apple][:terminal][:shell]
+end
+
+
+execute "turn on focus-follows-mouse for terminal" do
+ command "defaults write com.apple.Terminal FocusFollowsMouse -string YES"
+ user $ws_user
+end
View
22 vendor/chimpstation-pantry/cookbooks/chimpstation_prefs/recipes/timemachine_preferences.rb
@@ -1,22 +0,0 @@
-execute "TimeMachine should NOT ask to use every new disk" do
- command "defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool YES"
- user $ws_user
-end
-
-ruby_block "TimeMachine should NOT appear in the status bar" do
- block do
- new_menuExtras=""
- `sudo -u #{$ws_user} defaults read com.apple.systemuiserver menuExtras`.split("\n").each do |line|
- if line !~ /TimeMachine.menu/
- new_menuExtras = new_menuExtras + line + "\n"
- end
- end
- `sudo -u #{$ws_user} defaults write com.apple.systemuiserver menuExtras \'#{new_menuExtras}\'`
- `killall -HUP SystemUIServer`
- end
-end
-
-execute "make sure it doesn't exist" do
- command "! defaults read com.apple.systemuiserver menuExtras | grep TimeMachine.menu"
- user $ws_user
-end
View
0  away/chimpstation_away/recipes/default_editor.rb → ...ooks/textmate/recipes/textmate_handles_unknown.rb
File renamed without changes
View
2  vendor/chimpstation-pantry/roles/osx_apps.rb
@@ -13,6 +13,8 @@
chimpstation_pkg::virtualbox
chimpstation_pkg::gitx
chimpstation_pkg::keycastr
+
+ chimpstation_pkg::screensharing
])
# chimpstation_pkg::java_osx
Please sign in to comment.
Something went wrong with that request. Please try again.