From c9e633c9483f2d0f1a69d380897354b11dbc4a35 Mon Sep 17 00:00:00 2001 From: Adrien Thebo Date: Mon, 23 May 2011 17:23:52 -0700 Subject: Added apache vhost, settings manifest --- manifests/init.pp | 11 +++++++++-- manifests/settings.pp | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 manifests/settings.pp 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", +) { +} -- cgit v1.2.3