From b47053f0e99f3d9f4b3f1f5b19002af998f8ad38 Mon Sep 17 00:00:00 2001 From: Nils Olof Paulsson <nils.olof.paulsson@liu.se> Date: Mon, 17 Jun 2024 09:12:19 +0200 Subject: [PATCH] fixaliases --- manifests/hosts/forskarmatch2.pp | 3 +++ manifests/hosts/juliusum2.pp | 10 ++++++++++ manifests/init.pp | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 manifests/hosts/juliusum2.pp diff --git a/manifests/hosts/forskarmatch2.pp b/manifests/hosts/forskarmatch2.pp index 0167c2d..2ac21d1 100644 --- a/manifests/hosts/forskarmatch2.pp +++ b/manifests/hosts/forskarmatch2.pp @@ -4,4 +4,7 @@ class kmaccess::hosts::forskarmatch2 { # before => User['kmaccess'], # } # User <| title == 'kmaccess' |> { groups +> 'docker' } + profiles::letsencrypt::cert { $fqdn: + addn_domains => ['forskarmatch.ida.liu.se'], + } } diff --git a/manifests/hosts/juliusum2.pp b/manifests/hosts/juliusum2.pp new file mode 100644 index 0000000..54e757b --- /dev/null +++ b/manifests/hosts/juliusum2.pp @@ -0,0 +1,10 @@ +class kmaccess::hosts::juliusum2 { + # package { 'docker': + # ensure => 'installed', + # before => User['kmaccess'], + # } + # User <| title == 'kmaccess' |> { groups +> 'docker' } + profiles::letsencrypt::cert { $fqdn: + addn_domains => ['juliusum.ida.liu.se'], + } +} diff --git a/manifests/init.pp b/manifests/init.pp index 49615f5..f362e06 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -11,7 +11,7 @@ class kmaccess { if defined($cfg) { include $cfg } - profiles::letsencrypt::cert { $fqdn : } + @user { 'kmaccess' : ensure => 'present', shell => '/sbin/nologin', -- GitLab