Skip to content

Commit 5ebf20a

Browse files
author
Christopher M. Neill
committed
Merge branch 'master' into remove-shrinkwrap-from-api
2 parents 51ae9d4 + d9f637a commit 5ebf20a

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

ansible/group_vars/all.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ loggly_token: f673760d-e0b3-4a93-a15e-2862ea074f91
2828
loggly_password: TebejAcutHeH_Ch0tR9ru4anaT6CRu*3
2929
loggly_username: ops
3030

31+
##
32+
## cores and logs
33+
##
34+
35+
core_file_dir: /var/log/core
36+
3137
##
3238
## shared application configs
3339
##

ansible/roles/docker/tasks/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@
1616
owner=root
1717
group=root
1818

19+
- name: create core file dir
20+
become: true
21+
when: docker_config == "runnable" and core_file_dir != "/var/log"
22+
tags: coreDump
23+
file:
24+
path="{{ core_file_dir }}"
25+
state=directory
26+
user=root
27+
group=root
28+
mode=0755
29+
1930
- name: change core dump path
2031
become: true
2132
when: docker_config == "runnable"
@@ -24,7 +35,7 @@
2435
name=kernel.core_pattern
2536
reload=true
2637
state=present
27-
value="/var/log/core.%h.%e.%t"
38+
value="{{ core_file_dir }}/core.%h.%e.%t"
2839

2940
- name: install aufs with linux-image-extra-{{ ansible_kernel }}
3041
become: true

0 commit comments

Comments
 (0)