mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-386: Add service file.
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
template:
|
template:
|
||||||
src: bitbucket.properties.j2
|
src: bitbucket.properties.j2
|
||||||
dest: "{{ atl_product_home_shared }}/bitbucket.properties"
|
dest: "{{ atl_product_home_shared }}/bitbucket.properties"
|
||||||
|
owner: "{{ atl_product_user }}"
|
||||||
|
group: "{{ atl_product_user }}"
|
||||||
|
|
||||||
- name: Remove write permissions from installation directory
|
- name: Remove write permissions from installation directory
|
||||||
file:
|
file:
|
||||||
@@ -12,3 +14,14 @@
|
|||||||
group: "root"
|
group: "root"
|
||||||
mode: "u=rwX,g=rX,o=rX"
|
mode: "u=rwX,g=rX,o=rX"
|
||||||
recurse: true
|
recurse: true
|
||||||
|
|
||||||
|
- name: "Install Bitbucket service file"
|
||||||
|
template:
|
||||||
|
src: "bitbucket.service.j2"
|
||||||
|
dest: "/etc/systemd/system/bitbucket.service"
|
||||||
|
|
||||||
|
- name: Enable Bitbucket
|
||||||
|
service:
|
||||||
|
name: bitbucket.service
|
||||||
|
enabled: true
|
||||||
|
state: started
|
||||||
|
|||||||
14
roles/bitbucket_config/templates/bitbucket.service.j2
Normal file
14
roles/bitbucket_config/templates/bitbucket.service.j2
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Atlassian Bitbucket
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User={{ atl_product_user }}
|
||||||
|
Group={{ atl_product_user }}
|
||||||
|
|
||||||
|
Environment=BITBUCKET_HOME={{ atl_product_home_shared }}
|
||||||
|
ExecStart={{ atl_product_installation_current }}/bin/start-bitbucket.sh -fg
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-target.target
|
||||||
Reference in New Issue
Block a user