Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
Infrastructure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EIT-SWE
Infrastructure
Commits
11ce8a8a
Commit
11ce8a8a
authored
Apr 07, 2017
by
Christopher Harm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding hawt.io console to activemq deployment
parent
ed4558e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
roles/activemq/tasks/main.yml
roles/activemq/tasks/main.yml
+25
-0
roles/activemq/vars/main.yml
roles/activemq/vars/main.yml
+6
-0
No files found.
roles/activemq/tasks/main.yml
View file @
11ce8a8a
...
@@ -51,6 +51,29 @@
...
@@ -51,6 +51,29 @@
-
name
:
configure chkconfig to run the activemq startup script at the correct run-levels
-
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
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
-
name
:
make sure activemq is started
service
:
name="{{ activemq_service_name }}" state="started"
service
:
name="{{ activemq_service_name }}" state="started"
...
@@ -63,3 +86,5 @@
...
@@ -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_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_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
}}'"
-
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
regexp='activemq_rar_url'
line='activemq_rar_url={{
activemq_rar_url
}}'"
roles/activemq/vars/main.yml
View file @
11ce8a8a
...
@@ -15,3 +15,9 @@ activemq_inst_directory: /opt
...
@@ -15,3 +15,9 @@ activemq_inst_directory: /opt
activemq_home_directory
:
"
{{
activemq_inst_directory
}}/activemq"
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
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 }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment