summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp18
1 files changed, 16 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index af9c008..23f1d7f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -15,8 +15,13 @@
15# Class to install kibana frontend to logstash. 15# Class to install kibana frontend to logstash.
16# 16#
17class kibana ( 17class kibana (
18 $discover_nodes = ['localhost:9200'], 18 $discover_nodes = ['localhost:9200'],
19 $version = 'ruby', 19 $version = 'ruby',
20 $js_vhost_name = $::fqdn,
21 $js_vhost_aliases = [],
22 $js_vhost_template = 'kibana/dual-elasticsearch.vhost.erb',
23 $js_elasticsearch_prefix = '/',
24 $js_elasticsearch_url = 'http://localhost:9200',
20) { 25) {
21 26
22 group { 'kibana': 27 group { 'kibana':
@@ -46,6 +51,15 @@ class kibana (
46 'ruby': { 51 'ruby': {
47 include ::kibana::ruby 52 include ::kibana::ruby
48 } 53 }
54 'js': {
55 class { '::kibana::js':
56 vhost_name => $js_vhost_name,
57 vhost_aliases => $js_vhost_aliases,
58 vhost_template => $js_vhost_template,
59 elasticsearch_prefix => $js_elasticsearch_prefix,
60 elasticsearch_url => $js_elasticsearch_url,
61 }
62 }
49 default: { 63 default: {
50 fail("Unknown version: ${version}") 64 fail("Unknown version: ${version}")
51 } 65 }