Skip to content

Commit

Permalink
Create symlink for pip-python with pip provider
Browse files Browse the repository at this point in the history
Puppet is opinionated about the name of the `pip` binary.

Closes voxpupuli#225
  • Loading branch information
Scott Merrill committed Sep 24, 2015
1 parent 2f17c2e commit a2df8c4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,16 @@
unless => '/usr/bin/which pip',
require => Package['python'],
}
Exec['bootstrap pip'] -> Package <| provider == pip |>

# Puppet is opinionated about the pip command name
file { 'pip-python':
ensure => link,
path => '/usr/bin/pip-python',
target => '/usr/bin/pip',
require => Exec['bootstrap pip'],
}

Exec['bootstrap pip'] -> File['pip-python'] -> Package <| provider == pip |>

Package <| title == 'pip' |> {
name => 'pip',
Expand Down

0 comments on commit a2df8c4

Please sign in to comment.