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.
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
this is a resubmission of https://github.com/voxpupuli/puppet-selinux/pull/390/ but with https://github.com/voxpupuli/gha-puppet/pull/60
same as #392 , but acceptance tests run on our dedicated runners.
<!--
Thank you for contributing to this project!
-->
<!--
Replace this comment with a description of your pull request.
-->
<!--
Replace this comment with the list of issues or n/a.
Use format:
Fixes #123
Fixes #124
-->