Skip to content

Commit

Permalink
hope this works
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenrjohnson committed Jan 24, 2012
1 parent 0a3964b commit c616170
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
19 changes: 12 additions & 7 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,25 @@
content => template("apache2/vhost.conf.erb");
}

if $ssl != false
{
require apache2::sslkey[$sslkeys]
$sslcert = apache2::sslkey[$sslkeys]::sslcert
$sslkey = apache2::sslkey[$sslkeys]::sslkey
$sslca = apache2::sslkey[$sslkeys]::sslca
}


file { "/etc/apache2/sites-enabled/$name.conf":
ensure => "/etc/apache2/sites-available/$name.conf",
notify => Service[apache2],
ensure => "/etc/apache2/sites-available/$name.conf",
notify => Service[apache2],
}

file { $docroot:
ensure => directory,
require => Package[apache2],
require => Package[apache2],
}

if $ssl != false
{
Apache2::vproxy[$name]->Apache2::sslkey[$sslkeys]
}
}


14 changes: 9 additions & 5 deletions manifests/vproxy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
$aport = $port
}

if $ssl != false
{
require apache2::sslkey[$sslkeys]
$sslcert = apache2::sslkey[$sslkeys]::sslcert
$sslkey = apache2::sslkey[$sslkeys]::sslkey
$sslca = apache2::sslkey[$sslkeys]::sslca

}

file { "/etc/apache2/sites-available/$name.conf":
ensure => present,
mode => 0440,
Expand All @@ -32,11 +41,6 @@
notify => Service[apache2],
}

if $ssl != false
{
require apache2::sslkey[$sslkeys]
}

}


0 comments on commit c616170

Please sign in to comment.