Skip to content

Commit

Permalink
fix(platform): add support for Arch
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 15, 2019
1 parent c12034a commit a9968e3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion cron/defaults.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
cron: {}
cron:
pkg: cronie
service: cron
9 changes: 4 additions & 5 deletions cron/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
---
Debian:
pkg: cron
service: cron

RedHat:
pkg: cronie
service: crond

Suse:
pkg: cronie
service: cron
Suse: {}

Arch:
service: cronie
8 changes: 8 additions & 0 deletions test/integration/default/controls/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
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
Expand Down

0 comments on commit a9968e3

Please sign in to comment.