0
0
mirror of https://github.com/saltstack-formulas/cron-formula.git synced 2024-11-27 23:07:46 +01:00

fix(platform): add support for Arch

This commit is contained in:
Imran Iqbal 2019-10-14 16:05:24 +01:00
parent c12034a38d
commit a9968e329c
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
3 changed files with 15 additions and 6 deletions

View File

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

View File

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

View File

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