DCD-386: Rework product_startup to support more systemd params and add tests for some corner cases.

This commit is contained in:
Steve Smith
2019-05-31 10:52:58 +10:00
parent 54eaed5469
commit 9e2eb50a6b
15 changed files with 281 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
---
- name: Converge
hosts: all
vars:
atl_product_user: "confluence"
atl_product_family: "confluence"
atl_product_edition: "confluence"
atl_startup_systemd_params:
- "EnvironmentFile=/etc/atl"
- "EnvironmentFile=/etc/atl.synchrony"
- "WorkingDirectory={{ atl_product_installation_current }}/logs/"
atl_startup_exec_options: []
atl_startup_exec_path: "{{ atl_installation_base }}/bin/start-synchrony"
atl_systemd_service_name: "synchrony.service"
atl_startup_enable: false
atl_startup_restart: false
pre_tasks:
- name: Create systemd dir if necessary
file:
path: '/etc/systemd/system/'
state: directory
roles:
- role: product_startup