Skip to content

andrefsp/puppet-htpasswd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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
}

About

A simple puppet module to handle htpasswd command line tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages