Only let puppet manage runnerdata resource if it does not exist
This commit is contained in:
parent
47bb899065
commit
95eaa192ba
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue