Skip to content

Commit

Permalink
Getting ready to give it a try
Browse files Browse the repository at this point in the history
  • Loading branch information
rberger committed Sep 5, 2012
1 parent 13c5b1f commit 289ba2c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 33 deletions.
7 changes: 4 additions & 3 deletions data_bags/apps/workstation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"id": "workstation",
"dmgs": {
// Applications installed using the dmg_package LWRP.
/*
"Dropbox": {
"volumes_dir": "Dropbox Installer",
"url": "http://cdn.dropbox.com/Dropbox%201.1.35.dmg",
Expand All @@ -22,6 +23,7 @@
"url": "http://emacsforosx.com/emacs-builds/Emacs-24.1-universal-10.6.8.dmg",
"checksum": "59ca3ee94a155b36c5ef60dfad6aa12d54867ab3d3edd31f1ee5e768b2ba45f7"
}
*/
},
"plists": [
// Array of plist file names that get dropped off in
Expand Down Expand Up @@ -53,8 +55,7 @@
"dirs": [
// Array of directories that are created in $HOME. Create parent
// directories of repositories or files for the user here, e.g.:
"bin"
"Development",
"Development/opscode"
"work",
"work/runa"
]
}
2 changes: 1 addition & 1 deletion data_bags/users/rberger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"sbuild"
],
"comment": "Robert J. Berger",
"ssh_keys": "SSH public key(s)",
"ssh_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvbnZPXxKg9FLdrONsIt+0dB6vm4ykOJCZ52/knGQc6tEpb0BVDkanyVestBARsSp7OGPNkzCwfSNOTwkgw/u8a8Wsq/2OwHiJGBD74gH1f04uYqc+UReIJElsXHoIHC0+UzB+tMKJNYOfbYWGL3rwgDy2gn+n6VYXA1DFQk63kZge6ylCNCbJPrpW6iop0s+YKDXChwTMwCe7wQWzFTQ/PwzTW8+5xxHOpPn+lelSyfq5v6oG4sHZk1A3LaoGosxRG8pc686XefPS1gjGoYjF7v0oGLwJzKSubGX9vyBTCDttAn68WEA1yqZKqAL+oF9lUvdgDF8lDhiLsXrfAL+FQ== rberger@runa.com",
"id": "rberger",
"uid": 1000,
"shell": "/bin/bash",
Expand Down
8 changes: 4 additions & 4 deletions roles/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
# precedence may be confusing in some setups.
override_attributes(
# If you're using the sudo cookbook, it can use these attributes for
# USERNAME
# rberger
"authorization" => {
"sudo" => {
"groups" => ["admin", "wheel"],
"users" => ["USERNAME"],
"users" => ["rberger"],
"passwordless" => true
}
},
Expand All @@ -33,13 +33,13 @@
# and the keys of the gems hash.
"user_installs" => [
{
"user" => "USERNAME",
"user" => "rberger",
"rubies" => ["1.9.3-p194"],
"global" => "1.9.3-p194",
"gems" => {
"1.9.3-p194" => [
# RubyGems
{"name" => "bundler", "version" => "1.1.1"},
{"name" => "bundler", "version" => "1.2.0"},
{"name" => "gem-man"},
{"name" => "gemcutter"},
{"name" => "jeweler"},
Expand Down
2 changes: 1 addition & 1 deletion roles/mac_os_x.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
description "Role applied to all Mac OS X systems."
run_list(
"role[base]",
"recipe[build-essential]",
# "recipe[build-essential]",
"recipe[homebrew]"
)
48 changes: 24 additions & 24 deletions roles/workstation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description "Mac OS X worksations"

run_list(
"recipe[build-essential]",
# "recipe[build-essential]",
"recipe[git]",
"recipe[ruby_build]",
"recipe[rbenv::user]",
Expand All @@ -11,25 +11,25 @@
"recipe[mac_os_x::settings]",
"recipe[mac_os_x::firewall]",
# Additional applications that have their own cookbooks.
"recipe[iterm2]",
# "recipe[iterm2]",
"recipe[virtualbox]",
"recipe[ghmac]",
"recipe[1password]",
# "recipe[1password]",
"recipe[xquartz]"
)

default_attributes(
"iterm2" => {
"version" => "1_0_0_20120203",
"checksum" => "30febc426de2db2ea14f46723f5365ae3ad6ab23c877a1b016cd42e29199fe02",
"tmux_enabled" => true,
"tmux_compile" => false,
"tmux_version" => "20120203",
"tmux_compiled_checksum" => "679719f2b6b35b95875d656f44d9d6f9ca15515f24eea051f0b96e20e2d89509"
},
# "iterm2" => {
# "version" => "1_0_0_20120203",
# "checksum" => "30febc426de2db2ea14f46723f5365ae3ad6ab23c877a1b016cd42e29199fe02",
# "tmux_enabled" => true,
# "tmux_compile" => false,
# "tmux_version" => "20120203",
# "tmux_compiled_checksum" => "679719f2b6b35b95875d656f44d9d6f9ca15515f24eea051f0b96e20e2d89509"
# },
"virtualbox" => {
"urlbase" => "http://download.virtualbox.org/virtualbox/4.1.18",
"url" => "http://download.virtualbox.org/virtualbox/4.1.18/VirtualBox-4.1.18-78361-OSX.dmg"
"urlbase" => "http://download.virtualbox.org/virtualbox/4.1.20",
"url" => "http://download.virtualbox.org/virtualbox/4.1.20/VirtualBox-4.1.20-80170-OSX.dmg"
},
# These attributes are used by the mac_os_x::settings recipe to
# build dynamic data driven settings. See the mac_os_x cookbook's
Expand Down Expand Up @@ -66,7 +66,7 @@
},
"finder" => {
"domain" => "com.apple.finder",
"EmptyTrashSecurely" => true,
"EmptyTrashSecurely" => false,
"FXArrangeGroupViewBy" => "Name",
"FXPreferredViewStyle" => "Nlsv", # list view
"NewWindowTarget" => "PfHm", # home directory
Expand All @@ -78,26 +78,26 @@
"AppleShowScrollBars" => "Always",
"InitialKeyRepeat" => 15,
"KeyRepeat" => 2,
"NSAutomaticSpellingCorrectionEnabled" => false,
"NSUserReplacementItemsEnabled" => false,
"WebAutomaticSpellingCorrectionEnabled" => false,
"WebAutomaticTextReplacementEnabled" => 0,
"NSAutomaticSpellingCorrectionEnabled" => true,
"NSUserReplacementItemsEnabled" => true,
"WebAutomaticSpellingCorrectionEnabled" => true,
"WebAutomaticTextReplacementEnabled" => 1,
"com.apple.springing.delay" => "0.5",
"com.apple.springing.enabled" => 1,
"com.apple.trackpad.scaling" => 3
},
"safari" => {
"domain" => "com.apple.Safari",
"AutoFillFromAddressBook" => false,
"AutoFillMiscellaneousForms" => false,
"AutoFillPasswords" => false,
"AutoFillFromAddressBook" => true,
"AutoFillMiscellaneousForms" => true,
"AutoFillPasswords" => true,
"AutoOpenSafeDownloads" => false,
"HistoryAgeInDaysLimit" => 365000,
"IncludeDevelopMenu" => true,
"NewTabBehavior" => 1,
"NewWindowBehavior" => 1,
"SafariGeolocationPermissionPolicy" => false,
"SendDoNotTrackHTTPHeader" => true,
"SafariGeolocationPermissionPolicy" => true,
"SendDoNotTrackHTTPHeader" => false,
"WebKitDefaultFixedFontSize" => 12
},
"screensaver" => {
Expand All @@ -107,7 +107,7 @@
},
"networkbrowser" => {
"domain" => "com.apple.NetworkBrowser",
"DisableAirDrop" => true
"DisableAirDrop" => false
}
}
}
Expand Down

0 comments on commit 289ba2c

Please sign in to comment.