Skip to content

Commit

Permalink
Merge pull request #10 from Mylezeem/ws_servername
Browse files Browse the repository at this point in the history
vhost: Allow one to specify the vhost servername
  • Loading branch information
thejandroman committed Jul 1, 2014
2 parents 8a47c7b + 7f5b0ee commit acd8aca
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ Should the module manage git.
**Default:** _true_
Should the module manage the webserver.

#####`ws_servername`
**Data Type:** _string_
**Default:** _kibana3_
Change the default servername for the apache vhost. Only taken into account if `manage_ws => true`.

#####`ws_port`
**Data Type:** _bool_
**Default:** _true_
Expand Down
9 changes: 7 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
# [*manage_ws*]
# Should the module manage the webserver.
#
# [*ws_servername*]
# Specify the virtual host servername . Only taken
# into account if manage_ws => true.
#
# [*ws_port*]
# Change the default port for the webserver to a custom value. Only taken
# into account if manage_ws => true.
Expand Down Expand Up @@ -86,8 +90,9 @@

$manage_git = $::kibana3::params::manage_git,

$manage_ws = $::kibana3::params::manage_ws,
$ws_port = $::kibana3::params::ws_port,
$manage_ws = $::kibana3::params::manage_ws,
$ws_servername = $::kibana3::params::ws_servername,
$ws_port = $::kibana3::params::ws_port,

) inherits kibana3::params {

Expand Down
2 changes: 1 addition & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
->
apache::vhost {
'kibana3':
$::kibana3::ws_servername :
port => $::kibana3::ws_port,
docroot => "${::kibana3::k3_install_folder}/src",
docroot_owner => $_ws_user,
Expand Down
5 changes: 3 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

$manage_git = true

$manage_ws = true
$ws_port = '80'
$manage_ws = true
$ws_servername = 'kibana3'
$ws_port = '80'
}

0 comments on commit acd8aca

Please sign in to comment.