Merge pull request #10 from myii/chore/standardise-structure

ci(platform): enable `arch-base-latest`
This commit is contained in:
Imran Iqbal 2019-10-15 05:04:40 +01:00 committed by GitHub
commit 99da50f3c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 52 additions and 8 deletions

View File

@ -63,7 +63,7 @@ jobs:
# - env: INSTANCE=default-fedora-30-2019-2-py3 # - env: INSTANCE=default-fedora-30-2019-2-py3
# - env: INSTANCE=default-opensuse-leap-15-2019-2-py3 # - env: INSTANCE=default-opensuse-leap-15-2019-2-py3
- env: INSTANCE=default-amazonlinux-2-2019-2-py2 - env: INSTANCE=default-amazonlinux-2-2019-2-py2
# - env: INSTANCE=default-arch-base-latest-2019-2-py2 - env: INSTANCE=default-arch-base-latest-2019-2-py2
# - env: INSTANCE=default-debian-9-2018-3-py2 # - env: INSTANCE=default-debian-9-2018-3-py2
# - env: INSTANCE=default-ubuntu-1604-2018-3-py2 # - env: INSTANCE=default-ubuntu-1604-2018-3-py2
# - env: INSTANCE=default-centos-7-2018-3-py2 # - env: INSTANCE=default-centos-7-2018-3-py2

View File

@ -1,4 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: ft=yaml # vim: ft=yaml
--- ---
cron: {} cron:
pkg: cronie
service: cron

View File

@ -12,12 +12,11 @@
--- ---
Debian: Debian:
pkg: cron pkg: cron
service: cron
RedHat: RedHat:
pkg: cronie
service: crond service: crond
Suse: Suse: {}
pkg: cronie
service: cron Arch:
service: cronie

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
--- ---
cron: cron:
enabled: true # Default enabled: true # Default

View File

@ -7,6 +7,14 @@ control 'Cron service' do
case os[:family] case os[:family]
when 'debian', 'suse' when 'debian', 'suse'
'cron' 'cron'
# Catch remaining `linux` platforms to identify by `name` at the end
when 'linux'
case os[:name]
when 'arch'
'cronie'
else
'crond'
end
else else
'crond' 'crond'
end end

View File

@ -1,2 +1,35 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
--- ---
cron: {} cron:
enabled: true # Default
tasks:
task1:
type: present # Default
name: echo test > /tmp/test
user: root
minute: 0
hour: 0
daymonth: 7
month: 1
dayweek: 6
comment: comment1
task2:
type: absent # To remove that crontask
name: echo task2 > /tmp/test2
user: root
minute: random
hour: 1
task3:
type: absent
name: echo task3 > /tmp/test3
user: root
special: '@hourly'
comment: comment3
task4:
type: present # run every 5 minutes
name: echo task4 > /tmp/test4
user: root
minute: '*/5'
hour: '*'
comment: comment4