Puppet Class: software::params

Overview

Parameters:

  • ensure (Any) (defaults to: $::software_ensure)


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
# File 'manifests/params.pp', line 6

class software::params (
  $ensure = $::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/GGRM/googlechrome.dmg'
    $firefox_version = '45.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.6'
    $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.1'
    $sequelpro_url          = "https://github.com/sequelpro/sequelpro/releases/download/${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.0.2'
    $textwrangler_url     = "https://s3.amazonaws.com/BBSW-download/TextWrangler_${textwrangler_version}.dmg"


    #### entertainment ####
    $vlc_version = '2.2.2'
    $vlc_url     = "https://get.videolan.org/vlc/${vlc_version}/macosx/vlc-${vlc_version}.dmg"


    #### idesdk ####
    $android_studio_version = '141.2456560'
    $android_studio_url     = "https://dl.google.com/dl/android/studio/install/1.5.1.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.21.350'
    $skype_url     = "http://download.skype.com/macosx/d5410ef3de6d9f31d74f1f684db3dfdf/Skype_${skype_version}.dmg"


    #### storage ####
    $drive_url         = 'https://dl.google.com/drive/installgoogledrive.dmg'
    $fetch_version     = '5.7.5'
    $fetch_url         = "http://getfetch.com/Fetch_${fetch_version}.dmg"
    $filezilla_version = '3.16.0'
    $filezilla_url     = "https://sourceforge.net/projects/filezilla/files/FileZilla_Client/${filezilla_version}/FileZilla_${filezilla_version}_macosx-x86.app.tar.bz2/download"


    #### utilities ####
    $alfred_version       = '2.8.3_435'
    $alfred_url           = "https://cachefly.alfredapp.com/Alfred_${alfred_version}.zip"
    $controlplane_version = '1.6.1'
    $controlplane_url     = "https://dl.dropboxusercontent.com/u/12850/ControlPlane/ControlPlane-${controlplane_version}.dmg"
    $iterm_version        = '2_1_4'
    $iterm_url            = "https://iterm2.com/downloads/stable/iTerm2-${iterm_version}.zip"


    #### vcsscm ####
    $sourcetree_version = '2.2.3'
    $sourcetree_url     = "https://downloads.atlassian.com/software/sourcetree/SourceTree_${sourcetree_version}.dmg"


    #### virtualization ####
    $virtualbox_version = '5.0.16'
    $virtualbox_build   = '105871'
    $virtualbox_url     = "http://download.virtualbox.org/virtualbox/${virtualbox_version}/VirtualBox-${virtualbox_version}-${virtualbox_build}-OSX.dmg"


    #### 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'
    } else {
      fail("The ${module_name} module only supports 'Mountain Lion', 'Mavericks', 'Yosemite', 'El Capitan'.")
    }
  } 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'


    #### virtualization ####
    $virtualbox_version = '5.0'
    $virtualbox_build   = '105871'
    $virtualbox_url     = 'http://download.virtualbox.org/virtualbox/debian'


  } else {
    fail("The ${module_name} module is not supported on ${::operatingsystem} with version ${::operatingsystemrelease}.")
  }

}