Puppet module to manage htpasswd and htgroup files
- Removed parsing and generation of comments
- Now allows modification of already existing accounts that were not managed by puppet before
htpasswd { 'dan':
cryptpasswd => 'MrC7Aq3qPKPaK', # encrypted password
target => '/etc/httpd/conf/htpasswd',
}
htpasswd { 'dan2':
username => 'dan',
cryptpasswd => 'djkhfsdhfkjsd', # encrypted password
target => '/etc/httpd/conf/htpasswd2',
}
htpasswd { user:
ensure => absent,
target => '/etc/httpd/conf/htpasswd',
}
htgroup { groupname:
users => [ user1, user2, ],
target => '/etc/httpd/conf/htgroup',
}
htgroup { groupname:
ensure => absent,
target => '/etc/httpd/conf/htgroup',
}
encrypt 'password' with 'salt' using the crypt method
encrypt 'password' with 'salt' using the apache MD5 method
encrypt 'password' using the apache SHA1 method
Apache MD5 algorithm ruby implementation taken from https://github.com/copiousfreetime/htauth by Jeremy Hinegardner.