浏览代码

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 2 年前
父节点
当前提交
4cf2808840
没有帐户链接到提交者的电子邮件
共有 3 个文件被更改,包括 4 次插入9 次删除
  1. +4
    -4
      kitchen.yml
  2. +0
    -1
      logrotate/config.sls
  3. +0
    -4
      test/salt/states/cron.sls

+ 4
- 4
kitchen.yml 查看文件

@@ -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:

+ 0
- 1
logrotate/config.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) %}

+ 0
- 4
test/salt/states/cron.sls 查看文件

@@ -1,4 +0,0 @@

cron_package:
pkg.installed:
- name: cron

正在加载...
取消
保存