Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 64241bf46c5b6ec59d52e6708bf0bad5051df3bf 1 parent 558a241
@vStone vStone authored
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 {
Please sign in to comment.
Something went wrong with that request. Please try again.