Puppet Class: psick::git

Defined in:
manifests/git.pp

Overview

This class installs git using tp

Parameters:

  • ensure (Enum['present','absent']) (defaults to: 'present')

    Define if to install or remove git

  • configs_hash (Hash) (defaults to: {})
  • extra_packages_list (Array) (defaults to: [])
  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


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

class psick::git (
  Enum['present','absent'] $ensure              = 'present',
  Hash                     $configs_hash        = {},
  Array                    $extra_packages_list = [],

  Boolean          $manage               = $psick::manage,
  Boolean          $noop_manage          = $psick::noop_manage,
  Boolean          $noop_value           = $psick::noop_value,

) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }

    tp::install { 'git':
      ensure => $ensure,
    }
    $configs_hash.each |$k,$v| {
      psick::git::config { $k:
        * => $v,
      }
    }
    $extra_packages_list.each |$k| {
      package { $k:
        ensure => $ensure,
      }
    }
  }
}