class SyncWrap::AmazonLinux
Customizations for Amazon Linux.
Attributes
amazon_version[RW]
Amazon Linux version, e.g. '2014.09.1' or '2017.12'. No default value.
distro_version[RW]
Amazon Linux version, e.g. '2014.09.1' or '2017.12'. 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 is specified. Beyond Amazon Linux 2014.03 this default mapping is fixed at RHEL 7.
Relevant history:
-
2011.09 upgraded to glibc 2.12, parity with RHEL 6
-
2014.03 upgraded to glibc 2.17, parity with RHEL 7
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 earlier versions being otherwise comparable to RHEL 7, the first version of Amazon Linux with systemd is 2017.12.
# File lib/syncwrap/components/amazon_linux.rb, line 50 def systemd? if @systemd.nil? && amazon_version @systemd = version_gte?( amazon_version, [2017,12] ) end @systemd end