This commit is contained in:
Azra Sulthana
2019-07-11 05:34:52 +00:00
parent f86f7d52f2
commit b960c1c4cb
20 changed files with 327 additions and 4 deletions

View File

@@ -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: []

View File

@@ -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

View 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