def _get_cron_info():
 owner = 'root'
 if (__grains__['os'] == 'FreeBSD'):
  group = 'wheel'
  crontab_dir = '/var/cron/tabs'
 elif (__grains__['os'] == 'OpenBSD'):
  group = 'crontab'
  crontab_dir = '/var/cron/tabs'
 elif (__grains__['os_family'] == 'Solaris'):
  group = 'root'
  crontab_dir = '/var/spool/cron/crontabs'
 elif (__grains__['os'] == 'MacOS'):
  group = 'wheel'
  crontab_dir = '/usr/lib/cron/tabs'
 else:
  group = 'root'
  crontab_dir = '/var/spool/cron'
 return (owner, group, crontab_dir)

def _get_cron_info ( ) : owner = 'root' if ( __grains__ [ 'os' ] == 'FreeBSD' ) : group = 'wheel' crontab_dir = '/var/cron/tabs' elif ( __grains__ [ 'os' ] == 'OpenBSD' ) : group = 'crontab' crontab_dir = '/var/cron/tabs' elif ( __grains__ [ 'os_family' ] == 'Solaris' ) : group = 'root' crontab_dir = '/var/spool/cron/crontabs' elif ( __grains__ [ 'os' ] == 'MacOS' ) : group = 'wheel' crontab_dir = '/usr/lib/cron/tabs' else : group = 'root' crontab_dir = '/var/spool/cron' return ( owner , group , crontab_dir )
returns the proper group owner and path to the cron directory .