class SyncWrap::AmazonLinux

Customizations for Amazon Linux.

Attributes

amazon_version[RW]

Amazon Linux version, i.e. '2014.09.1'. No default value.

distro_version[RW]

Amazon Linux version, i.e. '2014.09.1'. No default value.

Public Instance Methods

rhel_version() click to toggle source

Return SyncWrap::RHEL#rhel_version if specified, or a comparable RHEL version if amazon_version if specified.

History of Amazon Linux releases:

  • 2011.09 upgraded to glibc 2.12, parity with RHEL 6

  • 2014.03 upgraded to 2.17, parity with RHEL 7

Note however that Amazon is still behind RHEL 7 in other respects (ex: systemd), and is ahead on other packages.

Calls superclass method
# File lib/syncwrap/components/amazon_linux.rb, line 40
def rhel_version
  super ||
    ( amazon_version &&
      ( ( version_gte?( amazon_version, [2014,3] ) && '7' ) ||
        ( version_gte?( amazon_version, [2011,9] ) && '6' ) ||
        '5' ) )
end
systemd?() click to toggle source

Despite later versions being comparable to rhel_version '7', Amazon Linux has yet (2015.09) to migrate to systemd. Return false.

# File lib/syncwrap/components/amazon_linux.rb, line 51
def systemd?
  false
end