summaryrefslogtreecommitdiff
path: root/modules/systemd_mount
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-12 02:26:25 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-12 02:26:25 +0100
commitdd28dcf3d620a4ac7d0a1532b812213cf094cd3c (patch)
treea3fa8c8ef446de2bcc2f317bceb4bca868f7e0f0 /modules/systemd_mount
parentMove webdav into profiles. (diff)
downloadwebdav_server-dd28dcf3d620a4ac7d0a1532b812213cf094cd3c.tar.gz
webdav_server-dd28dcf3d620a4ac7d0a1532b812213cf094cd3c.tar.xz
Revert "Move webdav into profiles."
It actually reverts the non-need for the nginx module webdav_ext. Since Omnifocus requires PROPFIND. This reverts commit edf6ffe8b399679ba28cc5e558a6838919dd1ee8.
Diffstat (limited to '')
-rw-r--r--modules/systemd_mount/manifests/init.pp42
-rw-r--r--modules/systemd_mount/templates/automount.epp11
-rw-r--r--modules/systemd_mount/templates/mount.epp13
3 files changed, 0 insertions, 66 deletions
diff --git a/modules/systemd_mount/manifests/init.pp b/modules/systemd_mount/manifests/init.pp
deleted file mode 100644
index ff081e4..0000000
--- a/modules/systemd_mount/manifests/init.pp
+++ /dev/null
@@ -1,42 +0,0 @@
-define systemd_mount (
- String $what, # elrond:/files
- String $where, # /usr/net
- Boolean $automount = false,
- String $wantedBy = 'default.target',
-) {
-
- $mostly_fixed = regsubst($where, '/', '-', 'G')
- $fixed = if $mostly_fixed[0] == '-' {
- $mostly_fixed[1, -1] # drop first char
- } else {
- $mostly_fixed
- }
-
- systemd::unit_file { "${fixed}.mount":
- content => epp('systemd_mount/mount.epp', {
- what => $what,
- where => $where,
- wantedby => if ($automount) { '' } else { "WantedBy=${wantedBy}" },
- }),
- }
-
- if ($automount) {
- systemd::unit_file { "${fixed}.automount":
- content => epp('systemd_mount/automount.epp', {
- where => $where,
- wantedBy => "WantedBy=${wantedBy}",
- }),
- }
-
- service { "${fixed}.automount":
- enable => true,
- ensure => running,
- }
- } else {
- service { "${fixed}.mount":
- enable => true,
- ensure => running,
- }
- }
-
-}
diff --git a/modules/systemd_mount/templates/automount.epp b/modules/systemd_mount/templates/automount.epp
deleted file mode 100644
index c65f2ae..0000000
--- a/modules/systemd_mount/templates/automount.epp
+++ /dev/null
@@ -1,11 +0,0 @@
-<%- | String $where,
- String $wantedBy,
-| -%>
-
-[Unit]
-
-[Install]
-<%= $wantedBy %>
-
-[Automount]
-Where=<%= $where %>
diff --git a/modules/systemd_mount/templates/mount.epp b/modules/systemd_mount/templates/mount.epp
deleted file mode 100644
index 54d191a..0000000
--- a/modules/systemd_mount/templates/mount.epp
+++ /dev/null
@@ -1,13 +0,0 @@
-<%- | String $where,
- String $what,
- String $wantedby,
-| -%>
-
-[Unit]
-
-[Install]
-<%= $wantedby %>
-
-[Mount]
-Where=<%= $where %>
-What=<%= $what %>