diff options
author | mh <mh@immerda.ch> | 2010-01-08 10:53:26 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-01-08 10:53:26 +0100 |
commit | 4b0fb47373819e378cca474829b2c5c10abdd54a (patch) | |
tree | 9f3498b69e9aa11cc3f4cd0407a2dd2e54ca7485 | |
parent | e3f34801e95b51b8992a14b32a2ff7a552e28cf3 (diff) |
make the template options optional
-rw-r--r-- | manifests/web/repo.pp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/web/repo.pp b/manifests/web/repo.pp index c79f73a..b9a27da 100644 --- a/manifests/web/repo.pp +++ b/manifests/web/repo.pp @@ -3,10 +3,13 @@ # projects_list: which repos to export define git::web::repo( $ensure = 'present', - $projectroot, - $projects_list, + $projectroot = 'absent', + $projects_list = 'absent', $sitename = 'absent' ){ + if ($ensure == 'present') and (($projects_list == 'absent') or ($projectroot == 'absent')){ + fail("You have to pass \$project_list and \$projectroot for ${name} if it should be present!") + } include git::web $gitweb_url = $name case $gitweb_sitename { |