test_pivotal_workstation 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.markdown +31 -0
- data/Rakefile +1 -0
- data/lib/test_pivotal_workstation.rb +5 -0
- data/lib/test_pivotal_workstation/attributes/default.rb +20 -0
- data/lib/test_pivotal_workstation/attributes/git_pairs.rb +5 -0
- data/lib/test_pivotal_workstation/attributes/git_projects.rb +3 -0
- data/lib/test_pivotal_workstation/attributes/github_for_mac.rb +4 -0
- data/lib/test_pivotal_workstation/attributes/gitx.rb +1 -0
- data/lib/test_pivotal_workstation/attributes/mouse_locator.rb +5 -0
- data/lib/test_pivotal_workstation/attributes/nginx.rb +11 -0
- data/lib/test_pivotal_workstation/attributes/pg_admin.rb +4 -0
- data/lib/test_pivotal_workstation/attributes/rvm.rb +8 -0
- data/lib/test_pivotal_workstation/attributes/sizeup.rb +1 -0
- data/lib/test_pivotal_workstation/attributes/versions.rb +6 -0
- data/lib/test_pivotal_workstation/attributes/vim.rb +2 -0
- data/lib/test_pivotal_workstation/attributes/workspace_directory.rb +1 -0
- data/lib/test_pivotal_workstation/libraries/applescript.rb +5 -0
- data/lib/test_pivotal_workstation/libraries/bash_profile_include.rb +11 -0
- data/lib/test_pivotal_workstation/libraries/brew.rb +38 -0
- data/lib/test_pivotal_workstation/libraries/directories.rb +25 -0
- data/lib/test_pivotal_workstation/libraries/marker.rb +42 -0
- data/lib/test_pivotal_workstation/libraries/osx_app.rb +97 -0
- data/lib/test_pivotal_workstation/libraries/rvm_ruby_install.rb +36 -0
- data/lib/test_pivotal_workstation/libraries/user.rb +4 -0
- data/lib/test_pivotal_workstation/libraries/version.rb +9 -0
- data/lib/test_pivotal_workstation/providers/package.rb +95 -0
- data/lib/test_pivotal_workstation/recipes/ack.rb +1 -0
- data/lib/test_pivotal_workstation/recipes/active_corners.rb +24 -0
- data/lib/test_pivotal_workstation/recipes/activemq.rb +1 -0
- data/lib/test_pivotal_workstation/recipes/bash_path_order.rb +13 -0
- data/lib/test_pivotal_workstation/recipes/bash_profile-arch_flags.rb +1 -0
- data/lib/test_pivotal_workstation/recipes/bash_profile-better_history.rb +1 -0
- data/lib/test_pivotal_workstation/recipes/bash_profile-no_sudo_gem_install.rb +1 -0
- data/lib/test_pivotal_workstation/recipes/bash_profile-ps1.rb +1 -0
- data/lib/test_pivotal_workstation/recipes/bash_profile-ree_settings.rb +1 -0
- data/lib/test_pivotal_workstation/recipes/bash_profile.rb +11 -0
- data/lib/test_pivotal_workstation/recipes/ccmenu.rb +6 -0
- data/lib/test_pivotal_workstation/recipes/chrome.rb +6 -0
- data/lib/test_pivotal_workstation/recipes/default_editor.rb +55 -0
- data/lib/test_pivotal_workstation/recipes/defaults_fast_key_repeat_rate.rb +10 -0
- data/lib/test_pivotal_workstation/recipes/disable_front_row.rb +4 -0
- data/lib/test_pivotal_workstation/recipes/dock_preferences.rb +13 -0
- data/lib/test_pivotal_workstation/recipes/dropbox.rb +6 -0
- data/lib/test_pivotal_workstation/recipes/ec2_api_tools.rb +3 -0
- data/lib/test_pivotal_workstation/recipes/finder_display_full_path.rb +4 -0
- data/lib/test_pivotal_workstation/recipes/firefox.rb +5 -0
- data/lib/test_pivotal_workstation/recipes/gem_no_rdoc_no_ri.rb +14 -0
- data/lib/test_pivotal_workstation/recipes/git.rb +8 -0
- data/lib/test_pivotal_workstation/recipes/git_config_global_defaults.rb +72 -0
- data/lib/test_pivotal_workstation/recipes/git_projects.rb +29 -0
- data/lib/test_pivotal_workstation/recipes/git_scripts.rb +19 -0
- data/lib/test_pivotal_workstation/recipes/github_for_mac.rb +25 -0
- data/lib/test_pivotal_workstation/recipes/github_ssh_keys.rb +16 -0
- data/lib/test_pivotal_workstation/recipes/gitx.rb +56 -0
- data/lib/test_pivotal_workstation/recipes/global_environment_variables.rb +3 -0
- data/lib/test_pivotal_workstation/recipes/google_chrome_prevent_updates.rb +10 -0
- data/lib/test_pivotal_workstation/recipes/homebrew.rb +27 -0
- data/lib/test_pivotal_workstation/recipes/imagemagick.rb +3 -0
- data/lib/test_pivotal_workstation/recipes/inputrc.rb +6 -0
- data/lib/test_pivotal_workstation/recipes/iterm_set_defaults.rb +167 -0
- data/lib/test_pivotal_workstation/recipes/java.rb +8 -0
- data/lib/test_pivotal_workstation/recipes/joe.rb +3 -0
- data/lib/test_pivotal_workstation/recipes/libreoffice.rb +6 -0
- data/lib/test_pivotal_workstation/recipes/lion_basedev.rb +38 -0
- data/lib/test_pivotal_workstation/recipes/locate_on.rb +8 -0
- data/lib/test_pivotal_workstation/recipes/memcached.rb +20 -0
- data/lib/test_pivotal_workstation/recipes/mongodb.rb +20 -0
- data/lib/test_pivotal_workstation/recipes/mouse_locator.rb +54 -0
- data/lib/test_pivotal_workstation/recipes/mysql.rb +44 -0
- data/lib/test_pivotal_workstation/recipes/nginx.rb +46 -0
- data/lib/test_pivotal_workstation/recipes/osx_updates.rb +3 -0
- data/lib/test_pivotal_workstation/recipes/pg_admin.rb +4 -0
- data/lib/test_pivotal_workstation/recipes/pivotal_logos.rb +101 -0
- data/lib/test_pivotal_workstation/recipes/postgres.rb +89 -0
- data/lib/test_pivotal_workstation/recipes/remove_garageband.rb +11 -0
- data/lib/test_pivotal_workstation/recipes/rubymine.rb +8 -0
- data/lib/test_pivotal_workstation/recipes/rubymine_preferences_pivotal.rb +36 -0
- data/lib/test_pivotal_workstation/recipes/rvm.rb +53 -0
- data/lib/test_pivotal_workstation/recipes/safari_preferences.rb +4 -0
- data/lib/test_pivotal_workstation/recipes/screen_sharing_app.rb +12 -0
- data/lib/test_pivotal_workstation/recipes/screen_sharing_on.rb +16 -0
- data/lib/test_pivotal_workstation/recipes/selenium_webdriver.rb +24 -0
- data/lib/test_pivotal_workstation/recipes/set_finder_show_hd_on_desktop.rb +4 -0
- data/lib/test_pivotal_workstation/recipes/set_multitouch_preferences.rb +9 -0
- data/lib/test_pivotal_workstation/recipes/set_screensaver_preferences.rb +21 -0
- data/lib/test_pivotal_workstation/recipes/sizeup.rb +19 -0
- data/lib/test_pivotal_workstation/recipes/skype.rb +5 -0
- data/lib/test_pivotal_workstation/recipes/ssh_copy_id.rb +3 -0
- data/lib/test_pivotal_workstation/recipes/sshd_on.rb +16 -0
- data/lib/test_pivotal_workstation/recipes/ssl_certificate.rb +50 -0
- data/lib/test_pivotal_workstation/recipes/svn.rb +1 -0
- data/lib/test_pivotal_workstation/recipes/terminal_focus.rb +4 -0
- data/lib/test_pivotal_workstation/recipes/terminal_preferences.rb +9 -0
- data/lib/test_pivotal_workstation/recipes/textmate.rb +29 -0
- data/lib/test_pivotal_workstation/recipes/textmate_plugins.rb +31 -0
- data/lib/test_pivotal_workstation/recipes/textmate_preferences.rb +83 -0
- data/lib/test_pivotal_workstation/recipes/timemachine_preferences.rb +22 -0
- data/lib/test_pivotal_workstation/recipes/user_owns_usr_local.rb +8 -0
- data/lib/test_pivotal_workstation/recipes/vim.rb +66 -0
- data/lib/test_pivotal_workstation/recipes/virtualbox.rb +7 -0
- data/lib/test_pivotal_workstation/recipes/workspace_directory.rb +5 -0
- data/lib/test_pivotal_workstation/resources/package.rb +34 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-arch_flags.sh.erb +3 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-better_history.sh.erb +4 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-ec2_tools.sh.erb +5 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-git_vim.sh.erb +1 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-no_sudo_gem_install.sh.erb +2 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-ps1.sh.erb +8 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-ree_settings.sh.erb +6 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-rvm.sh.erb +1 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile-vi_is_minimal_vim.sh.erb +1 -0
- data/lib/test_pivotal_workstation/templates/default/bash_profile.erb +6 -0
- data/lib/test_pivotal_workstation/templates/default/git_scripts_pairs.erb +12 -0
- data/lib/test_pivotal_workstation/templates/default/inputrc.erb +10 -0
- data/lib/test_pivotal_workstation/templates/default/launchd.conf.erb +6 -0
- data/lib/test_pivotal_workstation/templates/default/nginx.conf.erb +79 -0
- data/lib/test_pivotal_workstation/templates/default/org.nginx.nginx.plist.erb +22 -0
- data/lib/test_pivotal_workstation/templates/default/pivotal_logos-dsimport.erb +2 -0
- data/lib/test_pivotal_workstation/version.rb +3 -0
- data/test_pivotal_workstation.gemspec +24 -0
- metadata +168 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
unless File.exists?(node["github_for_mac_app_path"])
|
2
|
+
|
3
|
+
remote_file "/tmp/github_for_mac.zip" do
|
4
|
+
source node["github_for_mac_download_uri"]
|
5
|
+
owner WS_USER
|
6
|
+
end
|
7
|
+
|
8
|
+
execute "unzip github_for_mac" do
|
9
|
+
command "unzip /tmp/github_for_mac.zip -d /tmp/"
|
10
|
+
user WS_USER
|
11
|
+
end
|
12
|
+
|
13
|
+
execute "copy github_for_mac to /Applications" do
|
14
|
+
command "mv /tmp/GitHub.app #{Regexp.escape(node["github_for_mac_app_path"])}"
|
15
|
+
user WS_USER
|
16
|
+
group "admin"
|
17
|
+
end
|
18
|
+
|
19
|
+
ruby_block "test to see if GitHub.app was installed" do
|
20
|
+
block do
|
21
|
+
raise "GitHub.app was not installed" unless File.exists?(node["github_for_mac_app_path"])
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
execute "create SSH key pair for Github" do
|
2
|
+
command "ssh-keygen -N '' -f #{WS_HOME}/.ssh/id_github_#{node["github_project"]}"
|
3
|
+
user WS_USER
|
4
|
+
not_if "test -e #{WS_HOME}/.ssh/id_github_#{node["github_project"]}"
|
5
|
+
end
|
6
|
+
|
7
|
+
execute "symlink Github key for git-project" do
|
8
|
+
command "ln -nfs #{WS_HOME}/.ssh/id_github_{#{node["github_project"]},current}"
|
9
|
+
user WS_USER
|
10
|
+
end
|
11
|
+
|
12
|
+
execute "add Github configuration to .ssh/config" do
|
13
|
+
config = "\n\nHost github.com\n User git\n IdentityFile #{WS_HOME}/.ssh/id_github_current"
|
14
|
+
command "echo '#{config}' >> #{WS_HOME}/.ssh/config"
|
15
|
+
not_if "grep 'id_github_current' #{WS_HOME}/.ssh/config"
|
16
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
include_recipe "pivotal_workstation::user_owns_usr_local"
|
2
|
+
|
3
|
+
GITX_PATH = "/Applications/GitX.app"
|
4
|
+
GITX_LINK = "/usr/local/bin/gitx"
|
5
|
+
GITX_LINK_SRC = "/Applications/GitX.app/Contents/Resources/gitx"
|
6
|
+
|
7
|
+
unless File.exists?(GITX_PATH)
|
8
|
+
|
9
|
+
remote_file "/tmp/gitx.zip" do
|
10
|
+
source node["gitx_download_location"]
|
11
|
+
owner WS_USER
|
12
|
+
end
|
13
|
+
|
14
|
+
directory "/tmp/GitX.app" do
|
15
|
+
action :delete
|
16
|
+
recursive true
|
17
|
+
end
|
18
|
+
|
19
|
+
execute "unzip gitx" do
|
20
|
+
command "unzip /tmp/gitx.zip -d /tmp/"
|
21
|
+
user WS_USER
|
22
|
+
end
|
23
|
+
|
24
|
+
execute "copy gitx to /Applications" do
|
25
|
+
command "rsync -a /tmp/GitX.app /Applications"
|
26
|
+
user WS_USER
|
27
|
+
group "admin"
|
28
|
+
end
|
29
|
+
|
30
|
+
ruby_block "test to see if GitX.app was installed" do
|
31
|
+
block do
|
32
|
+
raise "GitX.app was not installed" unless File.exists?(GITX_PATH)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
unless File.exists?(GITX_LINK)
|
39
|
+
ruby_block "Check for existence of #{GITX_LINK_SRC}." do
|
40
|
+
block do
|
41
|
+
raise "#{GITX_LINK_SRC} doesn't exist! Can't create symbolic link!" unless File.exists?(GITX_LINK_SRC)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# ln -s /Applications/GitX.app/Contents/Resources/gitx /usr/local/bin/gitx
|
46
|
+
link GITX_LINK do
|
47
|
+
to GITX_LINK_SRC
|
48
|
+
end
|
49
|
+
|
50
|
+
ruby_block "test to see if gitx link was installed" do
|
51
|
+
block do
|
52
|
+
raise "gitx link was not installed" unless File.exists?(GITX_LINK)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
include_recipe "pivotal_workstation::user_owns_usr_local"
|
2
|
+
|
3
|
+
homebrew_git_revision_hash = version_string_for("homebrew")
|
4
|
+
|
5
|
+
if (`which brew`.empty?)
|
6
|
+
git "/tmp/homebrew" do
|
7
|
+
repository "https://github.com/mxcl/homebrew.git"
|
8
|
+
revision homebrew_git_revision_hash
|
9
|
+
destination "/tmp/homebrew"
|
10
|
+
action :sync
|
11
|
+
user WS_USER
|
12
|
+
end
|
13
|
+
|
14
|
+
execute "Copying homebrew's .git to /usr/local" do
|
15
|
+
command "rsync -axSH /tmp/homebrew/ /usr/local/"
|
16
|
+
user WS_USER
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
ruby_block "Check that homebrew is running & working" do
|
21
|
+
block do
|
22
|
+
`brew --version`
|
23
|
+
if $? != 0
|
24
|
+
raise "Couldn't find brew"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,167 @@
|
|
1
|
+
execute "set iterm default terminal settings" do
|
2
|
+
command %$defaults write ~/Library/Preferences/net.sourceforge.iTerm Terminals -dict-add Default '{
|
3
|
+
"Auto Close" = 1;
|
4
|
+
Blink = 0;
|
5
|
+
"Default Profile" = Yes;
|
6
|
+
"Double Width" = 1;
|
7
|
+
Encoding = 4;
|
8
|
+
"Idle Char" = 0;
|
9
|
+
Scrollback = 60000;
|
10
|
+
"Send Idle Char" = 0;
|
11
|
+
"Silence Bell" = 1;
|
12
|
+
"Term Type" = xterm;
|
13
|
+
}'
|
14
|
+
$
|
15
|
+
user WS_USER
|
16
|
+
end
|
17
|
+
|
18
|
+
execute "use the darm background" do
|
19
|
+
command %$defaults write ~/Library/Preferences/net.sourceforge.iTerm Bookmarks -dict-add Entries ' (
|
20
|
+
{
|
21
|
+
Data = {
|
22
|
+
Command = "login -fp #{WS_USER}";
|
23
|
+
"Default Bookmark" = Yes;
|
24
|
+
Description = "login -fp #{WS_USER}";
|
25
|
+
"Display Profile" = "Dark Background";
|
26
|
+
"Keyboard Profile" = Global;
|
27
|
+
Name = Default;
|
28
|
+
Shortcut = "";
|
29
|
+
"Terminal Profile" = Default;
|
30
|
+
"Working Directory" = "/Users/#{WS_USER}";
|
31
|
+
};
|
32
|
+
Entries = (
|
33
|
+
);
|
34
|
+
}
|
35
|
+
)'$
|
36
|
+
user WS_USER
|
37
|
+
end
|
38
|
+
|
39
|
+
execute "set the colors" do
|
40
|
+
command %$defaults write ~/Library/Preferences/net.sourceforge.iTerm Displays -dict-add "Dark Background" '{
|
41
|
+
"Ansi 0 Color" = {
|
42
|
+
"Blue Component" = 0;
|
43
|
+
"Green Component" = 0;
|
44
|
+
"Red Component" = 0;
|
45
|
+
};
|
46
|
+
"Ansi 1 Color" = {
|
47
|
+
"Blue Component" = 0;
|
48
|
+
"Green Component" = 0;
|
49
|
+
"Red Component" = "0.7333333492279053";
|
50
|
+
};
|
51
|
+
"Ansi 10 Color" = {
|
52
|
+
"Blue Component" = "0.3333333432674408";
|
53
|
+
"Green Component" = 1;
|
54
|
+
"Red Component" = "0.3333333432674408";
|
55
|
+
};
|
56
|
+
"Ansi 11 Color" = {
|
57
|
+
"Blue Component" = "0.3333333432674408";
|
58
|
+
"Green Component" = 1;
|
59
|
+
"Red Component" = 1;
|
60
|
+
};
|
61
|
+
"Ansi 12 Color" = {
|
62
|
+
"Blue Component" = 1;
|
63
|
+
"Green Component" = "0.3333333432674408";
|
64
|
+
"Red Component" = "0.3333333432674408";
|
65
|
+
};
|
66
|
+
"Ansi 13 Color" = {
|
67
|
+
"Blue Component" = 1;
|
68
|
+
"Green Component" = "0.3333333432674408";
|
69
|
+
"Red Component" = 1;
|
70
|
+
};
|
71
|
+
"Ansi 14 Color" = {
|
72
|
+
"Blue Component" = 1;
|
73
|
+
"Green Component" = 1;
|
74
|
+
"Red Component" = "0.3333333432674408";
|
75
|
+
};
|
76
|
+
"Ansi 15 Color" = {
|
77
|
+
"Blue Component" = 1;
|
78
|
+
"Green Component" = 1;
|
79
|
+
"Red Component" = 1;
|
80
|
+
};
|
81
|
+
"Ansi 2 Color" = {
|
82
|
+
"Blue Component" = 0;
|
83
|
+
"Green Component" = "0.7333333492279053";
|
84
|
+
"Red Component" = 0;
|
85
|
+
};
|
86
|
+
"Ansi 3 Color" = {
|
87
|
+
"Blue Component" = 0;
|
88
|
+
"Green Component" = "0.7333333492279053";
|
89
|
+
"Red Component" = "0.7333333492279053";
|
90
|
+
};
|
91
|
+
"Ansi 4 Color" = {
|
92
|
+
"Blue Component" = "0.7333333492279053";
|
93
|
+
"Green Component" = 0;
|
94
|
+
"Red Component" = 0;
|
95
|
+
};
|
96
|
+
"Ansi 5 Color" = {
|
97
|
+
"Blue Component" = "0.7333333492279053";
|
98
|
+
"Green Component" = 0;
|
99
|
+
"Red Component" = "0.7333333492279053";
|
100
|
+
};
|
101
|
+
"Ansi 6 Color" = {
|
102
|
+
"Blue Component" = "0.7333333492279053";
|
103
|
+
"Green Component" = "0.7333333492279053";
|
104
|
+
"Red Component" = 0;
|
105
|
+
};
|
106
|
+
"Ansi 7 Color" = {
|
107
|
+
"Blue Component" = "0.7333333492279053";
|
108
|
+
"Green Component" = "0.7333333492279053";
|
109
|
+
"Red Component" = "0.7333333492279053";
|
110
|
+
};
|
111
|
+
"Ansi 8 Color" = {
|
112
|
+
"Blue Component" = "0.3333333432674408";
|
113
|
+
"Green Component" = "0.3333333432674408";
|
114
|
+
"Red Component" = "0.3333333432674408";
|
115
|
+
};
|
116
|
+
"Ansi 9 Color" = {
|
117
|
+
"Blue Component" = "0.3333333432674408";
|
118
|
+
"Green Component" = "0.3333333432674408";
|
119
|
+
"Red Component" = 1;
|
120
|
+
};
|
121
|
+
"Anti Alias" = 1;
|
122
|
+
"Background Color" = {
|
123
|
+
"Blue Component" = 0;
|
124
|
+
"Green Component" = 0;
|
125
|
+
"Red Component" = 0;
|
126
|
+
};
|
127
|
+
"Bold Color" = {
|
128
|
+
"Blue Component" = "0.4901960784313725";
|
129
|
+
"Green Component" = "0.4901960784313725";
|
130
|
+
"Red Component" = 1;
|
131
|
+
};
|
132
|
+
Columns = 80;
|
133
|
+
"Cursor Color" = {
|
134
|
+
"Blue Component" = "0.7333333492279053";
|
135
|
+
"Green Component" = "0.7333333492279053";
|
136
|
+
"Red Component" = "0.7333333492279053";
|
137
|
+
};
|
138
|
+
"Cursor Text Color" = {
|
139
|
+
"Blue Component" = 1;
|
140
|
+
"Green Component" = 1;
|
141
|
+
"Red Component" = 1;
|
142
|
+
};
|
143
|
+
"Disable Bold" = 0;
|
144
|
+
Font = "Monaco 12";
|
145
|
+
"Foreground Color" = {
|
146
|
+
"Blue Component" = "0.7333333492279053";
|
147
|
+
"Green Component" = "0.7333333492279053";
|
148
|
+
"Red Component" = "0.7333333492279053";
|
149
|
+
};
|
150
|
+
"Horizontal Character Spacing" = 1;
|
151
|
+
NAFont = "Monaco 12";
|
152
|
+
Rows = 24;
|
153
|
+
"Selected Text Color" = {
|
154
|
+
"Blue Component" = 0;
|
155
|
+
"Green Component" = 0;
|
156
|
+
"Red Component" = 0;
|
157
|
+
};
|
158
|
+
"Selection Color" = {
|
159
|
+
"Blue Component" = 1;
|
160
|
+
"Green Component" = "0.8353000283241272";
|
161
|
+
"Red Component" = "0.7098000049591064";
|
162
|
+
};
|
163
|
+
Transparency = 0;
|
164
|
+
"Vertical Character Spacing" = 1;
|
165
|
+
}'$
|
166
|
+
user WS_USER
|
167
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
pivotal_workstation_package "JavaForMacOSX10.7" do
|
2
|
+
source "http://support.apple.com/downloads/DL1421/en_US/JavaForMacOSX10.7.dmg"
|
3
|
+
volumes_dir "Java for Mac OS X 10.7"
|
4
|
+
action :install
|
5
|
+
type "mpkg"
|
6
|
+
package_id "com.apple.pkg.JavaForMacOSX107"
|
7
|
+
checksum "4c32d32cfeaaf4aab539a1385c4f55a97cf09c7d396f8b43257161616bba7070"
|
8
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
pivotal_workstation_package "LibreOffice" do
|
2
|
+
volumes_dir "LibreOffice 3.3"
|
3
|
+
source "http://download.documentfoundation.org/libreoffice/stable/3.3.4/mac/x86/LibO_3.3.4_MacOS_x86_install_en-US.dmg"
|
4
|
+
checksum "6a6abd0287606fcfedb0ef9bcdf976516a79a09ae81c1734cc82e9ac05b0d7d5"
|
5
|
+
action :install
|
6
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Base recipe for Lion
|
2
|
+
include_recipe "pivotal_workstation::workspace_directory"
|
3
|
+
include_recipe "pivotal_workstation::osx_updates"
|
4
|
+
include_recipe "pivotal_workstation::java"
|
5
|
+
include_recipe "pivotal_workstation::rvm"
|
6
|
+
include_recipe "pivotal_workstation::git_config_global_defaults"
|
7
|
+
include_recipe "pivotal_workstation::git_scripts"
|
8
|
+
include_recipe "pivotal_workstation::chrome"
|
9
|
+
include_recipe "pivotal_workstation::homebrew"
|
10
|
+
include_recipe "pivotal_workstation::gitx"
|
11
|
+
include_recipe "pivotal_workstation::sshd_on"
|
12
|
+
include_recipe "pivotal_workstation::screen_sharing_on"
|
13
|
+
include_recipe "pivotal_workstation::screen_sharing_app"
|
14
|
+
include_recipe "pivotal_workstation::postgres"
|
15
|
+
include_recipe "pivotal_workstation::gem_no_rdoc_no_ri"
|
16
|
+
include_recipe "pivotal_workstation::rubymine"
|
17
|
+
include_recipe "pivotal_workstation::rubymine_preferences_pivotal"
|
18
|
+
include_recipe "pivotal_workstation::skype"
|
19
|
+
include_recipe "pivotal_workstation::sizeup"
|
20
|
+
include_recipe "pivotal_workstation::imagemagick"
|
21
|
+
include_recipe "pivotal_workstation::set_screensaver_preferences"
|
22
|
+
include_recipe "pivotal_workstation::firefox"
|
23
|
+
include_recipe "pivotal_workstation::textmate"
|
24
|
+
include_recipe "pivotal_workstation::textmate_preferences"
|
25
|
+
include_recipe "pivotal_workstation::libreoffice"
|
26
|
+
include_recipe "pivotal_workstation::bash_profile-better_history"
|
27
|
+
include_recipe "pivotal_workstation::bash_profile-no_sudo_gem_install"
|
28
|
+
include_recipe "pivotal_workstation::bash_profile-ps1"
|
29
|
+
include_recipe "pivotal_workstation::inputrc"
|
30
|
+
include_recipe "pivotal_workstation::mysql"
|
31
|
+
include_recipe "pivotal_workstation::locate_on"
|
32
|
+
include_recipe "pivotal_workstation::timemachine_preferences"
|
33
|
+
include_recipe "pivotal_workstation::dropbox"
|
34
|
+
include_recipe "pivotal_workstation::vim"
|
35
|
+
include_recipe "pivotal_workstation::pivotal_logos"
|
36
|
+
include_recipe "pivotal_workstation::mouse_locator"
|
37
|
+
include_recipe "pivotal_workstation::ccmenu"
|
38
|
+
include_recipe "pivotal_workstation::github_for_mac"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
include_recipe "pivotal_workstation::homebrew"
|
2
|
+
|
3
|
+
unless brew_installed? "memcached"
|
4
|
+
brew_install "memcached"
|
5
|
+
|
6
|
+
directory "/Users/#{WS_USER}/Library/LaunchAgents" do
|
7
|
+
owner WS_USER
|
8
|
+
action :create
|
9
|
+
end
|
10
|
+
|
11
|
+
execute "copy memcached plist to ~/Library/LaunchAgents" do
|
12
|
+
command "cp `brew --prefix memcached`/com.danga.memcached.plist #{WS_HOME}/Library/LaunchAgents/"
|
13
|
+
user WS_USER
|
14
|
+
end
|
15
|
+
|
16
|
+
execute "load the memcached plist into the mac daemon startup thing" do
|
17
|
+
command "launchctl load -w #{WS_HOME}/Library/LaunchAgents/com.danga.memcached.plist"
|
18
|
+
user WS_USER
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
include_recipe "pivotal_workstation::homebrew"
|
2
|
+
|
3
|
+
unless brew_installed? "mongodb"
|
4
|
+
brew_install "mongodb"
|
5
|
+
|
6
|
+
directory "/Users/#{WS_USER}/Library/LaunchAgents" do
|
7
|
+
owner WS_USER
|
8
|
+
action :create
|
9
|
+
end
|
10
|
+
|
11
|
+
execute "copy mongodb plist to ~/Library/LaunchAgents" do
|
12
|
+
command "cp `brew --prefix mongodb`/org.mongodb.mongod.plist #{WS_HOME}/Library/LaunchAgents/"
|
13
|
+
user WS_USER
|
14
|
+
end
|
15
|
+
|
16
|
+
execute "load the mongodb plist into the mac daemon startup thing" do
|
17
|
+
command "launchctl load -w #{WS_HOME}/Library/LaunchAgents/org.mongodb.mongod.plist"
|
18
|
+
user WS_USER
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
unless File.exists?(node['mouse_locator_dst'])
|
2
|
+
|
3
|
+
remote_file "/tmp/mouse_locator.dmg" do
|
4
|
+
source node["mouse_locator_download_uri"]
|
5
|
+
mode "0644"
|
6
|
+
action :create_if_missing
|
7
|
+
end
|
8
|
+
|
9
|
+
execute "mount mouse_locator dmg" do
|
10
|
+
command "hdid /tmp/mouse_locator.dmg"
|
11
|
+
user WS_USER
|
12
|
+
end
|
13
|
+
|
14
|
+
# We're bypassing the installer.app because it requires intervention.
|
15
|
+
# per the installer readme, the installer does the following:
|
16
|
+
# (I put YES/NO in front of each step if we do it/don't do it).
|
17
|
+
# - NO: Deactivate any previous version of Mouse Locator
|
18
|
+
# - YES: Close the System Preferences, if open
|
19
|
+
# - NO: Remove any previously installed Mouse Locator
|
20
|
+
# - YES: Install a new version of Mouse Locator into:
|
21
|
+
# {HomeFolder}/Library/PreferencePanes/
|
22
|
+
# - YES: Activate Mouse Locator, if previously active
|
23
|
+
# - NO: Open the System Preferences, and display the Mouse Locator
|
24
|
+
# Preferences Pane
|
25
|
+
|
26
|
+
execute "Close System Preferences" do
|
27
|
+
command 'killall "System Preferences"'
|
28
|
+
user WS_USER
|
29
|
+
# we don't care if it fails because it means
|
30
|
+
# System Prefs wasn't running in the first place
|
31
|
+
returns [0, 1]
|
32
|
+
end
|
33
|
+
|
34
|
+
execute "Copy mouse_locator to ~/Library/PreferencePanes/" do
|
35
|
+
command "cp -rf #{Regexp.escape(node["mouse_locator_src"])} #{Regexp.escape(node['mouse_locator_dst'])}"
|
36
|
+
user WS_USER
|
37
|
+
end
|
38
|
+
|
39
|
+
execute "unmount dmg" do
|
40
|
+
command "hdiutil detach #{Regexp.escape(node["mouse_locator_dmg_mnt"])}"
|
41
|
+
user WS_USER
|
42
|
+
end
|
43
|
+
|
44
|
+
execute "Activate Mouse Locator" do
|
45
|
+
command "open #{node["mouse_locator_app"]} &"
|
46
|
+
user WS_USER
|
47
|
+
end
|
48
|
+
|
49
|
+
ruby_block "test to see if mouse_locator was installed" do
|
50
|
+
block do
|
51
|
+
raise "Mouse Locator install failed" unless File.exists?(node['mouse_locator_dst'])
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|