voxpupuli/puppet-selinux

Unable to manage ports on RHEL/CentOS 8

blackknight36 opened this issue · 2 comments

This module throws an error on hosts running RedHat or CentOS 8 when attempting to manage selinux ports. An error is returned as follows.

Error: Could not find a suitable provider for selinux_port

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.13.0
  • Ruby: 2.5.5p157
  • Distribution: CentOS 8.1.1911
  • Module version: 3.1.1-rc0 (master branch)

How to reproduce (e.g Puppet code you use)

This error occurs using an selinux::port resource. For example:

selinux::port { 'ssh_port':
            ensure   => 'present',
            seltype  => 'ssh_port_t',
            protocol => 'tcp',
            port     => 22,
     }

Not sure if this is related to #311

It appears that this is no longer an issue. I was able to create an selinux::port resource on a node running CentOS 8 with puppet-agent 6.15.0 without any errors.