Move podman-compose from bin in users homedir to /usr/local/bin

This commit is contained in:
Magnus Andersson 2024-01-24 15:27:53 +01:00
parent 83dde57c6d
commit 954fe43594
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -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,