Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Duplicate declaration (wget) with willdurand/nodejs #41

@cdoublev

Description

@cdoublev

Description

Puppet fails to apply catalog. It outputs en error of a duplicate package (wget) declaration from init.pp, with willdurand/nodejs/manifests/instance/pkgs.pp (so both modules are using ensure_packages function from puppetlabs/stdlib).

Steps to reproduce

Create Composer and NodeJS resources with willdurand/composer (1.2.2) and willdurand/nodejs (2.0.0-alpha1). Both require puppetlabs/stdlib >= 3.2.1 (version 4.14.0 was used).

Further details

I managed to solve this issue by changing init.pp on line 53 from:

ensure_packages(['wget']) to ensure_packages(['wget'], {ensure => 'installed'})

... which I think is strange, as this second (optional) argument is always merged with ensure => 'present', and I can read from Puppet docs that for the ensure attribute...

Valid values are present (also called installed), absent, [...]

So obiously it should be a Puppet issue, but as I'm really not a Puppet expert, I prefered to open this issue and share this simple workaround.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions