Skip to content

Commit

Permalink
Merge pull request #1326 from branan/bkr-937-aix-7.2
Browse files Browse the repository at this point in the history
(BKR-937) Add support for installing AIX 7 agent on 7.2
  • Loading branch information
tvpartytonight authored Jan 25, 2017
2 parents bd97a39 + 2c606b2 commit deeae40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/beaker/dsl/install_utils/foss_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,12 @@ def install_puppet_agent_dev_repo_on( hosts, opts )
when /^(sles|aix|el)$/
# NOTE: AIX does not support repo management. This block assumes
# that the desired rpm has been mirrored to the 'repos' location.
on host, "rpm -ivh #{onhost_copied_file}"
# NOTE: the AIX 7.1 package will only install on 7.2 with
# --ignoreos. This is a bug in package building on AIX 7.1's RPM
if variant == "aix" and version == "7.2"
aix_72_ignoreos_hack = "--ignoreos"
end
on host, "rpm -ivh #{aix_72_ignoreos_hack} #{onhost_copied_file}"
when /^windows$/
result = on host, "echo #{onhost_copied_file}"
onhost_copied_file = result.raw_output.chomp
Expand Down
1 change: 1 addition & 0 deletions lib/beaker/host/unix/pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def puppet_agent_dev_package_info( puppet_collection = nil, puppet_agent_version
when /^(sles|aix|el|centos|oracle|redhat|scientific)$/
variant = 'el' if variant.match(/(?:el|centos|oracle|redhat|scientific)/)
arch = 'ppc' if variant == 'aix' && arch == 'power'
version = '7.1' if variant == 'aix' && version == '7.2'
release_path_end = "#{variant}/#{version}/#{puppet_collection}/#{arch}"
release_file = "puppet-agent-#{puppet_agent_version}-1.#{variant}#{version}.#{arch}.rpm"
else
Expand Down

0 comments on commit deeae40

Please sign in to comment.