Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update legacy facts #406

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/facter/selinux_python_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# DEPRECATED: Determine the path to python on the system
Facter.add(:selinux_python_command) do
confine osfamily: 'RedHat'
confine 'os.family': 'RedHat'
setcode do
if File.exist? '/usr/libexec/platform-python'
# RHEL 8 / CentOS 8
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/selinux_fcontext/semanage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

commands semanage: 'semanage'
# semanage fails when SELinux is disabled, so let's not pretend to work in that situation.
confine selinux: true
confine 'os.selinux.enabled': true

mk_resource_methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
defaultfor kernel: 'Linux'

commands semanage: 'semanage'
confine selinux: true
confine 'os.selinux.enabled': true

mk_resource_methods

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/selinux_login/semanage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

defaultfor kernel: 'Linux'
# semanage fails when SELinux is disabled, so let's not pretend to work in that situation.
confine selinux: true
confine 'os.selinux.enabled': true

# Determine the appropriate python command
def self.python_command
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/selinux_permissive/semanage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

defaultfor kernel: 'Linux'
# SELinux must be enabled. Is there a way to get a better error message?
confine selinux: true
confine 'os.selinux.enabled': true

commands semanage: 'semanage'

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/selinux_port/semanage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

defaultfor kernel: 'Linux'
# SELinux must be enabled. Is there a way to get a better error message?
confine selinux: true
confine 'os.selinux.enabled': true

# Determine the appropriate python command
def self.python_command
Expand Down