lib/dtk-node-agent/installer.rb in dtk-node-agent-0.7.2 vs lib/dtk-node-agent/installer.rb in dtk-node-agent-0.7.3
- old
+ new
@@ -60,10 +60,11 @@
end
case @osmajrelease
when "5"
shell "rpm -ivh #{CONFIG[:puppetlabs_el5_rpm_repo]}"
@osarch == 'X86_64' ? (shell "rpm -ivh #{CONFIG[:rpm_forge_el5_X86_64_repo]}") : (shell "rpm -ivh #{CONFIG[:rpm_forge_el5_i686_repo]}")
- when "6", "n/a"
+ # 20xx is the major release naming pattern of Amazon Linux
+ when "6", "n/a", "2015", "2014"
shell "rpm -ivh #{CONFIG[:puppetlabs_el6_rpm_repo]}"
@osarch == 'X86_64' ? (shell "rpm -ivh #{CONFIG[:rpm_forge_el6_X86_64_repo]}") : (shell "rpm -ivh #{CONFIG[:rpm_forge_el6_i686_repo]}")
shell "yum-config-manager --disable rpmforge-release"
shell "yum-config-manager --enable rpmforge-extras"
when "7"