forked from dseira/cron-formula
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(saltcheck): update for
cron
instead of cron_settings
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
{%- from "cron/saltcheck-tests/map.jinja" import cron_settings with context %} | ||
{%- from "cron/saltcheck-tests/map.jinja" import cron with context %} | ||
|
||
verify_cron.install: | ||
module_and_function: pkg.version | ||
args: | ||
- {{ cron_settings.pkg }} | ||
- {{ cron.pkg }} | ||
assertion: assertNotEmpty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
{%- from "cron/saltcheck-tests/map.jinja" import cron_settings with context %} | ||
{%- from "cron/saltcheck-tests/map.jinja" import cron with context %} | ||
|
||
cron.service: | ||
{%- if 'enabled' not in cron_settings or ( 'enabled' in cron_settings and cron_settings.enabled ) %} | ||
{%- if 'enabled' not in cron or ( 'enabled' in cron and cron.enabled ) %} | ||
service.running: | ||
- name: {{ cron_settings.service }} | ||
- name: {{ cron.service }} | ||
- enable: True | ||
{%- else %} | ||
service.dead: | ||
- name: {{ cron_settings.service }} | ||
- name: {{ cron.service }} | ||
- enable: False | ||
{%- endif %} |