voxpupuli / voxpupuli/puppet-python

Use 'ensure_packages" to prevent duplicate packages

Open
#380 0 comments 4 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.