Move python-pip include to a class.
You can't have two different classes install the same package (FAIL) But you can have two different classes include the same class, so by encapsulating the "install pip" code into a module, we can safely consume it across multiple modules. Sometimes I really hate puppet. Change-Id: I3467c52b6887298c1b4d01a29873c63edf0adfd3
This commit is contained in:
parent
644e41cfe5
commit
4a741cd56f
|
@ -4,19 +4,12 @@ class github (
|
|||
$projects = []
|
||||
) {
|
||||
|
||||
package { "python-dev":
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
package { "python-pip":
|
||||
ensure => present,
|
||||
require => Package[python-dev]
|
||||
}
|
||||
include pip
|
||||
|
||||
package { "PyGithub":
|
||||
ensure => latest, # okay to use latest for pip
|
||||
provider => pip,
|
||||
require => Package[python-pip]
|
||||
require => Class[pip]
|
||||
}
|
||||
|
||||
group { "github":
|
||||
|
|
Loading…
Reference in New Issue