Skip to content

Commit

Permalink
rpm: aligning defaults values to version
Browse files Browse the repository at this point in the history
  • Loading branch information
rpelisse committed Oct 9, 2023
1 parent 303ce54 commit cdc7c05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 4 additions & 3 deletions roles/jws/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
jws_apps_to_remove: 'examples'
# root directory of installation
jws_install_dir: /opt
jws_rpm: jws5
jws_rpm_root_dir: /opt/rh/jws5/
jws_rpm: "jws{{ jws_version[0:1] | default('5') }}"
jws_rpm_root_dir: "/opt/rh/jws{{ jws_version[0:1] | default('5') }}/"
jws_rpm_service_name: "jws{{ jws_version[0:1] | default('5') }}-tomcat"

# if True continue installing even if a running tomcat is found
jws_force_install: False
Expand Down Expand Up @@ -101,7 +102,7 @@ jws_modcluster_sticky_session_remove: True
jws_systemd_enabled: False
jws_systemd_script_interpreter: 'bash'
jws_systemd_script_shebang: "#!/bin/{{ jws_systemd_script_interpreter }}"
jws_service_name: 'tomcat'
jws_service_name: "{{ (jws_install_method == 'rpm') | ternary(jws_rpm_service_name, 'tomcat') }}"
jws_service_systemd: "/usr/lib/systemd/system/{{ jws_service_name }}.service"
jws_service_systemd_type: "simple"
jws_selinux_enabled: False
Expand Down
4 changes: 0 additions & 4 deletions roles/jws/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,6 @@ argument_specs:
default: False
description: "Install JWS most recent cumulative patch for requested version"
type: "bool"
jws_service_name:
default: "jws5-tomcat"
description: "Name for the systemd unit"
type: "str"
jws_selinux_enabled:
default: True
description: "Enable selinux policy enforcement for JWS"
Expand Down
2 changes: 1 addition & 1 deletion roles/jws/tasks/install/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
when:
- jws_rpm_root_dir_enable_stat is defined and jws_rpm_root_dir_enable_stat.stat is defined
- jws_rpm_root_dir_enable_stat.stat.exists is defined
- not jws_rpm_root_dir_enable_stat
- not jws_rpm_root_dir_enable_stat.stat.exists
notify:
- Ensure Tomcat runs under systemd

Expand Down

0 comments on commit cdc7c05

Please sign in to comment.