Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple puppet module to handle htpasswd command line tool
Puppet
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
htpasswd/manifests
.gitignore
README.rst

README.rst

puppet-htpasswd

A simple puppet module to handle htpasswd command line tool

examples

Create or updating an entry on the auth file

package{'apache2-utils': ensure => installed }

htpasswd::user {"username":
    file => '/path_to_my_file',
    password => 'username_password'
}

Deleting an user

 package{'apache2-utils': ensure => installed }

 htpasswd::user {"username":
    file => '/path_to_my_file',
    ensure => absent
}

Controling the encryptation, options are(md5, sha, plain, crypt)

package{'apache2-utils': ensure => installed }

htpasswd::user {"username":
    password => 'userpassword',
    file => '/path_to_my_file',
    ensure => present,
    encryptation => sha
}
Something went wrong with that request. Please try again.