Skip to content

Commit

Permalink
Merge pull request #86 from idealista/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sorobon authored Oct 28, 2020
2 parents 9f72cfe + ff50d7e commit 41b1113
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ tomcat_war_to_deploy_from_maven:
# If using Ansible 2.6 or newer, this is settable as well
# verify_checksum: always

tomcat_download_wars: true
tomcat_download_wars: false
tomcat_war_to_deploy_urls:
- url: https://tomcat.apache.org/tomcat-8.5-doc/appdev/sample/sample.war
name: sample.war
Expand Down
18 changes: 18 additions & 0 deletions molecule/default/group_vars/tomcat/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,21 @@ tomcat_agents_config:
}

tomcat_logs_path: /var/log/tomcat

tomcat_download_from_maven_wars: true
tomcat_war_to_deploy_from_maven:
- name: hello-servlet.war
group_id: "io.fabric8.jube.images.examples"
artifact_id: "hello-servlet"
extension: "war"
repository_url: "https://repo.maven.apache.org/maven2/"
# If using Ansible 2.6 or newer, this is settable as well
# verify_checksum: always

tomcat_download_wars: true
tomcat_war_to_deploy_urls:
- url: https://tomcat.apache.org/tomcat-8.5-doc/appdev/sample/sample.war
name: sample.war
tomcat_local_wars: false
tomcat_war_to_deploy_path:
- "{{ playbook_dir }}/sample.war"
2 changes: 2 additions & 0 deletions molecule/default/tests/test_tomcat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ file:
exists: true
/opt/tomcat/webapps/sample.war:
exists: true
/opt/tomcat/webapps/hello-servlet.war:
exists: true

command:
java -cp /opt/tomcat/lib/catalina.jar org.apache.catalina.util.ServerInfo | grep 'Server version':
Expand Down
2 changes: 1 addition & 1 deletion tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- name: Tomcat | Install download war from maven require package
apt:
package: "['python-lxml']"
package: "python-lxml"
state: present
notify: restart tomcat
when: tomcat_download_from_maven_wars
Expand Down

0 comments on commit 41b1113

Please sign in to comment.