fix: Test default resource attributes

This commit is contained in:
christiangoeschel 2025-03-26 21:16:06 -04:00
parent 3af9e4d90f
commit 1ba240d531
Signed by: christiangoeschel
GPG Key ID: 9C5DF8B5AF67BFB2
3 changed files with 16 additions and 1 deletions
modules/configs/manifests

@ -0,0 +1,7 @@
class configs::dummy {
file { default: *=> $configs::params::file_defaults;
"/etc/dummy.conf":
ensure => file,
;
}
}

@ -1,3 +1,4 @@
class configs {
class configs inherits configs::params {
include configs::users
include configs::dummy
}

@ -0,0 +1,7 @@
class configs::params {
$file_defaults = {
mode => "0644",
owner => "root",
group => "root",
}
}