trying to use this to disable the posgresql module,
dnf_module_stream { 'postgresql':
module => 'postgresql',
stream => absent,
}
2 issues -
-
without the module parameter, it threw an error
Could not evaluate: Module "" not found
-
After adding the module parameter, it runs, but does nothing.
I'm not a ruby programmer, but I dug into the code anyway. It looks like when I specify disable
ruby is actually sending "reset" to the dnf module command rather than 'disable'.
def disable_stream(module_name)
dnf('-y', 'module', 'reset', module_name)
end
Running this on RHEL 8.10 client
trying to use this to disable the posgresql module,
dnf_module_stream { 'postgresql':
module => 'postgresql',
stream => absent,
}
2 issues -
without the module parameter, it threw an error
Could not evaluate: Module "" not found
After adding the module parameter, it runs, but does nothing.
I'm not a ruby programmer, but I dug into the code anyway. It looks like when I specify disable
ruby is actually sending "reset" to the dnf module command rather than 'disable'.
def disable_stream(module_name)
dnf('-y', 'module', 'reset', module_name)
end
Running this on RHEL 8.10 client