Resource Type: htaccess

Defined in:
lib/puppet/type/htaccess.rb
Providers:
htaccess

Overview

Manages the contents of htaccess files using the htpasswd command. Right now the $namevar must be a path/user combination as documented under the $name parameter. Hopefully, this can be fixed in the future.

Note: If you want different permissions than root:root 640, you will need to create a ‘file’ object to manage the target file.

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • password

    The user’s new password either as an SHA hash or as plain text. Anything not prefixed with SHA will be treated as plain text.

Parameters

  • name (namevar)

    A variable of the format ‘path:username’. This will hopefully be split in the future but, for now, you cannot use usernames that contain a colon ‘:’.

  • provider

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