This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrei Darashenka
committed
Aug 18, 2017
1 parent
8b5e2a1
commit 393c44e
Showing
4 changed files
with
33 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,17 @@ instance. The following variables are legit to configure per instance. | |
* ``service_file``: Init system configuration file per instance, e.g. tomcat.conf for Upstart (string, default: ``{{ tomcat_default_service_file }}`` (see ``vars/service/*.yml``)) | ||
* ``service_name``: Init system service name per instance, e.g. [email protected] for Systemd (string, default: ``{{ tomcat_default_service_name }}`` (see ``vars/service/*.yml``)) | ||
* ``umask``: Allow to configure umask for Tomcat instance (oct, default: ``|default('')``) | ||
* ``systemd_default_instance``: Allow to configure default instance for Systemd templated service (string, default: ``None`` }} | ||
* ``systemd_default_instance``: Allow to configure default instance for Systemd templated service (string, default: ``None`` | ||
* ``auth_roles``: which roles should be created in tomcat-users.xml (list of strings, default: []) | ||
* ``auth_users``: which users should be created in tomcat-users.xml (list of auth_users, see below. default: []) | ||
|
||
### auth_users | ||
|
||
Users to be configured in tomcat_users.xml | ||
|
||
* ``name``: username | ||
* ``password``: password in plaintext | ||
* ``roles``: which roles should be configured | ||
|
||
Configuring more than one instance requires to configure some of the | ||
variables documented above per instance. Please see example playbooks | ||
|
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
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,9 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<tomcat-users> | ||
{% for role in item.auth_roles|default([]) %} | ||
<role rolename="{{role}}"/> | ||
{% endfor %} | ||
{% for user in item.auth_users|default([]) %} | ||
<user username="{{ user.name }}" password="{{ user.password }}" roles="{{ user.roles }}"/> | ||
{% endfor %} | ||
</tomcat-users> |