Browse Source

Change states to use short-dec style

tags/v0.5.0
Seth House 10 years ago
parent
commit
7f2436b712
2 changed files with 7 additions and 14 deletions
  1. +6
    -12
      apt-cacher/ng/server.sls
  2. +1
    -2
      apt-cacher/server.sls

+ 6
- 12
apt-cacher/ng/server.sls View File

{% from "apt-cacher/ng/map.jinja" import apt_cacher_ng with context %} {% from "apt-cacher/ng/map.jinja" import apt_cacher_ng with context %}


apt-cacher-ng: apt-cacher-ng:
pkg:
- installed
pkg.installed:
- name: {{ apt_cacher_ng.pkg }} - name: {{ apt_cacher_ng.pkg }}
service:
- running
service.running:
- name: {{ apt_cacher_ng.service }} - name: {{ apt_cacher_ng.service }}
- enable: True - enable: True
- watch: - watch:
- file: {{ apt_cacher_ng.server_log_dir }} - file: {{ apt_cacher_ng.server_log_dir }}


{{ apt_cacher_ng.server_config }}: {{ apt_cacher_ng.server_config }}:
file:
- managed
file.managed:
- user: root - user: root
- group: root - group: root
- mode: '644' - mode: '644'
- template: jinja - template: jinja


{{ apt_cacher_ng.server_cache_dir }}: {{ apt_cacher_ng.server_cache_dir }}:
file:
- directory
file.directory:
- makedirs: True - 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:
- directory
file.directory:
- makedirs: True - 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.credentials }}: {{ apt_cacher_ng.credentials }}:
file:
- managed
file.managed:
- user: {{ apt_cacher_ng.user }} - user: {{ apt_cacher_ng.user }}
- group: {{ apt_cacher_ng.group }} - group: {{ apt_cacher_ng.group }}
- mode: '600' - mode: '600'

+ 1
- 2
apt-cacher/server.sls View File

- apache - apache


apt-cacher: apt-cacher:
pkg:
- installed
pkg.installed: []
service.running: service.running:
- enable: True - enable: True
- require: - require:

Loading…
Cancel
Save