From e49408174d1e7662bd18f088accd8cc33d0e152c Mon Sep 17 00:00:00 2001 From: Enis Inan Date: Sat, 1 Dec 2018 16:35:32 -0800 Subject: (MODULES-8306) Port over the crontab filetypes from Puppet --- .../unit/provider/cron/filetype/aixtab_output | 44 ++++++++++++++++++++++ .../unit/provider/cron/filetype/crontab_output | 5 +++ .../unit/provider/cron/filetype/suntab_output | 9 +++++ 3 files changed, 58 insertions(+) create mode 100644 spec/fixtures/unit/provider/cron/filetype/aixtab_output create mode 100644 spec/fixtures/unit/provider/cron/filetype/crontab_output create mode 100644 spec/fixtures/unit/provider/cron/filetype/suntab_output (limited to 'spec/fixtures/unit/provider') diff --git a/spec/fixtures/unit/provider/cron/filetype/aixtab_output b/spec/fixtures/unit/provider/cron/filetype/aixtab_output new file mode 100644 index 0000000..0b27645 --- /dev/null +++ b/spec/fixtures/unit/provider/cron/filetype/aixtab_output @@ -0,0 +1,44 @@ +# @(#)08 1.15.1.3 src/bos/usr/sbin/cron/root, cmdcntl, bos530 2/11/94 17:19:47 +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# bos530 src/bos/usr/sbin/cron/root 1.15.1.3 +# +# Licensed Materials - Property of IBM +# +# (C) COPYRIGHT International Business Machines Corp. 1989,1994 +# All Rights Reserved +# +# US Government Users Restricted Rights - Use, duplication or +# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. +# +# IBM_PROLOG_END_TAG +# +# COMPONENT_NAME: (CMDCNTL) commands needed for basic system needs +# +# FUNCTIONS: +# +# ORIGINS: 27 +# +# (C) COPYRIGHT International Business Machines Corp. 1989,1994 +# All Rights Reserved +# Licensed Materials - Property of IBM +# +# US Government Users Restricted Rights - Use, duplication or +# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. +# +#0 3 * * * /usr/sbin/skulker +#45 2 * * 0 /usr/lib/spell/compress +#45 23 * * * ulimit 5000; /usr/lib/smdemon.cleanu > /dev/null +0 11 * * * /usr/bin/errclear -d S,O 30 +0 12 * * * /usr/bin/errclear -d H 90 +0 15 * * * /usr/lib/ras/dumpcheck >/dev/null 2>&1 +# SSA warning : Deleting the next two lines may cause errors in redundant +# SSA warning : hardware to go undetected. +01 5 * * * /usr/lpp/diagnostics/bin/run_ssa_ela 1>/dev/null 2>/dev/null +0 * * * * /usr/lpp/diagnostics/bin/run_ssa_healthcheck 1>/dev/null 2>/dev/null +# SSA warning : Deleting the next line may allow enclosure hardware errors to go undetected +30 * * * * /usr/lpp/diagnostics/bin/run_ssa_encl_healthcheck 1>/dev/null 2>/dev/null +# SSA warning : Deleting the next line may allow link speed exceptions to go undetected +30 4 * * * /usr/lpp/diagnostics/bin/run_ssa_link_speed 1>/dev/null 2>/dev/null +55 23 * * * /var/perf/pm/bin/pmcfg >/dev/null 2>&1 #Enable PM Data Collection diff --git a/spec/fixtures/unit/provider/cron/filetype/crontab_output b/spec/fixtures/unit/provider/cron/filetype/crontab_output new file mode 100644 index 0000000..da455f6 --- /dev/null +++ b/spec/fixtures/unit/provider/cron/filetype/crontab_output @@ -0,0 +1,5 @@ +# Puppet Name: pe-mcollective-metadata +0,15,30,45 * * * * /opt/puppet/sbin/refresh-mcollective-metadata +# Puppet Name: pe-puppet-console-prune-task +* 1 * * * /opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile RAILS_ENV=production reports:prune reports:prune:failed upto=30 unit=day > /dev/null +0 2 * * * /usr/sbin/logrotate diff --git a/spec/fixtures/unit/provider/cron/filetype/suntab_output b/spec/fixtures/unit/provider/cron/filetype/suntab_output new file mode 100644 index 0000000..e6ca376 --- /dev/null +++ b/spec/fixtures/unit/provider/cron/filetype/suntab_output @@ -0,0 +1,9 @@ +#ident "@(#)root 1.19 98/07/06 SMI" /* SVr4.0 1.1.3.1 */ +# +# The root crontab should be used to perform accounting data collection. +# +# +10 3 * * * /usr/sbin/logadm +15 3 * * 0 /usr/lib/fs/nfs/nfsfind +30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean +#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___ -- cgit v1.2.3