blob: fb239da97a0dbd8bf8f297d97b148ba4feb491c6 [file] [log] [blame]
{%- from "linux/map.jinja" import system with context %}
{%- if system.enabled %}
{%- for key in system.ld.library %}
/etc/ld.so.conf.d/{{ key }}.conf:
file.managed:
- user: root
- group: root
- mode: 644
- contents: |
{% for val in system.ld.library[key] -%}
{{ val }}
{% endfor %}
- watch_in:
- cmd: ldconfig_update
{% endfor %}
ldconfig_update:
cmd.wait:
- name: ldconfig
{% endif %}