Puppet Class: automatic_cd::params

Summary

Class manages all parameters for the automatic_cd module

Overview

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

Parameters:

  • reqpackages (String) (defaults to: 'dnf-automatic')

    which packages to install

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

    which version of packages to install

  • ac_upgrade_type (String) (defaults to: 'default')

    what upgrades to manage

  • ac_random_sleep (String) (defaults to: '0')

    random sleep seconds

  • ac_network_online_timeout (String) (defaults to: '60')

    Maximum time until be online

  • ac_download_updates (String) (defaults to: 'yes')

    whether to download available updates

  • ac_apply_updates (String) (defaults to: 'yes')

    whether to apply available updates

  • ac_reboot (String) (defaults to: 'never')

    when to reboot after applied updates

  • ac_emit_via (String) (defaults to: 'email')

    how to inform about emitted updates



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

class automatic_cd::params (

  String $reqpackages                 = 'dnf-automatic',
  String $pkg_ensure                  = 'latest',

  # updates
  String $ac_upgrade_type             = 'default',
  String $ac_random_sleep             = '0',
  String $ac_network_online_timeout   = '60',
  String $ac_download_updates         = 'yes',
  String $ac_apply_updates            = 'yes',
  String $ac_reboot                   = 'never',
  String $ac_emit_via                 = 'email',

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

# Service
  $ac_service               = 'dnf-automatic.timer'

# Files
  $ac_main_config           = '/etc/dnf/automatic.conf'
  $ac_main_config_erb       = 'automatic_cd/automatic.conf.erb'

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