paulbsd-salt/states/apt/init.sls
Paul Lecuq 741ef05864
All checks were successful
continuous-integration/drone/push Build is passing
updated apt state
2024-09-10 18:34:22 +02:00

29 lines
629 B
Plaintext

---
{%- from "apt/map.jinja" import apt with context %}
{% if apt.enabled %}
apt-deps:
pkg.installed:
- pkgs:
- avahi-daemon
- avahi-utils
- apt-utils
apt-proxy-detect-go:
file.managed:
- name: /usr/local/bin/apt-proxy-detect
- source: {{ apt.fetch_url }}/apt_{{ apt.arch }}
- source_hash: {{ apt.fetch_url }}/hashes
- template: jinja
- mode: "0755"
{% for key, value in apt.config.items() -%}
apt-proxy-{{ key }}:
file.managed:
- name: /etc/apt/apt.conf.d/{{ key }}
- user: root
- group: root
- mode: "0644"
- contents: {{ value }}
{% endfor -%}
{% endif %}