-
Notifications
You must be signed in to change notification settings - Fork 271
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
Feature: Make selboolean management optional #849
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some bikeshedding: manage_selinux
could also imply foreman-selinux
is not installed. How about manage_selinux_booleans
?
ff50d44
to
6561944
Compare
91f6227
to
5472aa1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
It does look like the tests fail because of this. Mid taking a look? |
@@ -15,6 +15,31 @@ | |||
end | |||
end | |||
|
|||
describe 'without manage_selinux_booleans' do | |||
it 'should contain the selinux resource' do | |||
should contain_selboolean('httpd_can_network_connect') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not on systems that don't support SELinux it won't...
0a181fd
to
a07f470
Compare
puppet-foreman/spec/classes/foreman_config_ipa_spec.rb Lines 58 to 74 in 63bba21
|
oh, ok. Seemed a bit redundant to execute the tests on Debian systems though. Don't they take long enough already? |
EDIT: I see. You still need to set |
@bastelfreak Maybe just skip the lot when osfamily != RedHat, to not waste time. |
@alexjfisher added it |
@@ -199,6 +199,8 @@ | |||
# | |||
# $rails_cache_store:: Set rails cache store | |||
# | |||
# $manage_selinux_booleans:: If true AND selinux is enabled on the node, set httpd_can_network_connect so apache works properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about
puppet-foreman/manifests/config.pp
Line 157 in 63bba21
selboolean { ['allow_httpd_mod_auth_pam', 'httpd_dbus_sssd']: |
The name of this parameter would suggest when setting to false all selinux_booleans won't be managed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should I change it? manage_apache_selinux_boolean? manage_httpd_can_network_connect_boolean?
How about the alternative and use |
This has been stale for a while. What should we do with this? |
@ekohl / @alexjfisher Is this just about naming the new parameter? In this case I'd create a new PR based on @bastelfreak's and rebased against master. Btw.: I'd suggest |
@kBite I think it's about naming and consistency. As @alexjfisher pointed out: the current name implies all booleans are managed. Either the parameter name should by changed to imply it only manages a specific boolean or the parameter should manage all booleans. |
No description provided.