mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-386: Convert Bitbucket startup to new general systemd role.
This commit is contained in:
@@ -8,6 +8,14 @@
|
||||
atl_product_edition: "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:
|
||||
- role: linux_common
|
||||
- role: aws_common
|
||||
@@ -15,3 +23,4 @@
|
||||
- role: product_common
|
||||
- role: product_install
|
||||
- role: bitbucket_config
|
||||
- role: product_startup
|
||||
|
||||
@@ -14,14 +14,3 @@
|
||||
group: "root"
|
||||
mode: "u=rwX,g=rX,o=rX"
|
||||
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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user