Puppet Class: systemd::config

Defined in:
modules/systemd/manifests/config.pp

Overview

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: present)
  • cpu_accounting (Enum['yes', 'no']) (defaults to: 'no')
  • blockio_accounting (Enum['yes', 'no']) (defaults to: 'no')
  • memory_accounting (Enum['yes', 'no']) (defaults to: 'no')
  • ip_accounting (Enum['yes', 'no']) (defaults to: 'no')


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/systemd/manifests/config.pp', line 7

class systemd::config (
    Wmflib::Ensure $ensure = present,
    Enum['yes', 'no'] $cpu_accounting = 'no',
    Enum['yes', 'no'] $blockio_accounting = 'no',
    Enum['yes', 'no'] $memory_accounting = 'no',
    Enum['yes', 'no'] $ip_accounting = 'no',
){
    file { '/etc/systemd/system.conf':
        ensure  => $ensure,
        content => template('systemd/system.conf.erb'),
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
    }
}