-
Notifications
You must be signed in to change notification settings - Fork 1.1k
FM-8140 Add Redhat 8 support #1941
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,8 @@ | |
| "operatingsystemrelease": [ | ||
| "5", | ||
| "6", | ||
| "7" | ||
| "7", | ||
| "8" | ||
| ] | ||
| }, | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,13 +24,20 @@ | |
| ) | ||
| } | ||
| it { is_expected.to contain_package('mod_security_crs') } | ||
| if facts[:os]['release']['major'].to_i > 6 | ||
| if facts[:os]['release']['major'].to_i > 6 && facts[:os]['release']['major'].to_i <= 7 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can do a compare using the gem version functionality. making it a single boolean check |
||
| it { | ||
| is_expected.to contain_file('security.conf').with( | ||
| path: '/etc/httpd/conf.modules.d/security.conf', | ||
| ) | ||
| } | ||
| end | ||
| if facts[:os]['release']['major'].to_i >= 8 | ||
| it { | ||
| is_expected.to contain_file('security.conf').with( | ||
| path: '/etc/httpd/conf.d/security.conf', | ||
| ) | ||
| } | ||
| end | ||
| it { | ||
| is_expected.to contain_file('security.conf') | ||
| .with_content(%r{^\s+SecAuditLogRelevantStatus "\^\(\?:5\|4\(\?!04\)\)"$}) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,12 @@ class { 'epel': | |
| epel_baseurl => "http://osmirror.delivery.puppetlabs.net/epel${::operatingsystemmajrelease}-\\$basearch/RPMS.all", | ||
| epel_mirrorlist => "http://osmirror.delivery.puppetlabs.net/epel${::operatingsystemmajrelease}-\\$basearch/RPMS.all", | ||
| } | ||
| } elsif $::operatingsystemmajrelease == '8' { | ||
| class { 'epel': | ||
| os_maj_release => "7", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need epel for this ? there is no epel for redhat 8 yet. |
||
| epel_baseurl => "http://osmirror.delivery.puppetlabs.net/epel7-\\$basearch/RPMS.all", | ||
| epel_mirrorlist => "http://osmirror.delivery.puppetlabs.net/epel7-\\$basearch/RPMS.all", | ||
| } | ||
| } else { | ||
| class { 'epel': } | ||
| } | ||
|
|
@@ -60,8 +66,13 @@ def apache_settings_hash | |
| apache['error_log'] = 'error_log' | ||
| apache['suphp_handler'] = 'php5-script' | ||
| apache['suphp_configpath'] = 'undef' | ||
|
|
||
| if operatingsystemrelease >= 7 | ||
| if (operatingsystemrelease >= 7 && operatingsystemrelease < 8) && (osfamily == 'redhat') | ||
| apache['version'] = '2.4' | ||
| apache['mod_dir'] = '/etc/httpd/conf.modules.d' | ||
| elsif operatingsystemrelease >= 8 && osfamily == 'redhat' | ||
| apache['version'] = '2.4' | ||
| apache['mod_dir'] = '/etc/httpd/conf.d' | ||
| elsif operatingsystemrelease >= 7 && osfamily == 'oracle' | ||
| apache['version'] = '2.4' | ||
| apache['mod_dir'] = '/etc/httpd/conf.modules.d' | ||
| else | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.