From 5e44087aed707e882129c03f24fadf00abbf7e02 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 9 Jun 2016 17:32:09 +0200 Subject: git subrepo clone https://leap.se/git/puppet_check_mk puppet/modules/check_mk subrepo: subdir: "puppet/modules/check_mk" merged: "aa02571" upstream: origin: "https://leap.se/git/puppet_check_mk" branch: "master" commit: "aa02571" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "cb2995b" --- puppet/modules/check_mk/manifests/htpasswd.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 puppet/modules/check_mk/manifests/htpasswd.pp (limited to 'puppet/modules/check_mk/manifests/htpasswd.pp') diff --git a/puppet/modules/check_mk/manifests/htpasswd.pp b/puppet/modules/check_mk/manifests/htpasswd.pp new file mode 100644 index 00000000..2bd24cc5 --- /dev/null +++ b/puppet/modules/check_mk/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 + } +} -- cgit v1.2.3