Fixed ejabberd and vsroom modules with Puppet 2.7
This commit is contained in:
parent
e43512adad
commit
c83dcc03f3
2 changed files with 16 additions and 15 deletions
|
@ -103,6 +103,14 @@ class ejabberd {
|
|||
notify => Service["ejabberd"],
|
||||
}
|
||||
|
||||
define configwebhost() {
|
||||
file { "/srv/www/https/${name}/jabber":
|
||||
ensure => link,
|
||||
target => "/var/www/jabber",
|
||||
require => File["/srv/www/https/${name}"],
|
||||
}
|
||||
}
|
||||
|
||||
if $ejabberd_webhosts {
|
||||
file { "/var/www/jabber":
|
||||
ensure => directory,
|
||||
|
@ -125,14 +133,6 @@ class ejabberd {
|
|||
source => "puppet:///modules/ejabberd/ejabberd-httpd.conf",
|
||||
}
|
||||
|
||||
define configwebhost() {
|
||||
file { "/srv/www/https/${name}/jabber":
|
||||
ensure => link,
|
||||
target => "/var/www/jabber",
|
||||
require => File["/srv/www/https/${name}"],
|
||||
}
|
||||
}
|
||||
|
||||
configwebhost { $ejabberd_webhosts: }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,14 +115,15 @@ class vsroom {
|
|||
source => "puppet:///modules/vsroom/vsroom-httpd.conf",
|
||||
}
|
||||
|
||||
if $vsroom_webhosts {
|
||||
define configwebhost() {
|
||||
file { "/srv/www/https/${name}/vsroom":
|
||||
ensure => link,
|
||||
target => "/var/www/vsroom",
|
||||
require => File["/srv/www/https/${name}"],
|
||||
}
|
||||
define configwebhost() {
|
||||
file { "/srv/www/https/${name}/vsroom":
|
||||
ensure => link,
|
||||
target => "/var/www/vsroom",
|
||||
require => File["/srv/www/https/${name}"],
|
||||
}
|
||||
}
|
||||
|
||||
if $vsroom_webhosts {
|
||||
configwebhost { $vsroom_webhosts: }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue