mirror of
https://github.com/unman/shaker.git
synced 2025-08-21 20:18:10 -04:00
Salt - caching proxy - template install
This commit is contained in:
parent
dd73503447
commit
3ff8567b07
2 changed files with 48 additions and 0 deletions
43
install.sls
Normal file
43
install.sls
Normal file
|
@ -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
|
5
install.top
Normal file
5
install.top
Normal file
|
@ -0,0 +1,5 @@
|
|||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
|
||||
base:
|
||||
template-cacher:
|
||||
- cacher.install
|
Loading…
Add table
Add a link
Reference in a new issue