Added missing file parameters to apache module.
This commit is contained in:
parent
0e1976f08c
commit
95d3d822d6
1 changed files with 23 additions and 10 deletions
|
@ -57,6 +57,9 @@ class apache::server inherits apache::common {
|
|||
file { "/etc/httpd/conf/httpd.conf":
|
||||
ensure => present,
|
||||
content => template("apache/httpd.conf.erb"),
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
require => Package["httpd"],
|
||||
notify => Service["httpd"],
|
||||
}
|
||||
|
@ -123,6 +126,9 @@ define apache::site($root="", $config="") {
|
|||
|
||||
file { "/etc/httpd/site.http.d/${site_fqdn}.conf":
|
||||
ensure => present,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
notify => Service["httpd"],
|
||||
}
|
||||
|
||||
|
@ -163,6 +169,9 @@ class apache::sslserver inherits apache::common {
|
|||
|
||||
file { "/etc/httpd/conf/httpsd.conf":
|
||||
ensure => present,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
content => template("apache/httpsd.conf.erb"),
|
||||
require => Package["httpd"],
|
||||
notify => Service["httpsd"],
|
||||
|
@ -177,8 +186,9 @@ class apache::sslserver inherits apache::common {
|
|||
}
|
||||
|
||||
file { "/usr/sbin/httpsd":
|
||||
ensure => link,
|
||||
target => "/usr/sbin/httpd",
|
||||
ensure => link,
|
||||
target => "/usr/sbin/httpd",
|
||||
require => Package["httpd"],
|
||||
}
|
||||
|
||||
service { "httpsd":
|
||||
|
@ -292,6 +302,9 @@ define apache::sslsite($root="", $config="", $ssl_cert="", $ssl_key="", $ssl_cha
|
|||
|
||||
file { "/etc/httpd/site.https.d/${site_fqdn}.conf":
|
||||
ensure => present,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
notify => Service["httpsd"],
|
||||
require => [ File["/etc/pki/tls/certs/${site_fqdn}.crt"],
|
||||
File["/etc/pki/tls/private/${site_fqdn}.key"], ],
|
||||
|
@ -344,10 +357,10 @@ define apache::configfile($source="", $content="", $http=true, $https=true) {
|
|||
true => present,
|
||||
default => absent,
|
||||
},
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
notify => Service["httpd"],
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
notify => Service["httpd"],
|
||||
}
|
||||
if $source {
|
||||
File["/etc/httpd/conf.http.d/${name}"] {
|
||||
|
@ -377,10 +390,10 @@ define apache::configfile($source="", $content="", $http=true, $https=true) {
|
|||
true => present,
|
||||
default => absent,
|
||||
},
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
notify => Service["httpsd"],
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
notify => Service["httpsd"],
|
||||
}
|
||||
if $source {
|
||||
File["/etc/httpd/conf.https.d/${name}"] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue