Permalink
Browse files

Add hub to base.

  • Loading branch information...
1 parent c502b49 commit 0322305eefe98f9797f040b99bd3fa6c695ef462 @mythmon mythmon committed Apr 13, 2012
Showing with 13 additions and 4 deletions.
  1. +2 −1 manifests/templates/templates.pp
  2. +11 −3 modules/git/manifests/init.pp
@@ -15,9 +15,10 @@
"wheel": ensure => present;
}
- include git
include python::dev
include bc
+
+ class { "git": hub => true }
}
node server inherits base {
@@ -1,5 +1,13 @@
-class git {
- package { "git":
- ensure => present,
+class git ($hub=false) {
+ package { "git":
+ ensure => present,
+ }
+
+ package { "hub":
+ provider => "gem",
+ ensure => $hub ? {
+ true => present,
+ false => absent,
}
+ }
}

0 comments on commit 0322305

Please sign in to comment.