1 |
class apache { |
class apache { |
2 |
|
|
3 |
|
$vhost_dir = "/etc/httpd/conf/vhosts.d" |
4 |
|
|
5 |
class base { |
class base { |
6 |
package { "apache-mpm-prefork": |
package { "apache-mpm-prefork": |
7 |
alias => apache, |
alias => apache, |
58 |
|
|
59 |
define vhost_redirect_ssl() { |
define vhost_redirect_ssl() { |
60 |
file { "redirect_ssl_$name.conf": |
file { "redirect_ssl_$name.conf": |
61 |
path => "/etc/httpd/conf/vhosts.d/redirect_ssl_$name.conf", |
path => "$vhost_dir/redirect_ssl_$name.conf", |
62 |
ensure => "present", |
ensure => "present", |
63 |
owner => root, |
owner => root, |
64 |
group => root, |
group => root, |
73 |
include apache::mod_fastcgi |
include apache::mod_fastcgi |
74 |
|
|
75 |
file { "$name.conf": |
file { "$name.conf": |
76 |
path => "/etc/httpd/conf/vhosts.d/$name.conf", |
path => "$vhost_dir/$name.conf", |
77 |
ensure => "present", |
ensure => "present", |
78 |
owner => root, |
owner => root, |
79 |
group => root, |
group => root, |