Skip to content
Browse files

Allow users to override params: require the class but dont include it

  • Loading branch information...
1 parent 558a241 commit 64241bf46c5b6ec59d52e6708bf0bad5051df3bf @vStone vStone committed Mar 4, 2012
Showing with 4 additions and 1 deletion.
  1. +0 −1 manifests/init.pp
  2. +2 −0 manifests/install.pp
  3. +2 −0 manifests/repo.pp
View
1 manifests/init.pp
@@ -1,4 +1,3 @@
class git {
- include git::params
include git::install
}
View
2 manifests/install.pp
@@ -1,3 +1,5 @@
class git::install {
+ require git::params
+
package {$git::params::pkg: ensure => installed }
}
View
2 manifests/repo.pp
@@ -1,5 +1,7 @@
define git::repo($target, $bare = false, $source = false, $user = 'root') {
+ require git::params
+
if $source {
$cmd = "${git::params::bin} clone $source $target --recursive"
} else {

0 comments on commit 64241bf

Please sign in to comment.
Something went wrong with that request. Please try again.