mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
ITOPSENG-647 put product service file in the default path to allow systemctl mask and other linking operations to work properly
This commit is contained in:
@@ -7,7 +7,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
|
||||
|
||||
def test_service_file(host):
|
||||
f = host.file('/etc/systemd/system/bitbucket.service')
|
||||
f = host.file('/usr/lib/systemd/system/bitbucket.service')
|
||||
assert f.contains("^ExecStart=/opt/atlassian/bitbucket/current/bin/start-bitbucket.sh -fg --no-search$")
|
||||
assert f.contains("^UMask=0027$")
|
||||
assert f.contains("^LimitNOFILE=4096$")
|
||||
|
||||
@@ -7,7 +7,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
|
||||
|
||||
def test_service_file(host):
|
||||
f = host.file('/etc/systemd/system/jira-software.service')
|
||||
f = host.file('/usr/lib/systemd/system/jira-software.service')
|
||||
assert f.contains("^ExecStart=/opt/atlassian/jira-software/current/bin/start-jira.sh -fg$")
|
||||
assert f.user == 'root'
|
||||
assert f.group == 'root'
|
||||
|
||||
@@ -7,7 +7,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
|
||||
|
||||
def test_service_file(host):
|
||||
f = host.file('/etc/systemd/system/synchrony.service')
|
||||
f = host.file('/usr/lib/systemd/system/synchrony.service')
|
||||
assert f.contains("^ExecStart=/opt/atlassian/bin/start-synchrony$")
|
||||
assert f.contains("^EnvironmentFile=/etc/atl$")
|
||||
assert f.contains("^EnvironmentFile=/etc/atl.synchrony$")
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
- name: "Install systemd service file"
|
||||
template:
|
||||
src: "product.service.j2"
|
||||
dest: "/etc/systemd/system/{{ atl_systemd_service_name }}"
|
||||
dest: "/usr/lib/systemd/system/{{ atl_systemd_service_name }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0640
|
||||
|
||||
Reference in New Issue
Block a user