summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp11
-rw-r--r--manifests/settings.pp14
2 files changed, 23 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8ce7605..d3dcfdf 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -7,10 +7,9 @@
# Requires:
# - puppetlabs-apache
# Sample Usage:
+#
class gitweb {
- include apache
-
package { "gitweb":
ensure => present,
}
@@ -23,4 +22,12 @@ class gitweb {
source => "puppet:///modules/gitweb/gitweb.conf",
require => Package["gitweb"],
}
+
+ apache::vhost { "$site_alias":
+ priority => "10",
+ port => "443",
+ ssl => true,
+ docroot => "/var/www/git",
+ template => "gitweb/apache-gitweb.conf.erb",
+ }
}
diff --git a/manifests/settings.pp b/manifests/settings.pp
new file mode 100644
index 0000000..ba31247
--- /dev/null
+++ b/manifests/settings.pp
@@ -0,0 +1,14 @@
+# Class: gitweb::settings
+#
+# Parameters:
+#
+# Actions:
+#
+# Requires:
+#
+# Sample Usage:
+#
+class gitweb::settings (
+ $site_alias = "gitweb",
+) {
+}