ajcrowe / puppet-supervisord

Puppet Module to install and configure applications under supervisord
MIT License
37 stars 104 forks source link

Pip is not installing #60

Closed sebfek closed 8 years ago

sebfek commented 9 years ago

I set install_pip to true but the pip command is missing.

Using a clean debian 7.8 image.

mrh666 commented 9 years ago

Same story here (CentOS 7):

Error: Could not set 'present' on ensure: Could not locate the pip command. at 9:/etc/puppet/modules/supervisord/manifests/install.pp
Error: Could not set 'present' on ensure: Could not locate the pip command. at 9:/etc/puppet/modules/supervisord/manifests/install.pp
Wrapped exception:
Could not locate the pip command.
Error: /Stage[main]/Supervisord::Install/Package[supervisor]/ensure: change from absent to present failed: Could not set 'present' on ensure: Could not locate the pip command. at 9:/etc/puppet/modules/supervisord/manifests/install.pp
Notice: /Stage[main]/Supervisord::Config/File[/var/log/supervisor]: Dependency Package[supervisor] has failures: true
Warning: /Stage[main]/Supervisord::Config/File[/var/log/supervisor]: Skipping because of failed dependencies
Notice: /Stage[main]/Supervisord::Config/File[/etc/init.d/supervisord]: Dependency Package[supervisor] has failures: true
...

But I have pip installed:

# which pip
/bin/pip

How to define path correctly (path => ["/bin"] is not working)?

mrh666 commented 9 years ago

Anyway, quick workaround:

file { '/usr/bin/pip-python':
    ensure  => link,
    target  => '/usr/bin/pip',
  }
ajcrowe commented 9 years ago

Is this a RHEL7/CentOS 7 thing to install pip to /bin/pip?

There was a work around for RedHat based OS's see https://github.com/ajcrowe/puppet-supervisord/blob/master/manifests/pip.pp#L25

Maybe this isn't working?

ajcrowe commented 9 years ago

I will add centos 7 to the beaker nodes and give it a test when I can

ajcrowe commented 8 years ago

Can you check this is still a problem @sebfek @mrh666 I didn't see a problem with my acceptance tests

ajcrowe commented 8 years ago

Closing as fixed