summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Thebo <adrien.thebo@gmail.com>2011-05-23 17:23:52 -0700
committerAdrien Thebo <adrien.thebo@gmail.com>2011-05-23 17:25:20 -0700
commitc9e633c9483f2d0f1a69d380897354b11dbc4a35 (patch)
tree5cd128b909c3189cdbb35eebc8daa13cb26ea9ad
parentc63f313fabe1b9a180f1e6f44fbdef43ed18019b (diff)
Added apache vhost, settings manifest
-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",
+) {
+}