diff options
author | varac <varacanero@zeromail.org> | 2013-07-15 08:55:36 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-07-15 08:55:36 +0200 |
commit | 276f68983715a9de5e571b000d1d7535e1358891 (patch) | |
tree | 0fbaebacc28044e6492fd1e1a00ae4b002155b2f /manifests/htpasswd.pp | |
parent | 366439345bcc7c87a7b1ba1e4b371a4ea2888d59 (diff) |
added omdadmin htpasswd parameter
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 0000000..2bd24cc --- /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 + } +} |