Skip to content

(#8288) pkgadd - allow user to specify -G#993

Closed
vrthra wants to merge 4 commits intopuppetlabs:3.xfrom
vrthra:ticket/3.x/8288_pkgadd_G
Closed

(#8288) pkgadd - allow user to specify -G#993
vrthra wants to merge 4 commits intopuppetlabs:3.xfrom
vrthra:ticket/3.x/8288_pkgadd_G

Conversation

@vrthra
Copy link
Contributor

@vrthra vrthra commented Aug 1, 2012

Depends on merge of ticket/3.x/15686_s10_resource_failure

  • Added feature :install_options to solaris package provider (sun)
  • Added test case for checking it.

vrthra added 4 commits August 9, 2012 12:29
In ruby we can avoid the extra syntactic noice of parenthesis in method
calls with no arguments
- refactor the namemap completely so that it is defined only once
  * We also remove the nil lines so that only keys of interest are retained.
- replace the execpipe with execute since we do not want to exit only halfway through
- refactor the info2hash to parse_pkg and replace the instances and info2hash to use it instead of
  duplicating the code
- cleanup the exception handling to ensure that an exception is used only when it really is an
  exception.
- IMP: This fixes the bug
 * changing from execpipe to execute removes the problem that we were facing, that is,
   execpipe block used to return an array as output which used to cause the exception
   that was raised to have an array as the error message.
 * We no longer rely on exception handling to know when a package is not present. Instead
   we parse the ouput and look for 'ERROR' string.
This ensures that the logic of deciding what extra options to pass are in one place.
Before implementing this feature, pkgadd solaris could not
specify { install_options=>options } as extra options in package
manifest for puppet. This checkin adds the :install_option feature to
the provider which enables the use of { install_options=> options }
parameter. This checkin also adds the test cases for this feature.
@joshcooper
Copy link
Contributor

Now that 15868 was merged, I rebased this on 3.x, resolved some conflicts and merged it as b4f508f

@joshcooper joshcooper closed this Aug 10, 2012
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.

2 participants