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

This commit is contained in:
Steve Smith
2019-05-31 11:00:59 +10:00
parent 8218547021
commit ebcfd52347
3 changed files with 9 additions and 27 deletions

View File

@@ -8,6 +8,14 @@
atl_product_edition: "bitbucket" atl_product_edition: "bitbucket"
atl_product_user: "bitbucket" atl_product_user: "bitbucket"
atl_startup_systemd_params:
- "UMask=0027"
- "LimitNOFILE=4096"
- "Environment=BITBUCKET_HOME={{ atl_product_home_shared }}"
atl_startup_exec_options:
- "-fg"
- "--no-search"
roles: roles:
- role: linux_common - role: linux_common
- role: aws_common - role: aws_common
@@ -15,3 +23,4 @@
- role: product_common - role: product_common
- role: product_install - role: product_install
- role: bitbucket_config - role: bitbucket_config
- role: product_startup

View File

@@ -14,14 +14,3 @@
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

View File

@@ -1,16 +0,0 @@
[Unit]
Description=Atlassian Bitbucket
After=network-online.target
[Service]
User={{ atl_product_user }}
Group={{ atl_product_user }}
UMask=0027
LimitNOFILE=4096
Environment=BITBUCKET_HOME={{ atl_product_home_shared }}
ExecStart={{ atl_product_installation_current }}/bin/start-bitbucket.sh -fg --no-search
Restart=on-failure
[Install]
WantedBy=multi-target.target