Resource Type: sysctl

Defined in:
lib/puppet/type/sysctl.rb
Providers:
augeas

Overview

Manages entries in /etc/sysctl.conf.

Properties

  • comment

    Text to be stored in a comment immediately above the entry. It will be automatically prepended with the name of the setting in order for the provider to know whether it controls the comment or not.

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • val

    An alias for ‘value’. Maintains interface compatibility with the traditional ParsedFile sysctl provider. If both are set, ‘value’ will take precedence over ‘val’.

  • value

    Value to change the setting to. Settings with multiple values (such as net.ipv4.tcp_mem) are represented as a single whitespace separated string.

Parameters

  • apply (defaults to: true)

    Whether to apply the value using the sysctl command.

    Supported values:
    • true
    • false
  • name (namevar)

    The name of the setting, e.g. net.ipv4.ip_forward

  • persist (defaults to: true)

    Persist the value in the on-disk file ($target).

    Supported values:
    • true
    • false
  • provider

    The specific backend to use for this ‘sysctl` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • silent (defaults to: false)

    If set, do not report an error if the system key does not exist. This is useful for systems that may need to load a kernel module prior to the sysctl values existing.

    Supported values:
    • true
    • false
  • target

    The file in which to store the settings, defaults to ‘/etc/sysctl.conf`.