Skip to content

(MODULES-603) Add defaults arguments to ensure_packages() #238

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

Merged
merged 1 commit into from
Apr 24, 2014

Conversation

Spredzy
Copy link
Contributor

@Spredzy Spredzy commented Mar 30, 2014

Without this patch one can not specify package resource specific
parameters. All the ensure_packages() function does it makes sure
the named packages are installed. This patch allows one to pass
default as a second argument and allow greater flexibility on
packages installations.

Use case like the following are now possible :

  • ensure_packages(['r10k', 'serverspec'], {'provider' => 'gem'})
  • ensure_packages(['ntp'], {'require' => 'Exec[foobar]'})

Without this patch one can not specify package resource specific
parameters. All the ensure_packages() function does it makes sure
the named packages are installed. This patch allows one to pass
default as a second argument and allow greater flexibility on
packages installations.

Use case like the following are now possible :
  * ensure_packages(['r10k', 'serverspec'], {'provider' => 'gem'})
  * ensure_packages(['ntp'], {'require' => 'Exec[foobar]'})
apenney pushed a commit that referenced this pull request Apr 24, 2014
(MODULES-603) Add defaults arguments to ensure_packages()
@apenney apenney merged commit f42fc4b into puppetlabs:master Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants