spuder / puppet-gitlab

A puppet module to install gitlab 7
Apache License 2.0
36 stars 44 forks source link

Package['wget'] already declared #158

Closed bjwschaap closed 9 years ago

bjwschaap commented 9 years ago

For version <= 2.3.6: When using multiple classes (modules) on the same server (=server role), the package declaration for wget can also be made elsewhere, resulting in:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Package[wget] is already declared; cannot redeclare at /etc/puppetlabs/puppet/environments/core/modules/gitlab/manifests/install.pp:183

The correct way to implement the download would be to support both curl as well as wget. As a workaround you could test for the package declaration using stdlib defined().

bjwschaap commented 9 years ago

Sorry, I see it's already fixed.

spuder commented 9 years ago

This module is currently undergoing an overhaul because gitlab changed their package names. Soon it shouldn't even require curl or wget because they finally added repos.

spuder commented 9 years ago

The module doesn't yet work with the 7.10.x releases of gitlab, only 7.0.x