summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-30 03:32:12 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-30 03:45:00 +0100
commit278afb2d94edf89946483d4e5301bb3efc26f097 (patch)
treef7a4cde608a7220368d2f63423b6fe639e6e2dbc /modules
parentMerge nginx for blog{,b} (diff)
downloadwebdav_server-278afb2d94edf89946483d4e5301bb3efc26f097.tar.gz
webdav_server-278afb2d94edf89946483d4e5301bb3efc26f097.tar.xz
Passwords through hiera.
Diffstat (limited to 'modules')
-rw-r--r--modules/pass/lib/puppet/functions/pass.rb21
-rw-r--r--modules/profiles/manifests/webdav_server.pp1
2 files changed, 0 insertions, 22 deletions
diff --git a/modules/pass/lib/puppet/functions/pass.rb b/modules/pass/lib/puppet/functions/pass.rb
deleted file mode 100644
index 176e7e9..0000000
--- a/modules/pass/lib/puppet/functions/pass.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# require 'open3'
-
-Puppet::Functions.create_function(:pass) do
- dispatch :method do
- param 'String', :path
- optional_param 'String', :salt
- end
-
- def method(path, salt = path)
- # Salt was an attempt to not regenerate the entry every run.
- # This however failed, since the command is still run, and puppet
- # doesn't diff betwen runs
- # -salt #{salt}
- #
- # TODO fetch passwords in some slightly more portable way
- `openssl passwd -apr1 $(sudo -Hu hugo pass #{path})`
- # Open3.popen3("sudo -Hu hugo pass #{path}") do |stdin, stdout, stderr, thread|
- # stdout.read.chomp
- # end
- end
-end
diff --git a/modules/profiles/manifests/webdav_server.pp b/modules/profiles/manifests/webdav_server.pp
index 2cd54c1..bd2bc92 100644
--- a/modules/profiles/manifests/webdav_server.pp
+++ b/modules/profiles/manifests/webdav_server.pp
@@ -46,7 +46,6 @@ define profiles::webdav_server (
# add entries to the htpasswd file through
# $ echo "${user}:$(openssl passwd -apr1 $password)" >> .htpasswd
-
$users.each |$pair| {
$user = $pair[0]
$passwd = $pair[1]