Puppet Class: puppet_hipchat::params

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

Overview

Class: puppet_hipchat::params

Parameterize for Puppet platform.



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

class puppet_hipchat::params {

  $package_name = 'hipchat'
  $puppetboard  = undef
  $dashboard    = undef
  $api_version  = 'v1'
  $proxy        = undef

  if str2bool($::is_pe) {
    $install_hc_gem  = true
    $puppetconf_path = '/etc/puppetlabs/puppet'
    $provider        = 'pe_gem'
    $owner           = 'pe-puppet'
    $group           = 'pe-puppet'
  } elsif ($::puppetversion) and (versioncmp('4.0.0', $::puppetversion) < 1) {
    $puppetconf_path = '/etc/puppetlabs/puppet'
    $install_hc_gem  = false
    $owner           = 'puppet'
    $group           = 'puppet'
  } else {
    $install_hc_gem  = true
    $puppetconf_path = '/etc/puppet'
    $provider        = 'gem'
    $owner           = 'puppet'
    $group           = 'puppet'
  }
}