瀏覽代碼

Merge pull request #5 from Kenshir0/mkdirs

Use makedirs for server_cache_dir and server_log_dir
master
Nitin Madhok 10 年之前
父節點
當前提交
bbb6c6b270
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. +2
    -0
      apt-cacher/ng/server.sls
  2. +2
    -2
      pillar.example

+ 2
- 0
apt-cacher/ng/server.sls 查看文件

@@ -28,6 +28,7 @@ apt-cacher-ng:
{{ apt_cacher_ng.server_cache_dir }}:
file:
- directory
- makedirs: True
- user: {{ apt_cacher_ng.user }}
- group: {{ apt_cacher_ng.group }}
- mode: '2755'
@@ -35,6 +36,7 @@ apt-cacher-ng:
{{ apt_cacher_ng.server_log_dir }}:
file:
- directory
- makedirs: True
- user: {{ apt_cacher_ng.user }}
- group: {{ apt_cacher_ng.group }}
- mode: '2755'

+ 2
- 2
pillar.example 查看文件

@@ -18,8 +18,8 @@ apt_cacher_ng:
server_bind_address: 192.168.33.10

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.
# http://<server_adress>:<server_port>/acng-report.html

Loading…
取消
儲存