Resource Type: puppet_auth

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

Overview

Manages settings in Puppet’s auth.conf.

Properties

  • allow

    The list of hosts allowed for this rule, specified by hostname or cername. Regexes are allowed, as well as the special value ‘*`.

  • allow_ip

    The list of IPs allowed for this rule. Requires Puppet 3.0.0 or greater.

  • authenticated

    The type of authentication for the rule. Possible values are:

    • yes;

    • no;

    • on;

    • off;

    • any.

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • environments

    The list of environments the rule applies to.

  • methods

    The list of methods the rule applies to. Possible values are:

    • find;

    • search;

    • save;

    • destroy.

Parameters

  • ins_after

    Optional XPath expression to specify where to insert the auth rule.

    This parameter takes special values working as aliases:

    • ‘first allow`, mapping to `path[1]`;

    • ‘last allow`, mapping to `path[last()]`;

    • ‘first deny`, mapping to `path[1]`;

    • ‘last deny`, mapping to path[last()]`

  • ins_before

    Optional XPath expression to specify where to insert the auth rule.

    This parameter takes special values working as aliases:

    • ‘first allow`, mapping to `path[1]`;

    • ‘last allow`, mapping to `path[last()]`;

    • ‘first deny`, mapping to `path[1]`;

    • ‘last deny`, mapping to path[last()]`

  • name (namevar)

    The name of the resource.

  • path

    The path for the auth rule.

  • path_regex

    Whether the path is specified as a regex.

    Supported values:
    • true
    • false
  • provider

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

  • target

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