Puppet Class: jenkins::install

Inherits:
jenkins
Defined in:
manifests/install.pp

Overview

Class: jenkins::install

This class installs jenkins

Variables

Refer to jenkins class for the variables defined here.

Usage

This class is not intended to be used directly. It’s automatically included by jenkins main class.



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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'manifests/install.pp', line 14

class jenkins::install inherits jenkins {

  case $jenkins::install {

    package: {
      require jenkins::repository
      package { 'jenkins':
        ensure => $jenkins::manage_package,
        name   => $jenkins::package,
      }
    }

    source: {
      puppi::netinstall { 'jenkins':
        url                 => $jenkins::install_source,
        destination_dir     => $jenkins::install_destination,
        extract_command     => 'rsync',
        preextract_command  => $jenkins::install_precommand,
        postextract_command => $jenkins::install_postcommand,
      }
    }

    puppi: {
      puppi::project::war { 'jenkins':
        source                   => $jenkins::install_source,
        deploy_root              => $jenkins::install_destination,
        predeploy_customcommand  => $jenkins::install_precommand,
        postdeploy_customcommand => $jenkins::install_postcommand,
        report_email             => 'root',
        auto_deploy              => true,
        check_deploy             => false,
        run_checks               => false,
        enable                   => true,
      }
    }

    default: {
    }

  }

}