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:
Monty Taylor 2012-07-23 11:54:48 -05:00
parent 4b97b6ef39
commit aa77402660
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,6 @@
class lodgeit {
$packages = [ "nginx",
"python-imaging",
"python-pip",
"python-jinja2",
"python-pybabel",
"python-werkzeug",
@ -11,12 +10,14 @@ class lodgeit {
"drizzle",
"python-mysqldb" ]
include pip
package { $packages: ensure => present }
package { 'SQLAlchemy':
provider => pip,
ensure => present,
require => Package[python-pip]
require => Class[pip]
}
file { '/srv/lodgeit':