Puppet Class: jenkins_cd::params

Summary

Class holds all parameters for the jenkins_cd module.

Overview

jenkins_cd::params.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)

Parameters:

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

    which packages to install

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

    which packages to install

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

    fqdn of the host where Jenkins should run

  • 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: '80')

    the port to open for Jenkins

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

    the source range to open



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
41
42
43
44
# File 'manifests/params.pp', line 13

class jenkins_cd::params (

  Array $reqpackages      = ['jenkins','fontconfig'],
  String $pkg_ensure      = 'latest',

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

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

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

  # yum repo
  $js_base_url            = 'https://pkg.jenkins.io/redhat-stable/'
  $js_key_url             = "${js_base_url}/jenkins.io-2023.key"
  $js_key_code            = 'gpg-pubkey-ef5975ca-6421ce2b'

  # Service
  $js_service             = 'jenkins'

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