Skip to content

Commit

Permalink
Add apache::mod::ssl and update vhosts appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
hunner committed Aug 17, 2012
1 parent e4c6689 commit ee37f21
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
3 changes: 3 additions & 0 deletions manifests/mod/ssl.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class apache::mod::ssl {
apache::mod { 'ssl': }
}
16 changes: 2 additions & 14 deletions manifests/ssl.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
# Sample Usage:
#
class apache::ssl {

include apache

if $::osfamily == 'redhat' or $::operatingsystem == 'amazon' {
package { 'apache_ssl_package':
ensure => installed,
name => $apache::params::ssl_package,
require => Package['httpd'],
}
} elsif $::osfamily == 'debian' {
a2mod { 'ssl': ensure => present, }
} else {
fail( "${::operatingsystem} not defined in apache::ssl.")
}
warning('apache::ssl is deprecated; please use apache::mod::ssl')
include apache::mod::ssl
}
2 changes: 1 addition & 1 deletion manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}

if $ssl == true {
include apache::ssl
include apache::mod::ssl
}

# Since the template will use auth, redirect to https requires mod_rewrite
Expand Down
2 changes: 1 addition & 1 deletion manifests/vhost/proxy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
$srvname = $name

if $ssl == true {
include apache::ssl
include apache::mod::ssl
}

file { "${priority}-${name}":
Expand Down
1 change: 0 additions & 1 deletion tests/ssl.pp

This file was deleted.

0 comments on commit ee37f21

Please sign in to comment.