From ca94d62c623c08ba987e205868891176133e91b6 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Thu, 31 Oct 2024 15:38:17 +0100 Subject: [PATCH] Make sure root owns sunet-cdnp binary --- global/overlay/etc/puppet/modules/cdn/manifests/cache.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp index 08b9893..dcd501a 100644 --- a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp +++ b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp @@ -150,6 +150,13 @@ class cdn::cache( refreshonly => true, } + file { "${sunet_cdnp_dir}/sunet-cdnp": + command => "tar -xzf ${sunet_cdnp_file} sunet-cdnp", + owner => 'root', + group => 'root', + mode => '0755', + } + file { '/usr/local/bin/sunet-cdnp': ensure => link, target => "${sunet_cdnp_dir}/sunet-cdnp",