mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-17 02:13:06 -06:00
Merge remote-tracking branch 'origin/master' into feature/AZURE-211-add-sql-server-support-to-crow
This commit is contained in:
@@ -129,7 +129,7 @@ Some notable files and locations:
|
||||
/var/log/ansible-bootstrap.log.
|
||||
* The Jira installation is under /opt/atlassian/jira/<version>and symlinked to
|
||||
/opt/atlassian/jira/current.
|
||||
* The systemd service is configured in /etc/systemd/system/jira.service. Its
|
||||
* The systemd service is configured in /usr/lib/systemd/system/jira.service. Its
|
||||
stdout can be viewed with systemctl status jira.service and journalctl -u
|
||||
jira.service.
|
||||
* Other Tomcat logs can be located under /opt/atlassian/jira/current/logs/...
|
||||
|
||||
@@ -23,3 +23,12 @@
|
||||
mode: "u=rwX,g=rX,o=rX"
|
||||
recurse: true
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- name: Create conf/Catalina directory so catalina.out logging works
|
||||
file:
|
||||
path: "{{ atl_product_installation_versioned }}/conf/Catalina"
|
||||
state: directory
|
||||
mode: "u=rwX,g=rX,o-rwx"
|
||||
owner: "{{ atl_product_user }}"
|
||||
group: "{{ atl_product_user }}"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
@@ -45,6 +45,7 @@ def test_install_permissions(host):
|
||||
assert host.file('/opt/atlassian/confluence/current/conf/server.xml').user == 'root'
|
||||
assert host.file('/opt/atlassian/confluence/current/confluence/WEB-INF/web.xml').user == 'root'
|
||||
|
||||
assert host.file('/opt/atlassian/confluence/current/conf/Catalina').user == 'confluence'
|
||||
assert host.file('/opt/atlassian/confluence/current/logs/').user == 'confluence'
|
||||
assert host.file('/opt/atlassian/confluence/current/work/').user == 'confluence'
|
||||
assert host.file('/opt/atlassian/confluence/current/temp/').user == 'confluence'
|
||||
|
||||
@@ -55,6 +55,7 @@ def test_install_permissions(host):
|
||||
assert host.file('/opt/atlassian/confluence/current/conf/server.xml').user == 'root'
|
||||
assert host.file('/opt/atlassian/confluence/current/confluence/WEB-INF/web.xml').user == 'root'
|
||||
|
||||
assert host.file('/opt/atlassian/confluence/current/conf/Catalina').user == 'confluence'
|
||||
assert host.file('/opt/atlassian/confluence/current/logs/').user == 'confluence'
|
||||
assert host.file('/opt/atlassian/confluence/current/work/').user == 'confluence'
|
||||
assert host.file('/opt/atlassian/confluence/current/temp/').user == 'confluence'
|
||||
|
||||
@@ -97,6 +97,15 @@
|
||||
- "{{ atl_product_installation_versioned }}/work"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- name: Create conf/Catalina directory owned by product so catalina.out logging works
|
||||
file:
|
||||
path: "{{ atl_product_installation_versioned }}/conf/Catalina"
|
||||
state: directory
|
||||
mode: "u=rwX,g=rX,o-rwx"
|
||||
owner: "{{ atl_product_user }}"
|
||||
group: "{{ atl_product_user }}"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- name: Assert baseurl to same as atl_proxy_name
|
||||
postgresql_query:
|
||||
login_host: "{{ atl_db_host }}"
|
||||
|
||||
@@ -94,6 +94,15 @@
|
||||
- "{{ atl_product_installation_versioned }}/apache-tomcat/work"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- name: Create conf/Catalina directory owned by product so catalina.out logging works
|
||||
file:
|
||||
path: "{{ atl_product_installation_versioned }}/conf/Catalina"
|
||||
state: directory
|
||||
mode: "u=rwX,g=rX,o-rwx"
|
||||
owner: "{{ atl_product_user }}"
|
||||
group: "{{ atl_product_user }}"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- name: Symlink Crowd shared home directory
|
||||
file:
|
||||
src: "{{ atl_product_home_shared }}"
|
||||
|
||||
@@ -70,6 +70,7 @@ def test_install_permissions(host):
|
||||
assert host.file('/opt/atlassian/jira-software/current/conf/server.xml').user == 'root'
|
||||
assert host.file('/opt/atlassian/jira-software/current/atlassian-jira/WEB-INF/web.xml').user == 'root'
|
||||
|
||||
assert host.file('/opt/atlassian/jira-software/current/conf/Catalina').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/logs/').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/work/').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/temp/').user == 'jira'
|
||||
|
||||
@@ -76,6 +76,7 @@ def test_install_permissions(host):
|
||||
assert host.file('/opt/atlassian/jira-software/current/conf/server.xml').user == 'root'
|
||||
assert host.file('/opt/atlassian/jira-software/current/atlassian-jira/WEB-INF/web.xml').user == 'root'
|
||||
|
||||
assert host.file('/opt/atlassian/jira-software/current/conf/Catalina').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/logs/').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/work/').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/temp/').user == 'jira'
|
||||
|
||||
@@ -77,6 +77,7 @@ def test_install_permissions(host):
|
||||
assert host.file('/opt/atlassian/jira-software/current/conf/server.xml').user == 'root'
|
||||
assert host.file('/opt/atlassian/jira-software/current/atlassian-jira/WEB-INF/web.xml').user == 'root'
|
||||
|
||||
assert host.file('/opt/atlassian/jira-software/current/conf/Catalina').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/logs/').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/work/').user == 'jira'
|
||||
assert host.file('/opt/atlassian/jira-software/current/temp/').user == 'jira'
|
||||
|
||||
@@ -100,6 +100,15 @@
|
||||
- "{{ atl_product_installation_versioned }}/work"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- name: Create conf/Catalina directory owned by product so catalina.out logging works
|
||||
file:
|
||||
path: "{{ atl_product_installation_versioned }}/conf/Catalina"
|
||||
state: directory
|
||||
mode: "u=rwX,g=rX,o-rwx"
|
||||
owner: "{{ atl_product_user }}"
|
||||
group: "{{ atl_product_user }}"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
- name: Assert baseurl to same as atl_proxy_name
|
||||
postgresql_query:
|
||||
login_host: "{{ atl_db_host }}"
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
pre_tasks:
|
||||
- name: Create systemd dir if necessary
|
||||
file:
|
||||
path: '/etc/systemd/system/'
|
||||
path: '/usr/lib/systemd/system/'
|
||||
state: directory
|
||||
|
||||
roles:
|
||||
|
||||
@@ -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$")
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
pre_tasks:
|
||||
- name: Create systemd dir if necessary
|
||||
file:
|
||||
path: '/etc/systemd/system/'
|
||||
path: '/usr/lib/systemd/system/'
|
||||
state: directory
|
||||
|
||||
roles:
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
pre_tasks:
|
||||
- name: Create systemd dir if necessary
|
||||
file:
|
||||
path: '/etc/systemd/system/'
|
||||
path: '/usr/lib/systemd/system/'
|
||||
state: directory
|
||||
|
||||
roles:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -14,5 +14,7 @@ ExecStart={{ atl_startup_exec_path }}{% for c in atl_startup_exec_options %} {{
|
||||
|
||||
Restart=on-failure
|
||||
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
WantedBy={{ atl_systemd_service_target }}
|
||||
|
||||
Reference in New Issue
Block a user