Puppet Class: google_chrome::params

Inherited by:
google_chrome
Defined in:
manifests/params.pp

Overview

Class: google_chrome

Installs the Google Chrome web browser.



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

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 = '[arch=amd64] https://dl.google.com/linux/chrome/deb/'
    }
    default: {
      fail("Unsupported operating system family ${facts['os']['family']}")
    }
  }
}