Unverified Commit 4cf28088 authored by Imran Iqbal's avatar Imran Iqbal
Browse files

ci(kitchen): use `cron-formula` dependency instead of `cron` state

* Semi-automated using https://github.com/myii/ssf-formula/pull/401
parent cd4cd1d6
...@@ -467,14 +467,14 @@ suites: ...@@ -467,14 +467,14 @@ suites:
- name: default - name: default
provisioner: provisioner:
dependencies: dependencies:
- name: states - name: cron
path: ./test/salt repo: git
source: https://github.com/saltstack-formulas/cron-formula.git
state_top: state_top:
base: base:
'G@os_family:Suse or G@os_family:Debian':
- states.cron
'*': '*':
- logrotate._mapdata - logrotate._mapdata
- cron
- logrotate - logrotate
pillars: pillars:
top.sls: top.sls:
......
...@@ -4,7 +4,6 @@ include: ...@@ -4,7 +4,6 @@ include:
- logrotate - logrotate
{% set ns = namespace(hourly=False) %} {% set ns = namespace(hourly=False) %}
{% set jobs = salt['config.get']('logrotate:jobs', {}) %}
{% for key, value in logrotate.jobs.items() %} {% for key, value in logrotate.jobs.items() %}
{% set contents = value.get('contents', False) %} {% set contents = value.get('contents', False) %}
{% if 'hourly' in (contents or value.config) %} {% if 'hourly' in (contents or value.config) %}
......
cron_package:
pkg.installed:
- name: cron
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment