forked from evolix/ansible-roles
Split tomcat-instance in tomcat + tomcat-instance
This commit is contained in:
parent
08b4b2fa4a
commit
c3db08e6db
|
@ -5,7 +5,6 @@ Install a Tomcat Instance with an independent Unix user and use of systemd user
|
||||||
## Available variables
|
## Available variables
|
||||||
|
|
||||||
**tomcat_instance_name **: Name of Tomcat instance and proprietary user and group (***required***)
|
**tomcat_instance_name **: Name of Tomcat instance and proprietary user and group (***required***)
|
||||||
**tomcat_instance_root:** Root dir for Tomcat instance (default: /srv/tomcat)
|
|
||||||
**tomcat_instance_port**: HTTP port for Tomcat instance and uid/gid for Tomcat user and group (default: 8080)
|
**tomcat_instance_port**: HTTP port for Tomcat instance and uid/gid for Tomcat user and group (default: 8080)
|
||||||
**tomcat_instance_shutdown**: Port for Tomcat shutdown (default: HTTP port + 1)
|
**tomcat_instance_shutdown**: Port for Tomcat shutdown (default: HTTP port + 1)
|
||||||
**tomcat_instance_ram**: Max memory for Tomcat instance (default: 512)
|
**tomcat_instance_ram**: Max memory for Tomcat instance (default: 512)
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
---
|
---
|
||||||
tomcat_instance_root: '/srv/tomcat'
|
tomcat_instance_root: '/srv/tomcat'
|
||||||
tomcat_instance_port: 8080
|
|
||||||
tomcat_instance_ram: 512
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: Evolix
|
author: Evolix
|
||||||
description: Configuration of a Tomcat instance.
|
description: Configuration of a Tomcat instance.
|
||||||
|
@ -13,7 +14,5 @@ galaxy_info:
|
||||||
versions:
|
versions:
|
||||||
- jessie
|
- jessie
|
||||||
|
|
||||||
dependencies: []
|
dependencies:
|
||||||
# List your role dependencies here, one per line.
|
- tomcat
|
||||||
# Be sure to remove the '[]' above if you add dependencies
|
|
||||||
# to this list.
|
|
||||||
|
|
|
@ -1,15 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- include: tomcat.yml
|
|
||||||
|
|
||||||
- include: nagios.yml
|
|
||||||
|
|
||||||
- include: check.yml
|
- include: check.yml
|
||||||
|
|
||||||
- include: user.yml
|
- include: user.yml
|
||||||
|
|
||||||
- include: systemd.yml
|
- include: systemd.yml
|
||||||
|
|
||||||
- include: alias.yml
|
- include: alias.yml
|
||||||
|
|
||||||
- include: bootstrap.yml
|
- include: bootstrap.yml
|
||||||
|
|
28
tomcat/.kitchen.yml
Normal file
28
tomcat/.kitchen.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
driver:
|
||||||
|
name: docker
|
||||||
|
privileged: true
|
||||||
|
use_sudo: false
|
||||||
|
|
||||||
|
provisioner:
|
||||||
|
name: ansible_playbook
|
||||||
|
hosts: test-kitchen
|
||||||
|
roles_path: ../
|
||||||
|
ansible_verbose: true
|
||||||
|
require_ansible_source: false
|
||||||
|
require_chef_for_busser: false
|
||||||
|
idempotency_test: true
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- name: debian
|
||||||
|
driver_config:
|
||||||
|
image: evolix/ansible:2.2.1
|
||||||
|
|
||||||
|
suites:
|
||||||
|
- name: default
|
||||||
|
provisioner:
|
||||||
|
name: ansible_playbook
|
||||||
|
playbook: ./tests/test.yml
|
||||||
|
|
||||||
|
transport:
|
||||||
|
max_ssh_sessions: 6
|
7
tomcat/README.md
Normal file
7
tomcat/README.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# tomcat
|
||||||
|
|
||||||
|
Install a Tomcat depndancies for multiple tomcat instance.
|
||||||
|
|
||||||
|
## Available variables
|
||||||
|
|
||||||
|
**tomcat_instance_root:** Root dir for Tomcat instance (default: /srv/tomcat)
|
2
tomcat/defaults/main.yml
Normal file
2
tomcat/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
tomcat_instance_root: '/srv/tomcat'
|
19
tomcat/meta/main.yml
Normal file
19
tomcat/meta/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
galaxy_info:
|
||||||
|
author: Evolix
|
||||||
|
description: Installation of a Tomcat.
|
||||||
|
|
||||||
|
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
|
||||||
|
|
||||||
|
license: GPLv2
|
||||||
|
|
||||||
|
min_ansible_version: 2.2
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- name: Debian
|
||||||
|
versions:
|
||||||
|
- jessie
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
# List your role dependencies here, one per line.
|
||||||
|
# Be sure to remove the '[]' above if you add dependencies
|
||||||
|
# to this list.
|
3
tomcat/tasks/main.yml
Normal file
3
tomcat/tasks/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
- include: packages.yml
|
||||||
|
- include: nagios.yml
|
|
@ -27,6 +27,6 @@
|
||||||
|
|
||||||
- name: Copy Tomcat instance check
|
- name: Copy Tomcat instance check
|
||||||
template:
|
template:
|
||||||
src: templates/check_tomcat_instance.sh.j2
|
src: check_tomcat_instance.sh.j2
|
||||||
dest: /usr/local/lib/nagios/plugins/check_tomcat_instance.sh
|
dest: /usr/local/lib/nagios/plugins/check_tomcat_instance.sh
|
||||||
mode: "0755"
|
mode: "0755"
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
- name: Copy systemd unit
|
- name: Copy systemd unit
|
||||||
copy:
|
copy:
|
||||||
src: 'files/tomcat.service'
|
src: 'tomcat.service'
|
||||||
dest: "/etc/systemd/user/tomcat.service"
|
dest: "/etc/systemd/user/tomcat.service"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
notify: systemd reload
|
notify: systemd reload
|
Loading…
Reference in a new issue