Commits on Aug 31, 2015

  1. (maint) Use rspec expect syntax for catching errors

    I wasn't seeing expected failures when I started making SLES 10
    available, so I switched to using expect { block }.to raise_error(/foo/)
    in order to verify that the tests were noticing that errors were no
    longer being thrown.
    jpartlow committed Aug 31, 2015
    Configuration menu
    Copy the full SHA
    588e103 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2015

  1. (PE-10915) Base master_agent_version on pe_compiling_server_aio_build()

    We were determining the master's agent_version based on
    file('/opt/puppetlabs/puppet/VERSION'). Since we need to refer to this
    in more than one class now, and since it is only used in PE, it makes
    sense to move it to the params class and to base it off of the
    pe_compiling_server_aio_build() function which inspects the same file.
    This way we're not duplicating the function across modules, and we're
    not mocking the builtin file() function specifically in our specs.
    jpartlow committed Sep 22, 2015
    Configuration menu
    Copy the full SHA
    f262a00 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2015

  1. (PE-10915) Add support for SLES 10

    Introduces support for upgrading SLES 10 agents in PE. SLES 10 does not
    have tools for securely handling remote package management.
    
    * puppet-agent package is downloaded from a pe_packages fileserver mount
    prepared separately on the master (in puppet_enterprise module)
    * the package is downloaded with a File resource, but only if agent node
    is not already at the current aio version
    * because of limitations in the rpm package provider, it is not feasible
    to get the install of the new puppet-agent package to run with '-U
    --replacepkgs' flags that would allow rpm to correctly uninstall
    conflicting superseded pe-* packages, so we remove those prior to
    install. (Passing '-U --replacepkgs' in install_options parameter ends
    up failing:
    
    Error: Execution of '/bin/rpm -i "-U --replacepkgs"
    /opt/puppetlabs/packages/puppet-agent-1.2.5-1.sles10.x86_64.rpm'
    returned 1: -U --replacepkgs: not an rpm package (or package manifest)
    
    * I'm threading package_file_name parameter through because it varies by
    platform and ends up being needed both in the prepare and the install
    phase for these special case platforms.
    jpartlow committed Sep 23, 2015
    Configuration menu
    Copy the full SHA
    931bb66 View commit details
    Browse the repository at this point in the history
  2. (PE-10915) Update metadata.json sles versions

    ...to indicate support for 10 and 11.  I'm not entirely certain how
    rspec-puppet-facts works, but this then produced failures for SLES 11.
    SLES 10 and 12 aren't tested because rspec-puppet-facts doesn't seem to
    generate facts for them.  The fix for SLES 11 was to set is_pe and
    operatingsystemmajrelease specifically, and to mock the pe only
    functions that the SLES classes need.
    jpartlow committed Sep 23, 2015
    Configuration menu
    Copy the full SHA
    554c297 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2015

  1. Merge pull request #63 from jpartlow/issue/master/pe-10915-add-sles-10

    (PE-10915) Add SLES 10 upgrade for PE
    highb committed Sep 28, 2015
    Configuration menu
    Copy the full SHA
    ab14bed View commit details
    Browse the repository at this point in the history
  2. (PE-12001) Add Solaris 10 upgrade support

    Based on the work done for PE-10915, add an osfamily class for Solaris
    10 and update the install and install/remove_packages classes.
    
    * as with SLES10, we're relying on a pe_packages file mount to have been
    set up on the master in order to be able to download the puppet-agent
    package we are upgrading too.
    * the downloaded package is unzipped
    * previous pe-* packages are manually uninstalled prior to installing
    pe-puppet
    jpartlow authored and Brandon High committed Sep 28, 2015
    Configuration menu
    Copy the full SHA
    4586c3f View commit details
    Browse the repository at this point in the history
  3. (PE-12001) Add solaris 10 to metadata.json os support

    And a fix to the solaris/nexenta spec in puppet_agent_spec.rb to add
    architecture.  This began failing the validate_re check in init.pp once
    manifest/params.pp had 'Solaris' added to the osfamily case for
    supported platforms, and so was no longer failing immediately.
    jpartlow authored and Brandon High committed Sep 28, 2015
    Configuration menu
    Copy the full SHA
    bb53cd5 View commit details
    Browse the repository at this point in the history
  4. (PE-12001) Ensure pe-puppet/mcollective services stopped

    Removing the PUPpuppet and PUPmcollective packages does not stop the
    running services.  I've added service resources for both of the old PE
    services to ensure they are stopped.  However, it is also critical that
    they are stopped as the very last act of the catalog, because stopping
    the pe-puppet service, at least on Solaris, terminates the run in mid
    progress.  Originally I had the services stopped in the prepare stage,
    but had to reposition them.
    jpartlow authored and Brandon High committed Sep 28, 2015
    Configuration menu
    Copy the full SHA
    477c1ab View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2015

  1. Merge pull request #65 from jpartlow/issue/master/pe-12001-add-solari…

    …s-10
    
    (PE-12001) Add solaris 10
    highb committed Sep 29, 2015
    Configuration menu
    Copy the full SHA
    f76482b View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2015

  1. (maint) service_names param fix in README

    applewiskey authored and Michael Smith committed Oct 13, 2015
    Configuration menu
    Copy the full SHA
    965be7c View commit details
    Browse the repository at this point in the history
  2. Merge branch 'applewiskey-master'

    Michael Smith committed Oct 13, 2015
    Configuration menu
    Copy the full SHA
    6b403ad View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2015

  1. (MODULES-2750) Pass in Puppet agent PID as command line parameter to …

    …avoid recreating install_puppet.bat at every agent run.
    Dirk Heinrichs committed Oct 27, 2015
    Configuration menu
    Copy the full SHA
    6fdfc18 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2015

  1. Configuration menu
    Copy the full SHA
    a392d95 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #69 from justinstoller/maint-mirror

    (maint) allow using the internal mirror when resolving gems
    jpartlow committed Dec 3, 2015
    Configuration menu
    Copy the full SHA
    f1ad478 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2015

  1. (PE-13179) Puppet Agent Module: Update metadata.json to include Anken…

    …y release
    
    Prior to this change the puppet agent module has a note that it's to be
    used with PE < 2015.3. This Commit updates the metadata.json to note
    PE Ankeny versions.
    mwbutcher committed Dec 7, 2015
    Configuration menu
    Copy the full SHA
    a7b8892 View commit details
    Browse the repository at this point in the history
  2. (PE-12001) Add Solaris 10 sparc to supported arch

    Prior to this commit the puppet_agent module did not accept
    the sparc (sun4u/v) arch on Solaris 10.
    This commit adds that arch to the accepted architectures, as well
    as add special handling on Solaris 10 to use the "sparc" packages
    on those arches.
    Brandon High committed Dec 7, 2015
    Configuration menu
    Copy the full SHA
    45293bf View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2015

  1. Merge pull request #72 from highb/fix/2015.3.x/pe-12001_add_solaris_1…

    …0_sparc
    
    (PE-12001) Add Solaris 10 sparc to supported arch
    jpartlow committed Dec 8, 2015
    Configuration menu
    Copy the full SHA
    571af8f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #71 from mwbutcher/task/master/PE-13179_Puppet_Age…

    …nt_Module_Update_metadata.json_to_include_Ankeny_release
    
    (PE-13179) Puppet Agent Module: Update metadata.json to include Anken…
    highb committed Dec 8, 2015
    Configuration menu
    Copy the full SHA
    b3792fa View commit details
    Browse the repository at this point in the history
  3. (PE-10914) Add OSX 10.9 upgrades

    Prior to this commit upgrades for osx running pe 3.8
    were not possible.
    
    This commit adds special logic to remove pe 3.8 from osx.
    It also adds support for osx 10.10 and 10.11 as well as
    associated specs.
    jpartlow authored and mwbutcher committed Dec 8, 2015
    Configuration menu
    Copy the full SHA
    754dd49 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #70 from mwbutcher/issue/master/pe-10914-add-osx-1…

    …09-upgrade
    
    Issue/master/pe 10914 add osx 109 upgrade
    highb committed Dec 8, 2015
    Configuration menu
    Copy the full SHA
    075bca1 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2016

  1. (PE-13608) Do not convert windows file resource to RAL catalog

    Before this commit when rspec-puppet would attempt to use the
    'that_comes_before' matcher on a POSIX system with the file resource
    when the file resource contained a windows path the test would fail.
    This is because when puppet converts the catalog to the RAL catalog type
    it pokes around in the actual types themselves. Since this is done on a
    POSIX based system puppet attempts to validate the absolute path in the
    file resource as a POSIX file path and fails since it is not a valid
    absolute path.
    
    This commit replaces the call to create the relationship graph to
    determine where the windows file resource is at with a more basic test
    to assert that the 'before' parameter is filled out on the resource
    instead.
    Britt Gresham committed Jan 11, 2016
    Configuration menu
    Copy the full SHA
    e5f4818 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #76 from demophoon/fix/master/pe-13608-winders-pos…

    …ix-wat
    
    (PE-13608) Do not convert windows file resource to RAL catalog
    
    looks sane and specs are now passing
    mwbutcher committed Jan 11, 2016
    Configuration menu
    Copy the full SHA
    4587e24 View commit details
    Browse the repository at this point in the history
  3. (PE-12002) Add AIX support

    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 committed Jan 11, 2016
    Configuration menu
    Copy the full SHA
    e5f6eef View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2016

  1. adding specs for aix puppet_agent support

    mwbutcher committed Jan 12, 2016
    Configuration menu
    Copy the full SHA
    1b98dc0 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2016

  1. Merge pull request #74 from mwbutcher/task/master/PE-12002_Add_AIX_su…

    …pport
    
    (PE-12002) Add AIX support
    highb committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    750a784 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2016

  1. Merge pull request #68 from dhs-rec/master

    Pass in Puppet agent PID as command line parameter to avoid recreatin…
    Michael Smith committed Jan 19, 2016
    Configuration menu
    Copy the full SHA
    df09ea6 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2016

  1. (PE-10956) Add no-internet Windows upgrade in PE

    Prior to this commit you needed access to the internet in
    order to upgrade the agent on Windows.
    This commit adds support for a PE-hosted MSI to perform the
    upgrade. In order to have that MSI available, the user must
    classify their master with pe_repo::platform::windows_<architecture>
    Brandon High committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    182ad2a View commit details
    Browse the repository at this point in the history
  2. (PE-10956) Create/use local_package_dir in params.pp

    Prior to this commit we had a platform specific variable for
    the local package location hidden away in package::prepare.
    This commit moves that platform specific logic to params.pp,
    and changes the references to the original veriable to the new
    one in params.pp.
    Brandon High committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    6e07288 View commit details
    Browse the repository at this point in the history
  3. (PE-10956) Fix behavior for non-PE

    Prior to this commit I forgot to add fixes for behavior
    on non-PE installs, as well as forgot to move the $_arch
    logic around.
    This commit fixes non-PE installs, and moves the $_arch up
    to `init.pp`.
    Brandon High committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    4297091 View commit details
    Browse the repository at this point in the history
  4. (PE-10956) Fix specs for windows changes

    Prior to this commit the specs were not up to date with the
    latest functionality from the module, specifically, the
    new PE windows upgrade, which required some path changes.
    Brandon High committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    e8b2b3a View commit details
    Browse the repository at this point in the history
  5. (PE-10956) Remove check for null $service_names

    Prior to this commit I decided to check for a null
    `::puppet_agent::service_names`, but I've since
    realized that should never really be null at this
    point in the module.
    This commit reverts the change I made to add a
    null check to `::puppet_agent::service_names`.
    Brandon High committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    587c98c View commit details
    Browse the repository at this point in the history
  6. (PE-10956) Fix linter errors on windows PR 66

    These syntax errors were causing `rake test` to fail, so they
    have been fixed in this commit.
    Brandon High committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    c8ea36d View commit details
    Browse the repository at this point in the history
  7. (PE-10956) Use common_appdata on Windows

    Prior to this commit we were hardcoding the location of
    the puppet install to `C:\Program Files\Puppet Labs\Puppet Enterprise`,
    but we can't count on the location being set there.
    This commit changes the location to use `common_appdata` which
    even non-root users should have write access to.
    Brandon High committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    dc14d0f View commit details
    Browse the repository at this point in the history
  8. (PE-10956) Do not manage service on Windows

    Prior to this commit we were attempting to manage the
    puppet/mcollective services on Windows systems, which
    resulted in errors in the puppet run due to the MSI being
    in the middle of configuring those services.
    This commit removes management of the puppet/mco services
    on windows systems, because the MSI is handling that already
    and attempting to manage it in puppet just creates a race
    condition.
    Brandon High committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    f4d74e5 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2016

  1. (PE-10956) Add start /wait to windows upgrade

    Prior to this commit our call to msiexec would not block until
    the msi finished. This resulted in any commands dependent on
    puppet that were run after a puppet_agent upgrade puppet run would
    fail due to puppet still being in the middle of upgrading.
    This commit adds a `start /wait` to the msiexec so that, hopefully,
    we will block until the MSI finishes running and puppet is actually
    upgraded.
    Brandon High committed Jan 27, 2016
    Configuration menu
    Copy the full SHA
    ef6a118 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2016

  1. (PE-10956) Pass in configured server to windows MSI

    Prior to this commit when re-installing the MSI on windows systems,
    it would automatically revert the Puppet server setting to whatever
    was defined when puppet was initially installed. If that value was
    configured to be 'puppet' because no argument was given (as is the
    case in beaker) then it would default back to 'puppet', even though
    we had set the server to the appropriate master with beaker post-MSI
    install.
    This commit gets around that surprising behavior by always providing
    the currently configured Puppet server value to the MSI.
    Brandon High committed Jan 29, 2016
    Configuration menu
    Copy the full SHA
    c2c3ef6 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2016

  1. (PE-10956) Create puppet_master_server fact

    Prior to this commit we were setting the agent's `server` setting
    to whatever `settings::server` was set to, which in a compile master
    scenario, would be the MoM. This certainly isn't what a user would
    want to have happen in production.
    This commit creates a `puppet_master_server` fact populated with the
    value of `Puppet.settings['server']` on the agent and uses that as the
    argument to the windows MSI upgrade so we don't override the existing
    config value with the default of `puppet` or whatever was written to
    the registry on install.
    Brandon High committed Feb 1, 2016
    Configuration menu
    Copy the full SHA
    9b349a5 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2016

  1. Merge pull request #66 from highb/master-pe-10956_windows_upgrade

    (PE-10956) windows upgrade
    mwbutcher committed Feb 3, 2016
    Configuration menu
    Copy the full SHA
    f3af4eb View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2016

  1. (PE-10956) Manage /opt/puppetlabs

    Prior to this commit we removed management of `/opt/puppetlabs`.
    This resulted in platforms that need to create
    `/opt/puppetlabs/packages` before installation failing to work
    because the parent directory was not present (because packaging
    didn't create it yet)
    
    This commit adds `/opt/puppetlabs` to the managed directories.
    Brandon High committed Feb 5, 2016
    Configuration menu
    Copy the full SHA
    0d0e4d6 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2016

  1. (PE-10956) Check for /opt/puppetlabs

    Added a few specs to the aix, suse, solaris, darwin tests which depend
    on /opt/puppetlabs being created before packages are downloaded.
    jpartlow committed Feb 6, 2016
    Configuration menu
    Copy the full SHA
    956e376 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #83 from jpartlow/fix/pe-10956_manage_opt_puppet

    (PE-10956) Manage /opt/puppetlabs
    jpartlow committed Feb 6, 2016
    Configuration menu
    Copy the full SHA
    8c00822 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2016

  1. (PE-10956) Ensure local package resource defined on Windows

    Prior to this commit we didn't verify that the local MSI package
    resource existed before trying to install with it.
    This commit updates the windows install manifest to check that
    the MSI package resource does exist before trying to install it.
    Brandon High committed Feb 8, 2016
    Configuration menu
    Copy the full SHA
    73bb8a8 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2016

  1. Fix SLES11 GPG key import issue

    Previously, the exec to import the Puppetlabs GPG key made a call out to the
    gpg binary to gather the hex value of the Puppetlabs GPG key. This call works
    from the console with an ENV, but it doesn't work when automated because it
    cannot find the relative homedir (~/.gnupg). To work around this, explicitly
    set the value for root's .gnupg homedir in the unless command and expose it as
    a variable should we need to deal with it later.
    Gary Larizza authored and Brandon High committed Feb 10, 2016
    Configuration menu
    Copy the full SHA
    63e6eb0 View commit details
    Browse the repository at this point in the history
  2. (MODULES-3015) Update SLES specs to match new GPG key import

    Prior to this commit the specs were failing due to changes in
    63e6eb0 to the SLES GPG key
    handling.
    This commit updates the specs to match those changes.
    Brandon High committed Feb 10, 2016
    Configuration menu
    Copy the full SHA
    219d623 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #79 from glarizza/MODULES_3015_sles_11_key_import

    (MODULES-3015) Fix SLES11 GPG key import issue
    highb committed Feb 10, 2016
    Configuration menu
    Copy the full SHA
    9f53463 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2016

  1. Use slashes for regex

    Puppet introduced the ability to use strings as the right operand of the regex
    match operator, however, when testing this on 3.8.4 SLES11 boxes, I discovered
    that they arose errors if the right operand wasn't a regular expression. This
    commit corrects that to account for the errors.
    Gary Larizza authored and Brandon High committed Feb 11, 2016
    Configuration menu
    Copy the full SHA
    ebc7597 View commit details
    Browse the repository at this point in the history
  2. (PE-14059) Fix additional =~ regexes

    Prior to this commit SLES would most likely fail on these
    additional `=~` string checks.
    This commit updates all the remaining `=~` expressions I could
    find to have a regex on the right hand side.
    Brandon High committed Feb 11, 2016
    Configuration menu
    Copy the full SHA
    f100a40 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #80 from glarizza/regex_updates

    Use slashes for regex
    highb committed Feb 11, 2016
    Configuration menu
    Copy the full SHA
    922b8fd View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2016

  1. Merge pull request #84 from highb/fix/pe-10956_ensure_local_packages_…

    …defined
    
    (PE-10956) Ensure local package resource defined on Windows
    mwbutcher committed Feb 19, 2016
    Configuration menu
    Copy the full SHA
    bc00735 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2016

  1. Release Prep for 1.1.0

    Helen Campbell committed Mar 1, 2016
    Configuration menu
    Copy the full SHA
    5546ca4 View commit details
    Browse the repository at this point in the history