summaryrefslogtreecommitdiff
path: root/modules/systemd_mount
diff options
context:
space:
mode:
Diffstat (limited to 'modules/systemd_mount')
-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 %>