From 3ff8567b07173415b7ebf38fd2534cd8ac8fc788 Mon Sep 17 00:00:00 2001 From: unman Date: Mon, 5 Aug 2019 10:39:30 +0000 Subject: [PATCH] Salt - caching proxy - template install --- install.sls | 43 +++++++++++++++++++++++++++++++++++++++++++ install.top | 5 +++++ 2 files changed, 48 insertions(+) create mode 100644 install.sls create mode 100644 install.top diff --git a/install.sls b/install.sls new file mode 100644 index 0000000..b54c19b --- /dev/null +++ b/install.sls @@ -0,0 +1,43 @@ +# vim: set syntax=yaml ts=2 sw=2 sts=2 et : +# +# +# +allow-testing: + file.uncomment: + - name: /etc/apt/sources.list.d/qubes-r4.list + - regex: ^deb\s.*qubes-os.org.*-testing + - backup: false + +installed: + pkg.installed: + - pkgs: + - qubes-core-agent-networking + - apt-cacher-ng + +systemd-disable: + cmd.run: + - name: systemctl disable apt-cacher-ng + +systemd-mask: + cmd.run: + - name: systemctl mask apt-cacher-ng + +/etc/apt-cacher-ng/backends_debian: + file.prepend: + - text: https://deb.debian.org/debian + +/etc/apt-cacher-ng/acng.conf: + file.managed: + - source: + - salt://cacher/acng.conf + - user: root + - group: root + - makedirs: True + +cp /lib/apt-cacher-ng/deb_mirrors.gz /etc/apt-cacher-ng/deb_mirrors.gz: + cmd.run: + - runas: root + +cp /lib/apt-cacher-ng/fedora_mirrors /etc/apt-cacher-ng/fedora_mirrors: + cmd.run: + - runas: root diff --git a/install.top b/install.top new file mode 100644 index 0000000..2128900 --- /dev/null +++ b/install.top @@ -0,0 +1,5 @@ +# vim: set syntax=yaml ts=2 sw=2 sts=2 et : + +base: + template-cacher: + - cacher.install