Module: RuboCop::Chef::PlatformHelpers

Overview

common helpers for Platforms in Chef Infra Cookbooks

Constant Summary collapse

INVALID_PLATFORM_FAMILIES =

a mapping of invalid platform family values to valid platform family

{
  'archlinux' => 'arch',
  'centos' => 'rhel',
  'darwin' => 'mac_os_x',
  'debuan' => 'debian',
  'linux' => nil,
  'mac_os_x_server' => 'mac_os_x',
  'macos' => 'mac_os_x',
  'macosx' => 'mac_os_x',
  'mingw32' => 'windows',
  'mswin' => 'windows',
  'opensuse' => 'suse',
  'opensuseleap' => 'suse',
  'oracle' => 'rhel',
  'redhat' => 'rhel',
  'scientific' => 'rhel',
  'sles' => 'suse',
  'ubuntu' => 'debian',
}.freeze
INVALID_PLATFORMS =

a mapping of invalid platforms values to valid platforms

{
  'aws' => nil,
  'archlinux' => 'arch',
  'amazonlinux' => 'amazon',
  'darwin' => 'mac_os_x',
  'debuan' => 'debian',
  'mingw32' => 'windows',
  'mswin' => 'windows',
  'macos' => 'mac_os_x',
  'macosx' => 'mac_os_x',
  'mac_os_x_server' => 'mac_os_x',
  'mint' => 'linuxmint',
  'linux' => nil,
  'oel' => 'oracle',
  'oraclelinux' => 'oracle',
  'rhel' => 'redhat',
  'schientific' => 'scientific',
  'scientificlinux' => 'scientific',
  'sles' => 'suse',
  'solaris' => 'solaris2',
  'ubundu' => 'ubuntu',
  'ubunth' => 'ubuntu',
  'ubunutu' => 'ubuntu',
  'windwos' => 'windows',
  'xcp' => nil,
}.freeze