6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
# File 'manifests/params.pp', line 6
class software::params (
$ensure = getvar('::software-ensure'),
) {
# At least OSX 10.8 "Mountain Lion"
if ($::operatingsystem == 'Darwin') and (versioncmp($::macosx_productversion, '10.8') >= 0) {
#### init ####
$software_ensure = $ensure ? {
undef => installed,
default => $ensure,
}
$applications_path = '/Applications'
$utilities_path = "${applications_path}/Utilities"
$preference_panes_path = '/Library/PreferencePanes'
#### browsers ####
$chrome_url = 'https://dl.google.com/chrome/mac/stable/CHFA/googlechrome.dmg'
$chrome_channel = 'stable'
$firefox_version = '50.1.0'
$firefox_url = "https://download-installer.cdn.mozilla.net/pub/firefox/releases/${firefox_version}/mac/en-US/Firefox%20${firefox_version}.dmg"
#### database ####
$mysqlworkbench_version = '6.3.8'
$mysqlworkbench_url = "http://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-${mysqlworkbench_version}-osx-x86_64.dmg"
$pgcommander_version = '1.5.9'
$pgcommander_url = "https://eggerapps-downloads.s3.amazonaws.com/pgcommander-${pgcommander_version}.zip"
$sequelpro_version = '1.1.2'
$sequelpro_url = "https://github.com/sequelpro/sequelpro/releases/download/release-${sequelpro_version}/sequel-pro-${sequelpro_version}.dmg"
#### drivers ####
$lanier_mpc5503_version = '2.2.0.0'
$lanier_mpc5503_url = "http://support.ricoh.com/bb/pub_e/dr_ut_e/0001269/0001269425/V2200/LANIER_PS_Printers_Vol3_EXP_LIO_${lanier_mpc5503_version}.dmg"
#### editors ####
$atom_url = 'https://atom.io/download/mac'
$textmate_url = 'https://api.textmate.org/downloads/release'
$textwrangler_version = '5.5.2'
$textwrangler_url = "https://s3.amazonaws.com/BBSW-download/TextWrangler_${textwrangler_version}.dmg"
#### entertainment ####
$vlc_version = '2.2.4'
$vlc_url = "https://get.videolan.org/vlc/${vlc_version}/macosx/vlc-${vlc_version}.dmg"
#### idesdk ####
$android_studio_version = '145.3537739'
$android_studio_url = "https://dl.google.com/dl/android/studio/install/2.2.3.0/android-studio-ide-${android_studio_version}-mac.dmg"
#### prefpanes ####
$hosts_version = '1.3'
$hosts_url = "https://github.com/downloads/specialunderwear/Hosts.prefpane/Hosts-${hosts_version}.pkg"
$launchrocket_version = '0.7'
$launchrocket_url = "https://github.com/jimbojsb/launchrocket/releases/download/v${launchrocket_version}/LaunchRocket.prefPane.zip"
#### social ####
$skype_version = '7.33.206'
$skype_url = "http://download.skype.com/macosx/59bb2e5bac07f54c8d4ade192fa36d1c/Skype_${skype_version}.dmg"
#### storage ####
$drive_url = 'https://dl.google.com/drive/installgoogledrive.dmg'
$fetch_version = '5.7.6'
$fetch_url = "http://getfetch.com/Fetch_${fetch_version}.dmg"
$filezilla_version = '3.23.0.2'
$filezilla_url = "https://sourceforge.net/projects/filezilla/files/FileZilla_Client/${filezilla_version}/FileZilla_${filezilla_version}_macosx-x86.app.tar.bz2/download"
#### utilities ####
$alfred_version = '3.2.1_768'
$alfred_url = "https://cachefly.alfredapp.com/Alfred_${alfred_version}.zip"
$controlplane_version = '1.6.4'
$controlplane_url = "https://dl.dropboxusercontent.com/u/12850/ControlPlane/ControlPlane-${controlplane_version}.dmg"
$iterm_version = '3_0_13'
$iterm_url = "https://iterm2.com/downloads/stable/iTerm2-${iterm_version}.zip"
#### vcsscm ####
$sourcetree_version = '2.4e'
$sourcetree_url = "https://downloads.atlassian.com/software/sourcetree/SourceTree_${sourcetree_version}.zip"
#### virtualization ####
$virtualbox_version = '5.1.12'
$virtualbox_build = '112440'
$virtualbox_url = "http://download.virtualbox.org/virtualbox/${virtualbox_version}/VirtualBox-${virtualbox_version}-${virtualbox_build}-OSX.dmg"
$virtualbox_key = undef
#### webstack ####
$anvil_url = 'http://s3.amazonaws.com/sparkler_versions/versions/uploads/000/000/129/original/Anvil_2016-02-24_11-50-56.zip'
$pow_url = 'get.pow.cx'
if versioncmp($::macosx_productversion_major, '10.8') == 0 {
#### utilities ####
$onyx_url = 'http://www.titanium.free.fr/download/108/OnyX.dmg'
} elsif versioncmp($::macosx_productversion_major, '10.9') == 0 {
#### utilities ####
$onyx_url = 'http://www.titanium.free.fr/download/109/OnyX.dmg'
} elsif versioncmp($::macosx_productversion_major, '10.10') == 0 {
#### utilities ####
$onyx_url = 'http://www.titanium.free.fr/download/1010/OnyX.dmg'
} elsif versioncmp($::macosx_productversion_major, '10.11') == 0 {
#### utilities ####
$onyx_url = 'http://joel.barriere.pagesperso-orange.fr/download/1011/OnyX.dmg'
} elsif versioncmp($::macosx_productversion_major, '10.12') == 0 {
#### utilities ####
$onyx_url = 'http://joel.barriere.pagesperso-orange.fr/download/1012/OnyX.dmg'
} else {
fail("The ${module_name} module only supports 'Mountain Lion', 'Mavericks', 'Yosemite', 'El Capitan', 'Sierra'.")
}
} elsif ($::operatingsystem == 'Ubuntu') and (versioncmp($::operatingsystemrelease, '12.04') >= 0) {
#### init ####
$software_ensure = $ensure ? {
undef => latest,
default => $ensure,
}
#### browsers ####
$chrome_url = 'http://dl.google.com/linux/chrome/deb/'
$chrome_channel = 'stable'
#### editors ####
$atom_url = 'https://atom.io/download/deb'
#### social ####
$skype_version = undef
$skype_url = undef
#### virtualization ####
$virtualbox_version = '5.1'
$virtualbox_build = '112440'
$virtualbox_url = 'http://download.virtualbox.org/virtualbox/debian'
if versioncmp($::operatingsystemrelease, '16.04') >= 0 {
$virtualbox_key = {
'id' => 'B9F8D658297AF3EFC18D5CDFA2F683C52980AECF',
'source' => 'https://www.virtualbox.org/download/oracle_vbox_2016.asc',
}
} else {
$virtualbox_key = {
'id' => '7B0FAB3A13B907435925D9C954422A4B98AB5139',
'source' => 'https://www.virtualbox.org/download/oracle_vbox.asc',
}
}
} elsif ($::operatingsystem == 'windows') and (versioncmp($::operatingsystemrelease, '7') >= 0) {
#### init ####
include '::chocolatey'
$software_ensure = $ensure ? {
undef => latest,
default => $ensure,
}
} else {
fail("The ${module_name} module is not supported on ${::operatingsystem} with version ${::operatingsystemrelease}.")
}
}
|