Skip to content

duplicate resource #259

@cblaupanda

Description

@cblaupanda

So far I managed python with the puppet's package manager until I have come across this module. It seems to do exactly what I need but I have failed to implement it correctly.

I keep on getting this error:

Error: Failed to apply catalog: Cannot alias Package[pip] to ["python-pip"] at /etc/puppet/modules/python/manifests/install.pp:61; resource ["Package", "python-pip"] already declared

I have gone through all my profiles and have initiated python and pip as per below.

ensure_resource('class', 'python', {
    version    => 'system',
    pip        => 'present',
  })
  ensure_resource('python::pip', 'blah', {
    pkgname  => 'blah'
    ensure   => installed,
    require  => Class['python']
  })

But yet I still get the duplicate resource error.

I want to confirm if anyone else has had this issue before I start chasing windmills in my puppet code 😏

Your advise will be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions