Skip to content

Commit

Permalink
Merge pull request #2362 from joshcooper/aix72_puppet_agent
Browse files Browse the repository at this point in the history
(PA-5651) Add AIX 7.2 for Puppet 8
  • Loading branch information
joshcooper authored Jul 18, 2023
2 parents 09a9cef + 4bc74f9 commit ff5d371
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions acceptance/tests/validate_vendored_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
extend Puppet::Acceptance::CommandUtils

confine :except, :platform => 'sles-12-ppc64le'
confine :except, :platform => 'aix-7.2-power' # PA-5654

def package_installer(agent)
# for some reason, beaker does not have a configured package installer
Expand Down
2 changes: 1 addition & 1 deletion configs/components/puppet-resource_api.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"url":"[email protected]:puppetlabs/puppet-resource_api.git","ref":"refs/tags/1.8.16"}
{"url":"[email protected]:puppetlabs/puppet-resource_api.git","ref":"aa3f867d905d70673d17badaef190a0f47e66f2d"}
11 changes: 3 additions & 8 deletions configs/components/puppet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
pkg.build_requires "gettext"
elsif platform.is_windows?
pkg.build_requires "pl-gettext-#{platform.architecture}"
elsif platform.is_aix?
pkg.build_requires "http://pl-build-tools.delivery.puppetlabs.net/aix/#{platform.os_version}/ppc/pl-gcc-5.2.0-11.aix#{platform.os_version}.ppc.rpm"
pkg.build_requires "http://pl-build-tools.delivery.puppetlabs.net/aix/#{platform.os_version}/ppc/pl-gettext-0.19.8-2.aix#{platform.os_version}.ppc.rpm"
elsif platform.is_solaris?
elsif platform.is_solaris? || platform.is_aix?
# do nothing
else #rubocop:disable Lint/DuplicateBranch
pkg.build_requires "gettext"
Expand Down Expand Up @@ -90,14 +87,12 @@
pkg.install_configfile 'puppet-agent.conf', File.join(settings[:tmpfilesdir], 'puppet-agent.conf')
end

# We do not currently support i18n on Solaris
unless platform.is_solaris?
# We do not currently support i18n on Solaris or AIX
unless platform.is_solaris? || platform.is_aix?
if platform.is_windows?
msgfmt = "/cygdrive/c/tools/pl-build-tools/bin/msgfmt.exe"
elsif platform.is_macos?
msgfmt = "/usr/local/opt/gettext/bin/msgfmt"
elsif platform.is_aix?
msgfmt = "/opt/pl-build-tools/bin/msgfmt"
else
msgfmt = "msgfmt"
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform "aix-7.1-ppc" do |plat|
platform "aix-7.2-ppc" do |plat|
plat.servicetype "aix"

plat.make "gmake"
Expand All @@ -9,12 +9,15 @@
# Basic vanagon operations require mktemp, rsync, coreutils, make, tar and sed so leave this in there
plat.provision_with "rpm -Uvh --replacepkgs http://osmirror.delivery.puppetlabs.net/AIX_MIRROR/mktemp-1.7-1.aix5.1.ppc.rpm http://osmirror.delivery.puppetlabs.net/AIX_MIRROR/rsync-3.0.6-1.aix5.3.ppc.rpm http://osmirror.delivery.puppetlabs.net/AIX_MIRROR/coreutils-5.2.1-2.aix5.1.ppc.rpm http://osmirror.delivery.puppetlabs.net/AIX_MIRROR/sed-4.1.1-1.aix5.1.ppc.rpm http://osmirror.delivery.puppetlabs.net/AIX_MIRROR/make-3.80-1.aix5.1.ppc.rpm http://osmirror.delivery.puppetlabs.net/AIX_MIRROR/tar-1.22-1.aix6.1.ppc.rpm"

# lots of things expect mktemp to be installed in the usual place, so link it
plat.provision_with "ln -sf /opt/freeware/bin/mktemp /usr/bin/mktemp"

# We use --force with rpm because the pl-gettext and pl-autoconf
# packages conflict with a charset.alias file.
#
# Until we get those packages to not conflict (or we remove the need
# for pl-autoconf) we'll need to force the installation
# Sean P. McD.
plat.install_build_dependencies_with "rpm -Uvh --replacepkgs --force "
plat.vmpooler_template "aix-7.1-power"
plat.vmpooler_template "aix-7.2-power"
end

0 comments on commit ff5d371

Please sign in to comment.