diff --git a/files/debuginfod/sysconfig.debuginfod b/files/debuginfod/sysconfig.debuginfod new file mode 100644 index 0000000000..5e8d2f1e9d --- /dev/null +++ b/files/debuginfod/sysconfig.debuginfod @@ -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 diff --git a/playbooks/groups/debuginfod.yml b/playbooks/groups/debuginfod.yml index cb847a86fd..45057df029 100644 --- a/playbooks/groups/debuginfod.yml +++ b/playbooks/groups/debuginfod.yml @@ -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"