From dbe08d0eac2c20b89e6cd4869ad54b395ddeddfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20H=C3=A4ll?= Date: Fri, 28 Nov 2025 03:49:49 +0100 Subject: [PATCH 1/2] move source to repos --- modules/dhmap/manifests/init.pp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/dhmap/manifests/init.pp b/modules/dhmap/manifests/init.pp index a52e593e..4806ff74 100644 --- a/modules/dhmap/manifests/init.pp +++ b/modules/dhmap/manifests/init.pp @@ -11,15 +11,20 @@ # class dhmap { - + file { '/opt/dhmap': + ensure => directory, + source => 'puppet:///repos/dhmap', + recurse => true, + } + file { 'dhmap': ensure => link, path => '/var/www/html/dhmap', - target => '/scripts/dhmap/', + target => '/opt/dhmap/', } cron { 'update-seatmap': - command => '/scripts/dhmap/src/ipplan2dhmap.py /etc/ipplan.db > /var/www/html/dhmap/data.json', + command => '/opt/dhmap/src/ipplan2dhmap.py /etc/ipplan.db > /var/www/html/dhmap/data.json', user => root, minute => '*', require => File['dhmap'], From 70998f21d44ab3dd24ea5b3f4a44b98d2ef79fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20H=C3=A4ll?= Date: Fri, 28 Nov 2025 03:51:50 +0100 Subject: [PATCH 2/2] Update init.pp --- modules/dhmap/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dhmap/manifests/init.pp b/modules/dhmap/manifests/init.pp index 4806ff74..ef211de8 100644 --- a/modules/dhmap/manifests/init.pp +++ b/modules/dhmap/manifests/init.pp @@ -16,7 +16,7 @@ source => 'puppet:///repos/dhmap', recurse => true, } - + file { 'dhmap': ensure => link, path => '/var/www/html/dhmap',