Skip to content

Commit

Permalink
Merge pull request #112 from csutherl/make-selinux-optional
Browse files Browse the repository at this point in the history
Make selinux policy for JWS optional like the zip installation docs suggest it is
  • Loading branch information
guidograzioli committed May 9, 2022
2 parents 45651de + f1c12c7 commit 87238cc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/jws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Role Defaults
|`jws_rhn_base_url`| Customer Portal Base URL for archive download | `https://access.redhat.com/jbossnetwork/restricted/softwareDownload.html?softwareId=` |
|`jws_version`| Version of JWS to install | `5.6.0` |
|`jws_apply_patches`| Install JWS most recent cumulative patch for requested version | `False` |
|`jws_selinux_enabled` | Enable selinux policy enforcement for JWS | `True` |
|`jws_home`| Default installation path for JWS archives | `{{ tomcat_install_dir }}/jws-{{ jws_version.split('.')[0] }}.{{ jws_version.split('.')[1] }}/tomcat` |
|`tomcat_home`| Target installation directory, defaulting to tomcat or JWS archive path, or can be overridden | `{{ jws_home if tomcat_install_method == 'rhn_zipfiles' else tomcat_zipfile_home }}` |
|`tomcat_user`| posix user account for service | `tomcat` |
Expand Down
1 change: 1 addition & 0 deletions roles/jws/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jws_home: "{{ tomcat_install_dir }}/jws-{{ jws_version.split('.')[0] }}.{{ jws_v
jws_rhn_base_url: https://access.redhat.com/jbossnetwork/restricted/softwareDownload.html?softwareId=
# if True automatically apply the most recent cumulative patch
jws_apply_patches: False
jws_selinux_enabled: True

tomcat_user: tomcat
tomcat_uid: 53
Expand Down
4 changes: 4 additions & 0 deletions roles/jws/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ argument_specs:
default: False
description: "Install JWS most recent cumulative patch for requested version"
type: "bool"
jws_selinux_enabled:
# line 27 of jws/defaults/main.yml
default: True
description: "Enable selinux policy enforcement for JWS"
tomcat_version:
# line 7 of jws/defaults/main.yml
default: "9.0.60"
Expand Down
1 change: 1 addition & 0 deletions roles/jws/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
when:
- tomcat.install_method is defined
- tomcat.install_method != "rpm"
- jws_selinux_enabled and tomcat.install_method == "rhn_zipfiles"

- name: "Remove apps"
file:
Expand Down

0 comments on commit 87238cc

Please sign in to comment.