From 126000688631a8a655a2c67c0e238d8c4348c18c Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Mon, 9 Nov 2026 15:40:34 +0100 Subject: [PATCH] init --- manifests/compose.pp | 18 ++++++++++++++++++ .../docker-compose.yaml.epp | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 manifests/compose.pp rename manifests/templates/docker-compose.yaml => templates/docker-compose.yaml.epp (82%) diff --git a/manifests/compose.pp b/manifests/compose.pp new file mode 100644 index 0000000..c43db42 --- /dev/null +++ b/manifests/compose.pp @@ -0,0 +1,18 @@ +class shiori::compose ( + String $docker_user, + String $shiori_data, + String $timezone, + String $http_secret_key, +) { + file { "/home/${docker_user}/.docker/shiori/docker-compose.yaml": + ensure => file, + owner => $docker_user, + group => $docker_user, + mode => '0640', + content => epp('shiori/docker-compose.yaml.epp', { + 'shiori_data' => $shiori_data, + 'timezone' => $timezone, + 'http_secret_key' => $http_secret_key, + }), + } +} diff --git a/manifests/templates/docker-compose.yaml b/templates/docker-compose.yaml.epp similarity index 82% rename from manifests/templates/docker-compose.yaml rename to templates/docker-compose.yaml.epp index bcb1b61..f193e60 100644 --- a/manifests/templates/docker-compose.yaml +++ b/templates/docker-compose.yaml.epp @@ -1,3 +1,8 @@ +<%- | String $shiori_data, + String $timezone, + String $http_secret_key, +-%> + services: shiori: image: ghcr.io/go-shiori/shiori:latest