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', mode => '0400',
} }
file { "/opt/${username}${x}/runnerdata": unless File["/opt/${username}${x}/runnerdata"] {
ensure => directory, file { "/opt/${username}${x}/runnerdata":
mode => '0700', ensure => directory,
#owner => "${username}${x}", mode => '0700',
#group => "${username}${x}", owner => "${username}${x}",
group => "${username}${x}",
}
} }
file { "/opt/${username}${x}/runnerdata/config.yml": file { "/opt/${username}${x}/runnerdata/config.yml":