Resource Type: runlevel

Defined in:
lib/puppet/type/runlevel.rb
Providers:
systemd
telinit

Overview

Changes the system runlevel by re-evaluating the inittab or systemd link. Arguments:

name

- the runlevel to evaluate for the system

persist

- boolean value that determines whether or not to set as the default runlevel of the system

Example:

runlevel { '3': persist => true, }

Properties

  • level (defaults to: default)

    The target runlevel of the system. Defaults to what is specified in :name

    Supported values:
    • /^[1-5]$/
    • rescue
    • multi-user
    • graphical
    • default
  • persist (defaults to: true)

    Whether or not to save the runlevel as default.

    Supported values:
    • true
    • false

Parameters

  • name (namevar)

    The target runlevel of the system

    Supported values:
    • /^[1-5]$/
    • rescue
    • multi-user
    • graphical
  • provider

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

  • transition_timeout (defaults to: 60)

    How many seconds to wait for a runlevel switch before failing

    Supported values:
    • /^\d+$/