Browse Source

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

* Semi-automated using https://github.com/myii/ssf-formula/pull/401
tags/v0.13.0
Imran Iqbal 3 years ago
parent
commit
4cf2808840
No account linked to committer's email address
3 changed files with 4 additions and 9 deletions
  1. +4
    -4
      kitchen.yml
  2. +0
    -1
      logrotate/config.sls
  3. +0
    -4
      test/salt/states/cron.sls

+ 4
- 4
kitchen.yml View File

- name: default - name: default
provisioner: provisioner:
dependencies: dependencies:
- name: states
path: ./test/salt
- name: cron
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:

+ 0
- 1
logrotate/config.sls View File

- 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) %}

+ 0
- 4
test/salt/states/cron.sls View File


cron_package:
pkg.installed:
- name: cron

Loading…
Cancel
Save