Commit 11ce8a8a authored by Christopher Harm's avatar Christopher Harm

Adding hawt.io console to activemq deployment

parent ed4558e9
......@@ -51,6 +51,29 @@
- name: configure chkconfig to run the activemq startup script at the correct run-levels
shell: chkconfig --level 2345 activemq on creates=/etc/rc2.d/S80activemq
- name: download the hawt.io war file
get_url: url={{ hawtio_download_url }} dest=~/{{ hawtio_archive_name }}
sha256sum={{ hawtio_archive_sha256_sum }}
- name: create the hawtio webapps directory
file:
path: "{{ activemq_home_directory }}/webapps/hawtio"
state: directory
- name: extract the hawt.io war file
unarchive:
src: "~/{{ hawtio_archive_name }}"
remote_src: True
dest: "{{ activemq_home_directory }}/webapps/hawtio"
creates: "{{ activemq_home_directory }}/webapps/hawtio/manifest.json"
- name: override the hawtio auth defaults
lineinfile:
dest: "{{ activemq_home_directory }}/bin/env"
regexp: "^ACTIVEMQ_OPTS="
insertafter: "#ACTIVEMQ_OPTS"
line: "ACTIVEMQ_OPTS=\"$ACTIVEMQ_OPTS -Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal\""
- name: make sure activemq is started
service: name="{{ activemq_service_name }}" state="started"
......@@ -63,3 +86,5 @@
- lineinfile: "dest='/etc/ansible/facts.d/build_vars.fact' regexp='activemq_inst_directory' line='activemq_inst_directory={{ activemq_inst_directory }}'"
- lineinfile: "dest='/etc/ansible/facts.d/build_vars.fact' regexp='activemq_home_directory' line='activemq_home_directory={{ activemq_home_directory }}'"
- lineinfile: "dest='/etc/ansible/facts.d/build_vars.fact' regexp='activemq_rar_url' line='activemq_rar_url={{ activemq_rar_url }}'"
......@@ -15,3 +15,9 @@ activemq_inst_directory: /opt
activemq_home_directory: "{{ activemq_inst_directory }}/activemq"
activemq_rar_url: http://repo1.maven.org/maven2/org/apache/activemq/activemq-rar/{{ activemq_version }}/activemq-rar-{{ activemq_version }}.rar
hawtio_version: 1.5.0
hawtio_archive_name: hawtio-default-offline-{{ hawtio_version }}.war
hawtio_archive_sha256_sum: 522d8df3c09a76fe36e808edc362c353a70c2dc3f4615f4970eb8cdc903b425b.
hawtio_download_url: https://oss.sonatype.org/content/repositories/public/io/hawt/hawtio-default-offline/{{ hawtio_version }}/{{ hawtio_archive_name }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment