voxpupuli / voxpupuli/puppet-python
Use 'ensure_packages" to prevent duplicate packages
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 196
- Forks
- 372
- Avg merge
- 1d 18m
- Merged PRs (30d)
- 4
Description
For install class, always use "ensure_packages" function to prevent duplicate package error -
"Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Package[python-dev] is already declared; "
Old
if $pythondev {
package { 'python-dev':
ensure => $dev_ensure,
name => $pythondev,
}
}
New
if $pythondev {
ensure_packages( 'python-dev', {
ensure => $dev_ensure,
name => $pythondev,
} )
}
etc
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the install class and its package declarations, then compare them with the provided ensure_packages example. Update the remaining package declarations in that class and verify that duplicate package declarations no longer produce the reported catalog error.
Written by the indexing model from the issue text.
Assessment
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100