mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
crowd
This commit is contained in:
@@ -8,7 +8,9 @@ atl_startup_script_map:
|
||||
jira: "start-jira.sh"
|
||||
confluence: "start-confluence.sh"
|
||||
stash: "start-bitbucket.sh"
|
||||
crowd: "start_crowd.sh"
|
||||
|
||||
crowd_startup_exec_path: "{{ atl_product_installation_current }}/{{ atl_startup_script_map[atl_product_family] }}"
|
||||
atl_startup_exec_path: "{{ atl_product_installation_current }}/bin/{{ atl_startup_script_map[atl_product_family] }}"
|
||||
atl_startup_exec_options: ["-fg"]
|
||||
atl_startup_systemd_params: []
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
template:
|
||||
src: "product.service.j2"
|
||||
dest: "/etc/systemd/system/{{ atl_systemd_service_name }}"
|
||||
when: atl_product_edition != "crowd"
|
||||
notify:
|
||||
- Enable Product
|
||||
- Restart Product
|
||||
|
||||
- name: "Install systemd service file for crowd"
|
||||
template:
|
||||
src: "crowd.service.j2"
|
||||
dest: "/etc/systemd/system/{{ atl_systemd_service_name }}"
|
||||
when: atl_product_edition == "crowd"
|
||||
notify:
|
||||
- Enable Product
|
||||
- Restart Product
|
||||
|
||||
19
roles/product_startup/templates/crowd.service.j2
Normal file
19
roles/product_startup/templates/crowd.service.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Atlassian {{ atl_product_edition }}
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User={{ atl_product_user }}
|
||||
Group={{ atl_product_user }}
|
||||
|
||||
{% for p in atl_startup_systemd_params -%}
|
||||
{{ p }}
|
||||
{% endfor %}
|
||||
|
||||
ExecStart={{ crowd_startup_exec_path }}{% for c in atl_startup_exec_options %} {{ c }}{% endfor %}
|
||||
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-target.target
|
||||
|
||||
Reference in New Issue
Block a user