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
|
|
|
|
|
2023-07-02 21:32:49 +02:00
|
|
|
apt-proxy-detect-py:
|
2022-07-27 23:49:54 +02:00
|
|
|
file.managed:
|
|
|
|
- name: /usr/local/bin/apt-proxy-detect.py
|
2022-12-03 00:07:39 +01:00
|
|
|
- source: salt://apt/templates/apt.py.j2
|
2022-07-27 23:49:54 +02:00
|
|
|
- template: jinja
|
|
|
|
- mode: "0755"
|
|
|
|
|
2023-07-02 21:32:49 +02:00
|
|
|
apt-proxy-detect-go:
|
2021-09-25 16:06:38 +02:00
|
|
|
file.managed:
|
2023-07-02 21:32:49 +02:00
|
|
|
- name: /usr/local/bin/apt-proxy-detect
|
|
|
|
- source: {{ apt.fetch_url }}/apt_{{ apt.arch }}
|
|
|
|
- template: jinja
|
|
|
|
- skip_verify: true
|
|
|
|
- mode: "0755"
|
|
|
|
|
|
|
|
{% for key, value in apt.config.items() -%}
|
|
|
|
apt-proxy-{{ key }}:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/apt/apt.conf.d/{{ key }}
|
2021-09-25 16:06:38 +02:00
|
|
|
- user: root
|
|
|
|
- group: root
|
2022-06-10 00:13:19 +02:00
|
|
|
- mode: "0644"
|
2023-07-02 21:32:49 +02:00
|
|
|
- contents: {{ value }}
|
2023-01-17 14:44:10 +01:00
|
|
|
{% endfor -%}
|