Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PE-12002) Add AIX support #74

Merged

Conversation

mwbutcher
Copy link
Contributor

This change adds puppet agent support for AIX.

Support is gated by the 'aix' operatingsystem fact
and an architecture fact matching 'PowerPC_POWER[5,6,7]'.

This change uses the same strategy as osx for removing
unused packages as aix doesn't have fully fledged package
management for rpms.

@mwbutcher mwbutcher force-pushed the task/master/PE-12002_Add_AIX_support branch 6 times, most recently from a4bd48e to 0c5747c Compare December 18, 2015 23:28
}->
user { 'pe-mcollective':
ensure => absent,
}->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

['pe-puppet', 'pe-mcollective'].each |$pkg| {
  service { $pkg: ensure => stopped}
  user { $pkg: ensure => absent }
}

@mwbutcher mwbutcher force-pushed the task/master/PE-12002_Add_AIX_support branch 2 times, most recently from 04e4922 to c319b77 Compare December 21, 2015 19:38
@jpartlow
Copy link
Contributor

jpartlow commented Jan 5, 2016

@mwbutcher looks like the specs are failing.

@@ -49,6 +49,9 @@
}
} elsif $::operatingsystem == 'Darwin' and $::macosx_productversion_major =~ '10\.[9,10,11]' {
$_package_file_name = "${puppet_agent::package_name}-${puppet_agent::params::master_agent_version}-1.osx${$::macosx_productversion_major}.dmg"
} elsif $::operatingsystem == 'aix' and $::architecture =~ 'PowerPC_POWER[5,6,7]' {
$aix_ver_number = regsubst($::architecture,'PowerPC_POWER(\d+)$','\1')
$_package_file_name = "${puppet_agent::package_name}-${puppet_agent::params::master_agent_version}-1.aix${aix_ver_number}.1.ppc.rpm"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AIX numbering is not always x.1 -- 5.3, 6.1, 7.1.

Which version where you testing?

@mwbutcher mwbutcher force-pushed the task/master/PE-12002_Add_AIX_support branch 2 times, most recently from 55db02f to a83b9a3 Compare January 6, 2016 22:41
This change adds puppet agent support for AIX.

Support is gated by the 'aix' operatingsystem fact
and an archetecture fact matching 'PowerPC_POWER[5,6,7]'.

This change uses the same strategy as sles for removing
unused packages as aix doesn't have fully fledged package
management for rpms.
@mwbutcher mwbutcher force-pushed the task/master/PE-12002_Add_AIX_support branch from a83b9a3 to e5f6eef Compare January 11, 2016 18:58
@mwbutcher mwbutcher force-pushed the task/master/PE-12002_Add_AIX_support branch from 8586a97 to 1b98dc0 Compare January 12, 2016 22:09
@highb
Copy link
Contributor

highb commented Jan 13, 2016

@mwbutcher Have you run pe_acceptance_tests against this already?

@highb
Copy link
Contributor

highb commented Jan 14, 2016

👍 Verified this works by:

  1. Installing 3.8.3 mono
  2. Installing AIX pe_repo
  3. Frictionless install to aix-71 box and confirmed version 3.8.3
  4. Upgrade mono to 2015.3.1 and run puppet/ensure pe_repo is up to date
  5. Install puppet_agent with this patch
  6. Classify aix-71 with puppet_agent, run puppet on aix-71, and verify version as 4.3.1.

highb added a commit that referenced this pull request Jan 14, 2016
@highb highb merged commit 750a784 into puppetlabs:master Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants