mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2025-07-21 17:24:35 +02:00
fix(platform): add support for Arch
This commit is contained in:
parent
c12034a38d
commit
a9968e329c
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user