2020-07-10 00:58:55 +02:00
|
|
|
---
|
2021-09-25 16:06:38 +02:00
|
|
|
{%- from "apt/map.jinja" import apt with context %}
|
2022-07-27 23:49:54 +02:00
|
|
|
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/apt.py.j2
|
|
|
|
- template: jinja
|
|
|
|
- mode: "0755"
|
|
|
|
|
2022-06-10 00:13:19 +02:00
|
|
|
{% for itemkey, itemvalue in apt.config.items() -%}
|
|
|
|
apt-proxy-{{ itemkey }}:
|
2021-09-25 16:06:38 +02:00
|
|
|
file.managed:
|
2022-07-27 23:49:54 +02:00
|
|
|
- name: /etc/apt/apt.conf.d/{{ itemkey }}
|
2021-09-25 16:06:38 +02:00
|
|
|
- user: root
|
|
|
|
- group: root
|
2022-06-10 00:13:19 +02:00
|
|
|
- mode: "0644"
|
|
|
|
- contents: {{ itemvalue.content }}
|
2021-09-25 16:06:38 +02:00
|
|
|
{% endfor -%}
|