Resource Type: systemd_purge_units

Defined in:
lib/puppet/type/systemd_purge_units.rb

Overview

This is a metatype to purge unmanaged systemd units that were previously created with the ‘systemd::manage_unit` defined type.

Set the name of the resource to your systemd unit file path. (eg. ‘/etc/systemd/system`). Any unmanaged unit files in that directory whose first line is `# Deployed with puppet` will be removed. By default all unit types that `systemd::manage_unit` can create are considered, but this can be narrowed with the `unit_types` parameter.

Properties

  • ensure (defaults to: purged)

    The basic property that the resource should be in.

    Supported values:
    • purgable
    • purged

Parameters

  • path

    The fully qualified directory to purge unit files from.

  • unit_types (defaults to: valid_unit_types)

    The unit file types to purge. Defaults to every type that ‘systemd::manage_unit` can create. Give an array to restrict purging to specific types, eg. `[’service’, ‘timer’]‘.