mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
DCD-386: Convert Synchrony startup to new general systemd role.
This commit is contained in:
@@ -9,6 +9,14 @@
|
|||||||
atl_product_user: "confluence"
|
atl_product_user: "confluence"
|
||||||
atl_product_edition: "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:
|
roles:
|
||||||
- role: linux_common
|
- role: linux_common
|
||||||
- role: aws_common
|
- role: aws_common
|
||||||
@@ -16,5 +24,5 @@
|
|||||||
- role: product_common
|
- role: product_common
|
||||||
- role: product_install
|
- role: product_install
|
||||||
- role: confluence_common
|
- role: confluence_common
|
||||||
# Synchrony is 12-factor, so configuration in the startup
|
- role: synchrony_config
|
||||||
- role: synchrony_startup
|
- role: product_startup
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
dest: "{{ atl_installation_base }}/bin/start-synchrony"
|
dest: "{{ atl_installation_base }}/bin/start-synchrony"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
notify:
|
|
||||||
- Restart Synchrony
|
|
||||||
|
|
||||||
- name: Install the Synchrony environment settings
|
- name: Install the Synchrony environment settings
|
||||||
template:
|
template:
|
||||||
@@ -15,13 +13,3 @@
|
|||||||
dest: "/etc/atl.synchrony"
|
dest: "/etc/atl.synchrony"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
mode: "0640"
|
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
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Restart Synchrony
|
|
||||||
service:
|
|
||||||
name: synchrony.service
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
- name: Enable Synchrony
|
|
||||||
command: systemctl enable synchrony.service
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user