DCD-386: Rework product_startup to support more systemd params and add tests for some corner cases.

This commit is contained in:
Steve Smith
2019-05-31 10:52:58 +10:00
parent 54eaed5469
commit 9e2eb50a6b
15 changed files with 281 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
---
- name: Converge
hosts: all
vars:
atl_product_user: "bitbucket"
atl_product_family: "stash"
atl_product_edition: "bitbucket"
atl_startup_systemd_params:
- "UMask=0027"
- "LimitNOFILE=4096"
- "Environment=BITBUCKET_HOME={{ atl_product_home_shared }}"
atl_startup_exec_options:
- "-fg"
- "--no-search"
atl_startup_enable: false
atl_startup_restart: false
pre_tasks:
- name: Create systemd dir if necessary
file:
path: '/etc/systemd/system/'
state: directory
roles:
- role: product_startup