Skip to content

Need sudo to install pip #96

@scottsuch

Description

@scottsuch

I'm trying to test this module in Vagrant with CentOS6.5 provided by this box. It seems I'm unable to install pip via this module as it requires sudo.

err: /Stage[main]/Python::Install/Package[python-pip]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install python-pip' returned 1: Error: Nothing to do

Here is the entry in my node's definition.

class { 'python':
    version    => 'system',
    pip        => true,
    dev        => false,
    virtualenv => false,
    gunicorn   => false,
  }

It seems like the installation command just requires sudo prepended and could possibly be a configuration parameter? If I'm missing something obvious please let me know.

EDIT: I'm running puppet agent manually as the vagrant user.

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