mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
Merged in ITPLAT-399/fix-thread-dump-problem (pull request #121)
ITPLAT-399 Stop systemd-cleanup removing /tmp/java_pid* files required for thread dumps Approved-by: Ben Partridge Approved-by: Adam Brokes
This commit is contained in:
2
Pipfile
2
Pipfile
@@ -9,7 +9,7 @@ boto3 = "==1.9.242"
|
|||||||
botocore = "==1.12.242"
|
botocore = "==1.12.242"
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
molecule = "==2.20.2"
|
molecule = "==3.2.2"
|
||||||
docker = "==4.1.0"
|
docker = "==4.1.0"
|
||||||
six = "*"
|
six = "*"
|
||||||
taskcat = "*"
|
taskcat = "*"
|
||||||
|
|||||||
3
roles/linux_common/files/java.conf
Normal file
3
roles/linux_common/files/java.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Exclude java-hooks
|
||||||
|
x /tmp/hsperfdata_*
|
||||||
|
x /tmp/.java_pid*
|
||||||
@@ -26,3 +26,19 @@
|
|||||||
uid: "{{ atl_product_user_uid }}"
|
uid: "{{ atl_product_user_uid }}"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
comment: "Product runtime user"
|
comment: "Product runtime user"
|
||||||
|
|
||||||
|
- name: Stop systemd-cleanup deleting the jvm socket file
|
||||||
|
copy:
|
||||||
|
src: java.conf
|
||||||
|
dest: "/usr/lib/tmpfiles.d/java.conf"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "644"
|
||||||
|
register: systemd_config_changed
|
||||||
|
|
||||||
|
- name: Force systemd to reload daemon configuration
|
||||||
|
systemd:
|
||||||
|
daemon_reload: yes
|
||||||
|
when:
|
||||||
|
- systemd_config_changed is defined
|
||||||
|
- molecule_yml is not defined # molecule cannot run systemctl commands and notest doesn't work for handlers
|
||||||
|
|||||||
Reference in New Issue
Block a user