Imran Iqbal
2 年之前
No account linked to committer's email address
共有
3 個文件被更改,包括
4 次插入 和
9 次删除
-
kitchen.yml
-
logrotate/config.sls
-
test/salt/states/cron.sls
|
|
@@ -467,14 +467,14 @@ suites: |
|
|
|
- name: default |
|
|
|
provisioner: |
|
|
|
dependencies: |
|
|
|
- name: states |
|
|
|
path: ./test/salt |
|
|
|
- name: cron |
|
|
|
repo: git |
|
|
|
source: https://github.com/saltstack-formulas/cron-formula.git |
|
|
|
state_top: |
|
|
|
base: |
|
|
|
'G@os_family:Suse or G@os_family:Debian': |
|
|
|
- states.cron |
|
|
|
'*': |
|
|
|
- logrotate._mapdata |
|
|
|
- cron |
|
|
|
- logrotate |
|
|
|
pillars: |
|
|
|
top.sls: |
|
|
@@ -4,7 +4,6 @@ include: |
|
|
|
- logrotate |
|
|
|
|
|
|
|
{% set ns = namespace(hourly=False) %} |
|
|
|
{% set jobs = salt['config.get']('logrotate:jobs', {}) %} |
|
|
|
{% for key, value in logrotate.jobs.items() %} |
|
|
|
{% set contents = value.get('contents', False) %} |
|
|
|
{% if 'hourly' in (contents or value.config) %} |
|
|
@@ -1,4 +0,0 @@ |
|
|
|
|
|
|
|
cron_package: |
|
|
|
pkg.installed: |
|
|
|
- name: cron |