Feature: Make selboolean management optional#849
Feature: Make selboolean management optional#849bastelfreak wants to merge 1 commit intotheforeman:masterfrom
Conversation
ekohl
left a comment
There was a problem hiding this comment.
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
|
It does look like the tests fail because of this. Mid taking a look? |
|
|
||
| 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.
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 |
| # | ||
| # $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.
What about
puppet-foreman/manifests/config.pp
Line 157 in 63bba21
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.
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.