Resource Type: stunnel_instance_purge

Defined in:
lib/puppet/type/stunnel_instance_purge.rb
Providers:
purge

Overview

Disables all services and removes all associated files for “stunnel::instance“ created resources that are no longer under management.

This is required so that newly created resources do not have port conflicts upon starting a new service.

Example:

stunnel_instance_purge { 'stunnel_managed_by_puppet':
  dirs => [
    '/etc/stunnel',
    '/etc/rc.d/init.d',
    '/etc/systemd/system'
  ]
}

This will disable all services that start with ``$namevar`` and will
subsequently remove all files in the directories specified in the
``$dirs`` Array that match ``${dir}/${namevar}.*``.

WARNING: BE VERY CAREFUL THAT ${namevar} IS PRECISE

Properties

  • dirs

    The directories from which the files matching “$name.*” should be purged

    Supported values:
    • /^\//

Parameters

  • name (namevar)

    The prefix name of the services to disable and files to remove

  • provider

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

  • verbose

    Provide verbose output in the change message regarding services to be purged

    Supported values:
    • true
    • false
    • yes
    • no