Puppet Class: profile::ci::jenkins

Defined in:
modules/profile/manifests/ci/jenkins.pp

Overview

jenkins_prefix

The HTTP path used to reach the Jenkins instance. Must have a leading slash. Default: '/ci'.

Parameters:

  • prefix (Any) (defaults to: hiera('profile::ci::jenkins::prefix'))
  • service_ensure (Any) (defaults to: hiera('profile::ci::jenkins::service_ensure'))
  • service_enable (Any) (defaults to: hiera('profile::ci::jenkins::service_enable'))
  • service_monitor (Any) (defaults to: hiera('profile::ci::jenkins::monitor'))
  • builds_dir (Any) (defaults to: hiera('profile::ci::jenkins::builds_dir'))
  • workspaces_dir (Any) (defaults to: hiera('profile::ci::jenkins::workspaces_dir'))


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
35
36
37
38
39
40
# File 'modules/profile/manifests/ci/jenkins.pp', line 5

class profile::ci::jenkins(
    $prefix = hiera('profile::ci::jenkins::prefix'),
    $service_ensure = hiera('profile::ci::jenkins::service_ensure'),
    $service_enable = hiera('profile::ci::jenkins::service_enable'),
    $service_monitor = hiera('profile::ci::jenkins::monitor'),
    $builds_dir = hiera('profile::ci::jenkins::builds_dir'),
    $workspaces_dir = hiera('profile::ci::jenkins::workspaces_dir'),
) {
    # Load the Jenkins module, that setup a Jenkins master
    class { '::jenkins':
        access_log      => true,
        http_port       => 8080,
        prefix          => $prefix,
        umask           => '0002',
        service_ensure  => $service_ensure,
        service_enable  => $service_enable,
        service_monitor => $service_monitor,
        builds_dir      => $builds_dir,
        workspaces_dir  => $workspaces_dir,
    }

    # Templates for Jenkins plugin Email-ext.
    file { '/var/lib/jenkins/email-templates':
        ensure => directory,
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
    }
    file { '/var/lib/jenkins/email-templates/wikimedia.template':
        source  => 'puppet:///modules/contint/jenkins-email-template',
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
        require => File['/var/lib/jenkins/email-templates'],
    }
}