Pārlūkot izejas kodu

Split map.jinja

tags/v0.5.0^2
Alexander Weidinger pirms 6 gadiem
vecāks
revīzija
2a44983f5b
3 mainītis faili ar 29 papildinājumiem un 19 dzēšanām
  1. +16
    -0
      apt-cacher/ng/defaults.yaml
  2. +12
    -19
      apt-cacher/ng/map.jinja
  3. +1
    -0
      apt-cacher/ng/osfamilymap.yaml

+ 16
- 0
apt-cacher/ng/defaults.yaml Parādīt failu

@@ -0,0 +1,16 @@
apt_cacher_ng:
server_address: localhost
server_bind_address: 0.0.0.0
server_port: 3142
server_extra_config:
server_config: /etc/apt-cacher-ng/zzz_acng.conf
server_cache_dir: /var/cache/apt-cacher-ng
server_log_dir: /var/log/apt-cacher-ng
user: apt-cacher-ng
group: apt-cacher-ng
pkg: apt-cacher-ng
service: apt-cacher-ng
credentials: /etc/apt-cacher-ng/security.conf
client_config: /etc/apt/apt.conf.d/80proxy
https_proxy: DIRECT
local_mirrors: []

+ 12
- 19
apt-cacher/ng/map.jinja Parādīt failu

@@ -1,19 +1,12 @@
{% set apt_cacher_ng = salt['grains.filter_by']({
'Debian': {
'server_address': 'localhost',
'server_bind_address': '0.0.0.0',
'server_port': '3142',
'server_extra_config': '',
'server_config': '/etc/apt-cacher-ng/zzz_acng.conf',
'server_cache_dir': '/var/cache/apt-cacher-ng',
'server_log_dir': '/var/log/apt-cacher-ng',
'user': 'apt-cacher-ng',
'group': 'apt-cacher-ng',
'pkg': 'apt-cacher-ng',
'service': 'apt-cacher-ng',
'credentials': '/etc/apt-cacher-ng/security.conf',
'client_config': '/etc/apt/apt.conf.d/80proxy',
'https_proxy': 'DIRECT',
'local_mirrors': [],
},
}, merge=salt['pillar.get']('apt_cacher_ng')) %}
{% import_yaml "apt-cacher/ng/defaults.yaml" as defaults %}
{% import_yaml "apt-cacher/ng/osfamilymap.yaml" as osfamilymap %}

{%- set apt_cacher_ng = salt['grains.filter_by'](
defaults,
merge=salt['grains.filter_by'](
osfamilymap,
grain='os_family',
merge=salt['pillar.get']('apt_cacher_ng', {}),
),
base='apt_cacher_ng')
%}

+ 1
- 0
apt-cacher/ng/osfamilymap.yaml Parādīt failu

@@ -0,0 +1 @@
Debian: {}

Notiek ielāde…
Atcelt
Saglabāt