Puppet Class: confdroid_automatic::params

Summary

Class manages all parameters for the confdroid_automatic module

Overview

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

Parameters:

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

    which packages to install

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

    which version of packages to install

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

    what upgrades to manage. Can be ‘default’, ‘security’, ‘minimal’ or ‘all’

  • 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

  • ac_email_to (String) (defaults to: 'root@example.net')

    where to send the email to

  • ac_email_host (String) (defaults to: 'localhost')

    which host to use to send the email



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

class confdroid_automatic::params (

  String $ac_reqpackages                 = 'dnf-automatic',
  String $ac_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',
  String $ac_email_to                 = 'root@example.net',
  String $ac_email_host               = 'localhost',

) {
# 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       = 'confdroid_automatic/automatic.conf.erb'

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