summaryrefslogtreecommitdiff
path: root/modules/networking/manifests
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/networking/manifests
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 'modules/networking/manifests')
-rw-r--r--modules/networking/manifests/init.pp16
-rw-r--r--modules/networking/manifests/networkd.pp23
-rw-r--r--modules/networking/manifests/networkd_instance.pp21
3 files changed, 0 insertions, 60 deletions
diff --git a/modules/networking/manifests/init.pp b/modules/networking/manifests/init.pp
deleted file mode 100644
index 7dc2450..0000000
--- a/modules/networking/manifests/init.pp
+++ /dev/null
@@ -1,16 +0,0 @@
-class networking (
- Optional[Enum['systemd']] $provider = undef,
- Hash[String,Hash] $items = {},
-) {
-
- # TODO choose a sensible provider here
-
- case $provider {
- 'systemd', undef: {
- include ::networking::networkd
- create_resources(networking::networkd_instance, $items)
- }
- default: {
- }
- }
-}
diff --git a/modules/networking/manifests/networkd.pp b/modules/networking/manifests/networkd.pp
deleted file mode 100644
index dec2e33..0000000
--- a/modules/networking/manifests/networkd.pp
+++ /dev/null
@@ -1,23 +0,0 @@
-class networking::networkd (
- Boolean $notify_ = true,
- Boolean $manage_directory = true,
- String $root = '/',
- String $path = "${root}/etc/systemd/network",
-) {
- if $manage_directory {
- file { $path:
- ensure => directory,
- purge => true,
- recurse => true,
- }
- }
-
- if $notify_ {
- exec { 'reload networkd':
- command => 'systemctl reload-or-restart systemd-networkd',
- path => ['/bin', '/usr/bin',],
- refreshonly => true,
- }
- }
-}
-
diff --git a/modules/networking/manifests/networkd_instance.pp b/modules/networking/manifests/networkd_instance.pp
deleted file mode 100644
index 4089e75..0000000
--- a/modules/networking/manifests/networkd_instance.pp
+++ /dev/null
@@ -1,21 +0,0 @@
-define networking::networkd_instance (
- Hash[String,Hash] $content,
- Enum['present','absent'] $ensure = 'present',
- String $path = $networking::networkd::path,
- String $filename = $name,
- Integer $priority = 20,
- Enum['network', 'netdev', 'link'] $type = 'network',
- String $real_filename = "${priority}-${filename}.${type}",
- String $file = "${path}/${real_filename}",
-) {
-
- include ::networking::networkd
-
- file { $file:
- ensure => $ensure,
- content => epp('networking/unit_file.epp', {
- data => $content
- }),
- notify => if $networking::networkd::notify_ { Exec['reload networkd'] } else { [] },
- }
-}