ejabberd: Create htdocs parent directory
This commit is contained in:
parent
eae7f237fd
commit
f0186ab3b6
1 changed files with 10 additions and 10 deletions
|
@ -266,22 +266,22 @@ class ejabberd(
|
||||||
default: { }
|
default: { }
|
||||||
}
|
}
|
||||||
|
|
||||||
$htdocs = '/usr/share/ejabberd/htdocs'
|
|
||||||
|
|
||||||
if $webhosts {
|
if $webhosts {
|
||||||
include apache::mod::proxy
|
include apache::mod::proxy
|
||||||
include apache::mod::proxy_http
|
include apache::mod::proxy_http
|
||||||
include apache::mod::rewrite
|
include apache::mod::rewrite
|
||||||
|
|
||||||
file { $htdocs:
|
file { [
|
||||||
ensure => directory,
|
'/usr/share/ejabberd',
|
||||||
mode => '0755',
|
'/usr/share/ejabberd/htdocs',
|
||||||
owner => 'root',
|
]:
|
||||||
group => 'root',
|
ensure => directory,
|
||||||
require => Package['ejabberd'],
|
mode => '0755',
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "${htdocs}/.htaccess":
|
file { '/usr/share/ejabberd/htdocs/.htaccess':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
@ -300,7 +300,7 @@ class ejabberd(
|
||||||
}
|
}
|
||||||
|
|
||||||
ejabberd::configwebhost { $webhosts:
|
ejabberd::configwebhost { $webhosts:
|
||||||
htdocs => $htdocs,
|
htdocs => '/usr/share/ejabberd/htdocs',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue