1
0
Fork 0
mirror of synced 2024-11-17 22:45:34 -05:00
formula-logrotate/logrotate/service.sls
Gilles Dartiguelongue f0cf823177 Split init.sls into config, install and service
Following the template-formula example.
2017-02-14 17:13:57 +01:00

17 lines
348 B
Text

# -*- coding: utf-8 -*-
# vim: ft=sls
{% from "logrotate/map.jinja" import logrotate with context %}
include:
- logrotate.config
- logrotate.install
logrotate:
service.running:
- name: {{ logrotate.service }}
- enable: True
- require:
- pkg: logrotate-pkg
- file: logrotate_config
- file: logrotate_directory