DCD-386: Convert Synchrony startup to new general systemd role.

This commit is contained in:
Steve Smith
2019-05-31 10:57:24 +10:00
parent 9e2eb50a6b
commit 8218547021
7 changed files with 10 additions and 40 deletions

View File

@@ -9,6 +9,14 @@
atl_product_user: "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"
roles:
- role: linux_common
- role: aws_common
@@ -16,5 +24,5 @@
- role: product_common
- role: product_install
- role: confluence_common
# Synchrony is 12-factor, so configuration in the startup
- role: synchrony_startup
- role: synchrony_config
- role: product_startup

View File

@@ -6,8 +6,6 @@
dest: "{{ atl_installation_base }}/bin/start-synchrony"
group: "{{ atl_product_user }}"
mode: "0750"
notify:
- Restart Synchrony
- name: Install the Synchrony environment settings
template:
@@ -15,13 +13,3 @@
dest: "/etc/atl.synchrony"
group: "{{ atl_product_user }}"
mode: "0640"
notify:
- Restart Synchrony
- name: "Install Synchrony service file"
template:
src: "synchrony.service.j2"
dest: "/etc/systemd/system/synchrony.service"
notify:
- Enable Synchrony
- Restart Synchrony

View File

@@ -1,9 +0,0 @@
---
- name: Restart Synchrony
service:
name: synchrony.service
state: restarted
- name: Enable Synchrony
command: systemctl enable synchrony.service

View File

@@ -1,17 +0,0 @@
[Unit]
Description=Atlassian Synchrony Server
After=network-online.target
[Service]
User={{ atl_product_user }}
Group={{ atl_product_user }}
EnvironmentFile=/etc/atl
EnvironmentFile=/etc/atl.synchrony
WorkingDirectory={{ atl_product_installation_current }}/logs/
ExecStart={{ atl_installation_base }}/bin/start-synchrony
Restart=on-failure
[Install]
WantedBy=multi-target.target