From 954fe43594d5b6bc926e9de334cb0fe7ad958aa1 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Wed, 24 Jan 2024 15:27:53 +0100 Subject: [PATCH] Move podman-compose from bin in users homedir to /usr/local/bin --- manifests/runner.pp | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/manifests/runner.pp b/manifests/runner.pp index 5cb399c..7db4914 100644 --- a/manifests/runner.pp +++ b/manifests/runner.pp @@ -19,6 +19,16 @@ class podmanrunner::runner ( provider => apt, } + file { "/usr/local/bin/podman-compose": + ensure => file, + mode => '0555', + source => 'puppet:///modules/podmanrunner/podman-compose', + owner => "root", + group => "root", + } + + + range(1,$replicas).each |$x| { user { "${username}${x}": @@ -37,20 +47,6 @@ class podmanrunner::runner ( mode => '0400', } - file { "/opt/${username}${x}/bin": - ensure => directory, - mode => '0700', - owner => "${username}${x}", - group => "${username}${x}", - } - - file { "/opt/${username}${x}/bin/podman-compose": - ensure => file, - mode => '0500', - source => 'puppet:///modules/podmanrunner/podman-compose', - owner => "${username}${x}", - group => "${username}${x}", - } file { "/opt/${username}${x}/runnerimage": ensure => directory,