On Wed, Jul 1, 2020 at 7:51 PM sebb <seb...@gmail.com> wrote:
>
> Getting the following error:
>
> Error: Failed to apply catalog: Cannot alias Package[pip] to [nil,
> "python3-pip", :apt] at (file:
> /etc/puppetlabs/code/environments/production/ext-modules/python/manifests/install.pp,
> line: 234); resource ["Package", nil, "python3-pip", :apt] already
> declared (file:
> /etc/puppetlabs/code/environments/production/modules/whimsy_server/manifests/init.pp,
> line: 68)
>
> Maybe Ubuntu 20.04 already has python3-pip declared somewhere?

I don't see that definition in infra-p6, but yea, the error message
does make it it sound that way.

> I don't want to remove it from init.pp, because that is used by whimsy-vm5.
> Any ideas?

A technique to be used sparingly:

https://github.com/apache/infrastructure-p6/blob/production/modules/build_slaves/manifests/snapcraft.pp#L16

- Sam Ruby

Reply via email to