Puppet Class: firefox

Inherits:
firefox::params
Defined in:
manifests/init.pp

Overview

Parameters:

  • version (Any) (defaults to: $firefox::params::version)
  • ensure (Any) (defaults to: $firefox::params::ensure)
  • architecture (Any) (defaults to: $firefox::params::architecture)
  • language (Any) (defaults to: $firefox::params::language)
  • root_dir (Any) (defaults to: $firefox::params::root_dir)
  • extra_parameters (Any) (defaults to: undef)


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

class firefox(
  $version          = $firefox::params::version,
  $ensure           = $firefox::params::ensure,
  $architecture     = $firefox::params::architecture,
  $language         = $firefox::params::language,
  $root_dir         = $firefox::params::root_dir,
  $extra_parameters = undef,
) inherits firefox::params {
  validate_re($::kernel, '^Linux$', 'This module will work only on linux. Moar to come')
#  case $::kernel {
#    'Linux': {
#    }
#    'Darwin': {
#      notice { 'mmm':
#        message => "mac rider here $::kernel",
#        
#      }
#    }
#  }

  validate_re($firefox::architecture, '^(x86_64|i686)$', 'Invalid architecture, choose x86_64 or i686')

  class { 'firefox::install': } ->
  class { 'firefox::config':  } ->
  Class['firefox']
}