This commit is contained in:
2026-11-09 15:56:23 +01:00
parent 1260006886
commit febfcbd9e9
4 changed files with 13 additions and 2 deletions
+9
View File
@@ -3,7 +3,15 @@ class shiori::compose (
String $shiori_data,
String $timezone,
String $http_secret_key,
String $shi_version,
) {
file { $shiori_data:
ensure => directory,
owner => $docker_user,
group => $docker_user,
mode => '0750',
}
file { "/home/${docker_user}/.docker/shiori/docker-compose.yaml":
ensure => file,
owner => $docker_user,
@@ -13,6 +21,7 @@ class shiori::compose (
'shiori_data' => $shiori_data,
'timezone' => $timezone,
'http_secret_key' => $http_secret_key,
'shi_version' => $shi_version,
}),
}
}
+1 -1
View File
@@ -1,6 +1,5 @@
class shiori::docker_pre (
String $docker_user,
Array[String] $packages = [],
)
{
#Docker-Gruppe anlegen (docker.io postinst legt sie auch an — hier garantiert idempotent)
@@ -22,6 +21,7 @@ class shiori::docker_pre (
mode => '0755',
purge => true, # WICHTIG: Löscht alle Dateien, die NICHT von Puppet angelegt wurden!
force => true, # Erlaubt das Löschen von fremden Unterordnern, falls jemand welche angelegt hat
recurse => true,
}
~> exec { 'shiori-ordner-geaendert':
command => '/usr/bin/echo "GEAENDERT: Ordner /home/${docker_user}/.docker/shiori wurde erstellt/geaendert"',
+1
View File
@@ -6,4 +6,5 @@ class shiori (
message => $message,
}
include shiori::docker_pre
include shiori::compose
}
+2 -1
View File
@@ -1,11 +1,12 @@
<%- | String $shiori_data,
String $timezone,
String $http_secret_key,
String $shi_version,
-%>
services:
shiori:
image: ghcr.io/go-shiori/shiori:latest
image: ghcr.io/go-shiori/shiori:<%= $shi_version %>
container_name: shiori
restart: unless-stopped
ports: