Puppet Class: confdroid_jenkins::params

Summary

Class holds all parameters for the confdroid_jenkins module.

Overview

confdroid_jenkins::params.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)

Parameters:

  • reqpackages (Array) (defaults to: ['jenkins','fontconfig'])

    which packages to install

  • pkg_ensure (String) (defaults to: 'latest')

    which packages to install

  • js_gpg_check (String) (defaults to: '1')

    whether to enable GPG check for Jenkins packages

  • js_repo_enabled (String) (defaults to: '1')

    whether to enable the Jenkins repository

  • js_host_fqdn (String) (defaults to: 'jenkins.example.net')

    fqdn of the host where Jenkins should run

  • js_base_url (String) (defaults to: 'https://pkg.jenkins.io/rpm-stable')

    the base URL for the Jenkins repository

  • js_key (String) (defaults to: 'repodata/repomd.xml.key')

    the filename of the Jenkins GPG key to import

  • js_key_code (String) (defaults to: 'gpg-pubkey-14abfc68-69494683')

    the code of the Jenkins GPG key to check

  • js_enable_fw (Boolean) (defaults to: true)

    whether to enable firewall control

  • js_fw_rule (String) (defaults to: '50')

    the prefix for the firewall rule order

  • js_jenkins_port (String) (defaults to: '8080')

    the port to open for Jenkins

  • js_source_net (String) (defaults to: '0.0.0.0/0')

    the source range to open

  • js_use_sudo (Boolean) (defaults to: false)

    whether to add Jenkins to sudoers list

  • js_gpg_repo_check (String) (defaults to: '1')


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

class confdroid_jenkins::params (

  Array $reqpackages        = ['jenkins','fontconfig'],
  String $pkg_ensure        = 'latest',
  String $js_gpg_check      = '1',
  String $js_repo_enabled   = '1',
  String $js_gpg_repo_check = '1',
  String $js_base_url       = 'https://pkg.jenkins.io/rpm-stable',
  String $js_key            = 'repodata/repomd.xml.key',
  String $js_key_code       = 'gpg-pubkey-14abfc68-69494683',

  # server fqdn
  String $js_host_fqdn      = 'jenkins.example.net',

  # firewall
  Boolean $js_enable_fw     = true,
  String $js_fw_rule        = '50',
  String $js_jenkins_port   = '8080',
  String $js_source_net     = '0.0.0.0/0',

  # user
  Boolean $js_use_sudo      = false,

) {
  # facts
  $fqdn                   = $facts['networking']['fqdn']
  $domain                 = $facts['networking']['domain']
  $os_name                = $facts['os']['name']
  $os_release             = $facts['os']['release']['major']

  $js_sudoers_file        = '/etc/sudoers.d/jenkins_sudo'
  $js_sudoers_erb         = 'confdroid_jenkins/sudoers.erb'

  # Service
  $js_service             = 'jenkins'

  # includes must be last
  include confdroid_jenkins::main::config
}