-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AMW-250 Fix common_criteria_demo on Olympus
- Loading branch information
1 parent
3f5492a
commit 37b829d
Showing
12 changed files
with
162 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
vars_files: | ||
- vars.yml | ||
tasks: | ||
- name: Display Ansible version | ||
debug: | ||
msg: "Ansible version is {{ ansible_version.full }}" | ||
|
||
- name: Install required dependencies | ||
package: | ||
name: sudo | ||
|
||
pre_tasks: | ||
- name: "Download latest Apache Tomcat zip file from {{ download_url }}." | ||
get_url: | ||
url: "{{ download_url }}" | ||
dest: "{{ tomcat_zipfile }}" | ||
when: | ||
- download_url is defined | ||
name: sudo |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,41 @@ | ||
--- | ||
- name: "Validate Common Criteria recommendations on Tomcat installation" | ||
hosts: all | ||
become: yes | ||
become_user: root | ||
vars_files: | ||
- ../molecule/tomcat/vars.yml | ||
- vars.yml | ||
collections: | ||
- middleware_automation.jws | ||
- middleware_automation.common_criteria | ||
roles: | ||
- jws | ||
- jws_common_criteria | ||
tasks: | ||
- name: "Ensure user {{ jws_user }} exists." | ||
ansible.builtin.user: | ||
name: "{{ jws_user }}" | ||
groups: "{{ jws_group }}" | ||
state: present | ||
|
||
- name: "Ensure group {{ jws_group }} exists." | ||
ansible.builtin.group: | ||
name: "{{ jws_group }}" | ||
state: present | ||
|
||
pre_tasks: | ||
- name: "Download latest Apache Tomcat zip file from {{ download_url }}." | ||
get_url: | ||
url: "{{ download_url }}" | ||
dest: "{{ tomcat_zipfile }}" | ||
when: | ||
- download_url is defined | ||
become: yes | ||
|
||
post_tasks: | ||
- name: "Ensure Tomcat is started and listen to appropriate port" | ||
wait_for: | ||
host: "{{ override_tomcat_listen_http_bind_address }}" | ||
port: "{{ override_tomcat_listen_http_port | default(8080) }}" | ||
when: | ||
- tomcat_systemd_enabled is defined | ||
- tomcat_systemd_enabled is defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
#tomcat vars | ||
jws_setup: true | ||
tomcat_version: 9.0.50 | ||
download_url: https://archive.apache.org/dist/tomcat/tomcat-9/v{{ tomcat_version }}/bin/apache-tomcat-{{ tomcat_version }}.zip | ||
jws_install_dir: /opt | ||
tomcat_zipfile: "{{ jws_install_dir }}/tomcat.zip" | ||
jws_home: "{{ jws_install_dir }}/apache-tomcat-{{ tomcat_version }}" | ||
jws_java_version: 1.8.0 | ||
jws_listen_http_bind_address: 127.0.0.1 | ||
jws_listen_http_port: 8081 | ||
|
||
#wildfly vars | ||
install_name: "{{ override_install_name | default('wildfly') }}" | ||
wildfly_user: "{{ install_name }}" | ||
wildfly_group: "{{ install_name }}" | ||
wildfly_config_base: standalone-ha.xml | ||
wildfly_version: '31.0.1.Final' | ||
wildfly_install_workdir: '/opt/wildfly/' | ||
wildfly_home: "{{ wildfly_install_workdir }}wildfly-{{ wildfly_version }}/" | ||
wildfly_java_home: '/usr/lib/jvm/jre-openjdk/' | ||
wildfly_java_version: 11 | ||
wildfly_java_package_name: "java-{{ wildfly_java_version }}-openjdk-headless" |