debuginfod: vm configuration for running service with ansible-based config file
This commit is contained in:
parent
255b10c922
commit
12dc83f767
2 changed files with 28 additions and 0 deletions
16
files/debuginfod/sysconfig.debuginfod
Normal file
16
files/debuginfod/sysconfig.debuginfod
Normal file
|
@ -0,0 +1,16 @@
|
|||
#
|
||||
DEBUGINFOD_PORT="8002"
|
||||
DEBUGINFOD_VERBOSE="-vv"
|
||||
|
||||
DEBUGINFOD_PATHS="--fdcache-fds=512 -t3600 -R /mnt/fedora_koji_prod/koji/packages -X /data/ -I \.(module_f|fc)(32|33|34|35)[.+].*\.rpm"
|
||||
|
||||
# prefer reliability/durability over performance
|
||||
#DEBUGINFOD_PRAGMAS="-D 'pragma synchronous=full;'"
|
||||
|
||||
# upstream debuginfods
|
||||
#DEBUGINFOD_URLS="http://secondhost:8002 http://thirdhost:8002"
|
||||
#DEBUGINFOD_TIMEOUT="5"
|
||||
#DEBUGINFOD_CACHE_DIR=""
|
||||
|
||||
# Don't use tmpfs /tmp on scarce-RAM machine.
|
||||
TMPDIR=/var/tmp
|
|
@ -28,6 +28,18 @@
|
|||
|
||||
tasks:
|
||||
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||
|
||||
- name: install debuginfod
|
||||
package: name=elfutils-debuginfod state=present
|
||||
|
||||
- name: install debuginfod configuration
|
||||
copy: src="{{ files }}/debuginfod/sysconfig.debuginfod" dest=/etc/sysconfig/debuginfod owner=root group=root mode=644
|
||||
|
||||
- name: ensure debuginfod is enabled and started
|
||||
service:
|
||||
name: debuginfod
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
handlers:
|
||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue