Puppet Class: gitlabr10khook

Overview

Class: gitlabr10khook vim: set softtabstop=2 ts=2 sw=2 expandtab:

This configures the gitlab-puppet-webhook that will take webhook triggers from gitlab and run r10k on your puppet server it currently only supports the PUSH mechanism

Parameters


Variables


Examples


Authors


Karl Vollmer <karl.vollmer@gmail.com> Copyright


Copyright 2016 Karl Vollmer.

Examples:

class { 'gitlabr10khook':
  servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
}

Parameters:

  • install (Any) (defaults to: $gitlabr10khook::params::install)

    /opt/gitlab-puppet-webhhook is the default location

  • release (Any) (defaults to: $gitlabr10khook::params::release)

    The tag point for the git project to checkout

  • server (Any) (defaults to: $gitlabr10khook::params::server)

    The server hash with all of the server configuration data

  • multimaster (Any) (defaults to: $gitlabr10khook::params::multimaster)

    Enable/Disable multiemaster support

  • log (Any) (defaults to: $gitlabr10khook::params::log)

    Logging settings

  • r10k (Any) (defaults to: $gitlabr10khook::params::r10k)

    R10k Binary location and information

  • legacy (Any) (defaults to: $gitlabr10khook::params::legacy)

    Turn off legacy… just do it trust me

  • footprints (Any) (defaults to: $gitlabr10khook::params::footprints)

    Settings for footprints e-mail updates

  • otrs (Any) (defaults to: $gitlabr10khook::params::otrs)

    Settings for OTRS e-mail update functionality



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'manifests/init.pp', line 37

class gitlabr10khook  (
  $install      = $gitlabr10khook::params::install,
  $release      = $gitlabr10khook::params::release,
  $server       = $gitlabr10khook::params::server,
  $log          = $gitlabr10khook::params::log,
  $r10k         = $gitlabr10khook::params::r10k,
  $multimaster  = $gitlabr10khook::params::multimaster,
  $legacy       = $gitlabr10khook::params::legacy,
  $footprints   = $gitlabr10khook::params::footprints,
  $otrs         = $gitlabr10khook::params::otrs,
) inherits gitlabr10khook::params {

  # Merge defaults
  $intserver      = merge($gitlabr10khook::params::server,$server)
  $intlog         = merge($gitlabr10khook::params::log,$log)
  $intr10k        = merge($gitlabr10khook::params::r10k,$r10k)
  $intmultimaster = merge($gitlabr10khook::params::multimaster,$multimaster)
  $intlegacy      = merge($gitlabr10khook::params::legacy,$legacy)
  $intfootprints  = merge($gitlabr10khook::params::footprints,$footprints)
  $intotrs        = merge($gitlabr10khook::params::otrs,$otrs)

  # Run the install, config and then start the service
  anchor { 'gitlabr10khook::begin': }
  -> class { '::gitlabr10khook::install': }
  -> class { '::gitlabr10khook::config': }
  ~> class { '::gitlabr10khook::service': }
  ~> anchor { 'gitlabr10khook::end': }

}