diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:41 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:41 -0400 |
commit | c9d50f333a81c716f3e227e9eb449dc76b6eb6e3 (patch) | |
tree | 1a09a2775045f854000f6cba5ee4efb2c3a802b2 /manifests/htpasswd.pp |
Squashed 'puppet/modules/check_mk/' content from commit aa02571
git-subtree-dir: puppet/modules/check_mk
git-subtree-split: aa02571537af90ac73309e6e216c9417802548c3
Diffstat (limited to 'manifests/htpasswd.pp')
-rw-r--r-- | manifests/htpasswd.pp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/htpasswd.pp b/manifests/htpasswd.pp new file mode 100644 index 00000000..2bd24cc5 --- /dev/null +++ b/manifests/htpasswd.pp @@ -0,0 +1,12 @@ +class check_mk::htpasswd ( + $password, + $username = 'omdadmin', + $path = '/opt/omd/sites/monitoring/etc/htpasswd' ) { + + apache::htpasswd_user { $username: + ensure => present, + username => $username, + password => $password, + path => $path + } +} |