Defaults empty hash to kernel_modules and sysctl_settings
Set empty hash by default to kernel_modules and sysctl_settings so catalog won't fail if the parameters are not set in Hiera. Change-Id: I24ab535b01e2724af457d39c03cd990c574ef0aa
This commit is contained in:
@@ -19,8 +19,12 @@
|
||||
#
|
||||
class tripleo::profile::base::kernel {
|
||||
|
||||
create_resources(kmod::load, hiera('kernel_modules'), { })
|
||||
create_resources(sysctl::value, hiera('sysctl_settings'), { })
|
||||
Exec <| tag == 'kmod::load' |> -> Sysctl <| |>
|
||||
if hiera('kernel_modules', undef) {
|
||||
create_resources(kmod::load, hiera('kernel_modules'), { })
|
||||
}
|
||||
if hiera('sysctl_settings', undef) {
|
||||
create_resources(sysctl::value, hiera('sysctl_settings'), { })
|
||||
}
|
||||
Exec <| tag == 'kmod::load' |> -> Sysctl <| |>
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user