paulbsd-salt/states/apt/init.sls
Paul Lecuq ffd15afa3a
Some checks failed
continuous-integration/drone/push Build is failing
updated apt state
2023-01-17 14:44:10 +01:00

25 lines
544 B
Plaintext

---
{%- from "apt/map.jinja" import apt with context %}
apt-deps:
pkg.installed:
- pkgs:
- avahi-daemon
- avahi-utils
apt-proxy-detect:
file.managed:
- name: /usr/local/bin/apt-proxy-detect.py
- source: salt://apt/templates/apt.py.j2
- template: jinja
- mode: "0755"
{% for itemkey, itemvalue in apt.config.items() -%}
apt-proxy-{{ itemkey }}:
file.managed:
- name: /etc/apt/apt.conf.d/{{ itemkey }}
- user: root
- group: root
- mode: "0644"
- contents: {{ itemvalue }}
{% endfor -%}