Browse Source

Use makedirs for server_cache_dir and server_log_dir

tags/v0.5.0
Kenshir0 10 years ago
parent
commit
774f20b3bf
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      apt-cacher/ng/server.sls
  2. +2
    -2
      pillar.example

+ 2
- 0
apt-cacher/ng/server.sls View File

{{ apt_cacher_ng.server_cache_dir }}: {{ apt_cacher_ng.server_cache_dir }}:
file: file:
- directory - directory
- makedirs: True
- user: {{ apt_cacher_ng.user }} - user: {{ apt_cacher_ng.user }}
- group: {{ apt_cacher_ng.group }} - group: {{ apt_cacher_ng.group }}
- mode: '2755' - mode: '2755'
{{ apt_cacher_ng.server_log_dir }}: {{ apt_cacher_ng.server_log_dir }}:
file: file:
- directory - directory
- makedirs: True
- user: {{ apt_cacher_ng.user }} - user: {{ apt_cacher_ng.user }}
- group: {{ apt_cacher_ng.group }} - group: {{ apt_cacher_ng.group }}
- mode: '2755' - mode: '2755'

+ 2
- 2
pillar.example View File

server_bind_address: 192.168.33.10 server_bind_address: 192.168.33.10


server_port: 3142 server_port: 3142
cache_dir: /var/cache/apt-cacher-ng
log_dir: /var/log/apt-cacher-ng
server_cache_dir: /var/cache/apt-cacher-ng
server_log_dir: /var/log/apt-cacher-ng


# Credentials for apt-cacher-ng Web management interface. # Credentials for apt-cacher-ng Web management interface.
# http://<server_adress>:<server_port>/acng-report.html # http://<server_adress>:<server_port>/acng-report.html

Loading…
Cancel
Save