summaryrefslogtreecommitdiff
path: root/modules/profiles/manifests/common.pp
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/profiles/manifests/common.pp
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/profiles/manifests/common.pp')
-rw-r--r--modules/profiles/manifests/common.pp43
1 files changed, 0 insertions, 43 deletions
diff --git a/modules/profiles/manifests/common.pp b/modules/profiles/manifests/common.pp
deleted file mode 100644
index 4cb5226..0000000
--- a/modules/profiles/manifests/common.pp
+++ /dev/null
@@ -1,43 +0,0 @@
-class profiles::common (
- String $timezone,
- Array[String] $locales = [ 'en_US.UTF-8', ],
-) {
-
- file_line { 'hosts ourself':
- ensure => present,
- line => "::1\t${facts['name']}\t${::fqdn}",
- path => '/etc/hosts',
- }
-
- file { '/etc/localtime':
- ensure => link,
- target => "/usr/share/zoneinfo/${timezone}",
- }
-
- # TODO possibly check in /usr/share/i18n/locales if file exists
- # there
-
- $fixed_locales = ($locales.map |$locale| {
- if $locale =~ /^[^.]*\.(.*)$/ {
- "${locale} ${1}"
- } else {
- "${locale} UTF-8"
- }
- } + [ '' ])
-
- file { '/etc/locale.gen':
- content => $fixed_locales.join("\n")
- } ~> exec { 'locale-gen':
- path => [ '/bin', '/usr/bin', ],
- refreshonly => true,
- }
-
- file { 'Default locales':
- path => '/etc/locale.conf',
- content => @(EOF)
- LANG=en_US.UTF-8
- LC_TIME=sv_SE.UTF-8
- | EOF
- }
-
-}