Only let puppet manage runnerdata resource if it does not exist

This commit is contained in:
Magnus Andersson 2024-01-24 17:17:28 +01:00
parent 47bb899065
commit 95eaa192ba
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -63,11 +63,13 @@ class podmanrunner::runner (
mode => '0400',
}
file { "/opt/${username}${x}/runnerdata":
ensure => directory,
mode => '0700',
#owner => "${username}${x}",
#group => "${username}${x}",
unless File["/opt/${username}${x}/runnerdata"] {
file { "/opt/${username}${x}/runnerdata":
ensure => directory,
mode => '0700',
owner => "${username}${x}",
group => "${username}${x}",
}
}
file { "/opt/${username}${x}/runnerdata/config.yml":