Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need sudo to install pip #96

Closed
scottsuch opened this issue Jul 23, 2014 · 3 comments
Closed

Need sudo to install pip #96

scottsuch opened this issue Jul 23, 2014 · 3 comments

Comments

@scottsuch
Copy link

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.

@igalic
Copy link
Contributor

igalic commented Jul 23, 2014

well, puppet generally assumes it's running as root, with full power, so, as vagrant user you should be running

vagrant@vbox ~ % sudo puppet agent -t
...

@scottsuch
Copy link
Author

I am running $ sudo puppet agent .... I am running puppet 2.7.x on this machine as we are a little behind. Is this a known issue with puppet 2.7 perhaps?

screenshot 2014-07-24 10 13 13

@scottsuch
Copy link
Author

I found what I was missing and my apologies for not finding this earlier. I did not have EPEL installed/enabled. Thanks for the awesome module!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants