Skip to content

(#7986) make solaris pkg versionable.#1046

Merged
joshcooper merged 2 commits intopuppetlabs:3.xfrom
vrthra:ticket/3.x/11004_pkg_provider
Aug 23, 2012
Merged

(#7986) make solaris pkg versionable.#1046
joshcooper merged 2 commits intopuppetlabs:3.xfrom
vrthra:ticket/3.x/11004_pkg_provider

Conversation

@vrthra
Copy link
Contributor

@vrthra vrthra commented Aug 16, 2012

Changes:

  • Add :versionable and :upgradable to features
    ** Ensurable now returns version rather than present/absent
  • Enable :defaultfor solaris 5.11
  • Change update to use pkg update, and ensure that we ignore return 4
  • Update the test cases to reflect these.

@vrthra
Copy link
Contributor Author

vrthra commented Aug 21, 2012

@joshcooper updated the execution & tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

@vrthra It seems problematic to do this each time such as if puppet is installing multiple packages. Each pkg refresh invocation will cause the system to refresh catalogs from all publishers in the image. Are there typically many publishers? I would imagine a sysadmin would configure their systems to refresh catalogs periodically, e.g. once per day, using some other mechanism, e.g. exec resource with a schedule. But perhaps not? I don't know. Can you check with Ben and Stefan about this? I'd be keen to get their perspective

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@joshcooper removed pkg refresh

@vrthra
Copy link
Contributor Author

vrthra commented Aug 23, 2012

@joshcooper fixed test failures.

vrthra added 2 commits August 23, 2012 13:56
Changes:
  * Add :versionable and :upgradable to features
  ** Ensurable now returns version rather than present/absent
  * Enable :defaultfor solaris 5.11
  * Change update to use pkg update, and ensure that we ignore return 4
  * Update the test cases to reflect these.
Modified pkg_spec test case to verify that pkg is the default provider for opensolaris
@joshcooper joshcooper merged commit e2b322c into puppetlabs:3.x Aug 23, 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