systemd_unit_state

Description

  • Controls a systemd unit masked and disabled states.

Example rule

{
    "disable": true,
    "mask": false,
    "name": "lvm2-lvmetad.service"
}

Form definition

Desc: |
  A rule to set a systemd unit masked and disabled states.
Css: comp48

Outputs:
  -
    Dest: compliance variable
    Type: json
    Format: list of dict
    Class: systemd_unit_state

Inputs:
  -
    Id: name
    Label: Name
    DisplayModeLabel: name
    LabelCss: action16
    Mandatory: Yes
    Type: string
    Help: The systemd unit name, including the suffix (.service or .socket)

  -
    Id: disable
    Label: Disable
    DisplayModeLabel: disable
    LabelCss: action16
    Mandatory: Yes
    Default: No
    Type: boolean
    Help: Should the unit be disabled.

  -
    Id: mask
    Label: Mask
    DisplayModeLabel: mask
    LabelCss: action16
    Mandatory: Yes
    Default: No
    Type: boolean
    Help: Should the unit be masked.