vsroom: Fixed parameter names

This commit is contained in:
Ossi Salmi 2013-07-19 18:23:41 +03:00
parent dc535f26aa
commit 16644e0ad6
2 changed files with 12 additions and 8 deletions

View file

@ -2,14 +2,18 @@
# #
# === Parameters # === Parameters
# #
# $vsroom_authurl: # $authurl:
# Authentication path. Defaults to "/collab/?action=authcredentials". # Authentication path. Defaults to "/collab/?action=authcredentials".
# #
# $vsroom_boshurl: # $boshurl:
# XMPP BOSH path. Defaults to "/bosh/". # XMPP BOSH path. Defaults to "/bosh/".
# #
class vsroom($vsroom_authurl="/collab/?action=authcredentials", # $webhosts:
$vsroom_boshurl="/bosh/") { # List of vsroom virtual hosts
#
class vsroom($authurl="/collab/?action=authcredentials",
$boshurl="/bosh/",
$webhosts=undef) {
case $::operatingsystem { case $::operatingsystem {
"centos","redhat": { "centos","redhat": {
@ -70,13 +74,13 @@ class vsroom($vsroom_authurl="/collab/?action=authcredentials",
} }
} }
if $vsroom_webhosts { if $webhosts {
apache::configfile { "vsroom.conf": apache::configfile { "vsroom.conf":
http => false, http => false,
source => "puppet:///modules/vsroom/vsroom-httpd.conf", source => "puppet:///modules/vsroom/vsroom-httpd.conf",
} }
configwebhost { $vsroom_webhosts: configwebhost { $webhosts:
htdocs => $htdocs, htdocs => $htdocs,
} }
} }

View file

@ -1,4 +1,4 @@
{ {
"authUrl": "<%= @vsroom_authurl %>", "authUrl": "<%= @authurl %>",
"boshUrl": "<%= @vsroom_boshurl %>" "boshUrl": "<%= @boshurl %>"
} }