Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Don't use default password for ActiveMQ admin #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
args:
creates: "{{ activemq_install_root }}/activemq"

- name: Remove jetty-realm.properties
file:
path: "{{ activemq_install_root }}/activemq/conf/jetty-realm.properties"
state: absent

- name: Set ActiveMQ admin password
template:
src: "jetty-realm.properties.j2"
dest: "{{ activemq_install_root }}/activemq/conf/jetty-realm.properties"

# Transitional removal of old-style init.d symlink
# This task can be removed in the future.
- name: Remove init.d symlink
Expand Down
21 changes: 21 additions & 0 deletions templates/jetty-realm.properties.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------

# Defines users that can access the web (console, demo, etc.)
# username: password [,rolename ...]
admin: {{ activemq_admin_password }}, admin
user: user, user