forked from jamesnetherton/puppet-google-chrome
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathparams.pp
33 lines (32 loc) · 1.08 KB
/
params.pp
1
2
3
4
5
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
# == Class: google_chrome
#
# Installs the Google Chrome web browser.
#
class google_chrome::params {
$ensure = 'installed'
$version = 'stable'
$package_name = 'google-chrome'
$repo_gpg_key = 'https://dl.google.com/linux/linux_signing_key.pub'
$repo_gpg_key_id = '4CCA1EAF950CEE4AB83976DCA040830F7FAC5991'
$repo_gpg_key_options = undef
$repo_name = 'google-chrome'
$defaults_file = '/etc/default/google-chrome'
$defaults_proxy_pac_url = undef
case $facts['os']['family'] {
'RedHat' : {
if versioncmp($facts['os']['release']['major'], '6') == 0 {
fail('Operating system not supported by Google Chrome')
}
$repo_base_url = 'https://dl.google.com/linux/chrome/rpm/stable/x86_64'
}
'Suse' : {
$repo_base_url = 'https://dl.google.com/linux/chrome/rpm/stable/x86_64'
}
'Debian': {
$repo_base_url = 'https://dl.google.com/linux/chrome/deb/'
}
default: {
fail("Unsupported operating system family ${facts['os']['family']}")
}
}
}