Merge pull request #10 from myii/chore/standardise-structure
ci(platform): enable `arch-base-latest`
This commit is contained in:
commit
99da50f3c2
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: ft=yaml
|
# vim: ft=yaml
|
||||||
---
|
---
|
||||||
cron: {}
|
cron:
|
||||||
|
pkg: cronie
|
||||||
|
service: cron
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
---
|
---
|
||||||
cron:
|
cron:
|
||||||
enabled: true # Default
|
enabled: true # Default
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue