From a9968e329cd0d4c6579ddba2e06aaed93fa02eaa Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Mon, 14 Oct 2019 16:05:24 +0100 Subject: [PATCH] fix(platform): add support for `Arch` --- cron/defaults.yaml | 4 +++- cron/osfamilymap.yaml | 9 ++++----- test/integration/default/controls/service_spec.rb | 8 ++++++++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/cron/defaults.yaml b/cron/defaults.yaml index 2b0646b..5f33b14 100644 --- a/cron/defaults.yaml +++ b/cron/defaults.yaml @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- # vim: ft=yaml --- -cron: {} +cron: + pkg: cronie + service: cron diff --git a/cron/osfamilymap.yaml b/cron/osfamilymap.yaml index 733daa0..dc131b4 100644 --- a/cron/osfamilymap.yaml +++ b/cron/osfamilymap.yaml @@ -12,12 +12,11 @@ --- Debian: pkg: cron - service: cron RedHat: - pkg: cronie service: crond -Suse: - pkg: cronie - service: cron +Suse: {} + +Arch: + service: cronie diff --git a/test/integration/default/controls/service_spec.rb b/test/integration/default/controls/service_spec.rb index 2ac8f7f..3f675f5 100644 --- a/test/integration/default/controls/service_spec.rb +++ b/test/integration/default/controls/service_spec.rb @@ -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