This uses filtermap (introduced in Ruby 2.7) to avoid constructing an array by pushing values. It also uses startwith to avoid a regex lookup.
Untested now, and since there aren't any acceptance tests running now I'm a bit hesitant on merging this.
This module is using the selmodule
resource type provided by
puppetlabs/selinux_core.
modulesync 7.4.0
selinux::login
fails to run due to two bugs in the selinux_login
provider.
Is presumably a typo in each_values
This logic used to use the title of #{selinux_login_name}_#{selinux_user}
but has been changed to just use the selinux_login_name
(340c17e345d09d64289d35d4b1a18d533dfd3b40).
When we check resource = resources[provider.name]
the inconsistency means if the resource already exists we get the following error.
Warning: Puppet::Type::Selinux_login::ProviderSemanage: Selinux_login['user']: title does not match its login ('user_staff_u' != 'user')
Error: Could not prefetch selinux_login provider 'semanage': undefined method `provider=' for nil:NilClass