File tree 2 files changed +19
-0
lines changed
oct/ansible/oct/roles/docker/tasks
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 12
12
dest : /etc/sysconfig/docker-storage-setup
13
13
line : " VG={{ origin_ci_docker_volume_group }}"
14
14
15
+ - name : Set EXTRA_STORAGE_OPTIONS for docker-storage-setup
16
+ lineinfile :
17
+ dest : /etc/sysconfig/docker-storage-setup
18
+ line : " EXTRA_STORAGE_OPTIONS='--storage-opt dm.libdm_log_level=3'"
19
+
15
20
- name : Run docker-storage-setup
16
21
command : docker-storage-setup
Original file line number Diff line number Diff line change 21
21
regexp : ' ^ADD_REGISTRY=(.*)'
22
22
line : ' # ADD_REGISTRY=\1'
23
23
24
+ - name : log to json-file to avoid flooding journald
25
+ lineinfile :
26
+ backrefs : yes
27
+ dest : /etc/sysconfig/docker
28
+ regexp : ' ^OPTIONS=(.*) --log-driver=journald (.*)'
29
+ line : ' OPTIONS=\1 --log-driver=json-file --log-opt max-size=50m \2'
30
+
31
+ - name : turn on docker daemon debugging
32
+ lineinfile :
33
+ backrefs : yes
34
+ dest : /etc/sysconfig/docker
35
+ regexp : " ^OPTIONS='(.*)'"
36
+ line : " OPTIONS='--debug \\ 1'"
37
+
24
38
- name : configure the OpenShift storage
25
39
include : configure_openshift_storage.yml
26
40
You can’t perform that action at this time.
0 commit comments