module Puppet::Acceptance::CronUtils - mcollective version 2.12.5

# module Puppet::Acceptance::CronUtils

### Public Instance Methods

clean(agent, o={}) click to toggle source

      # File acceptance/lib/puppet/acceptance/common_utils.rb
    4 def clean(agent, o={})
    5   o = {:user => 'tstuser'}.merge(o)
    6   run_cron_on(agent, :remove, o[:user])
    7   apply_manifest_on(agent, %[user { '%s': ensure => absent, managehome => false }] % o[:user])
    8 end

setup(agent, o={}) click to toggle source

       # File acceptance/lib/puppet/acceptance/common_utils.rb
    10 def setup(agent, o={})
    11   o = {:user => 'tstuser'}.merge(o)
    12   apply_manifest_on(agent, %[user { '%s': ensure => present, managehome => false }] % o[:user])
    13   apply_manifest_on(agent, %[case $operatingsystem {
    14                                centos, redhat: {$cron = 'cronie'}
    15                                solaris: { $cron = 'core-os' }
    16                                default: {$cron ='cron'} }
    17                                package {'cron': name=> $cron, ensure=>present, }])
    18 end