-
Notifications
You must be signed in to change notification settings - Fork 18
/
kibana.sls
66 lines (55 loc) · 1.13 KB
/
kibana.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
git:
pkg:
- installed
libapache2-mod-passenger:
pkg:
- installed
ruby:
pkg:
- installed
ruby-dev:
pkg:
- installed
rubygems:
pkg:
- installed
ruby-bundler:
pkg:
- installed
https://github.com/rashidkpc/Kibana.git:
git.latest:
- target: /srv/kibana
- require:
- pkg: git
/etc/apache2/sites-available/logstash:
file:
- managed
- source: salt://files/logstash-apache2.conf
- template: jinja
/usr/sbin/a2dissite 000-default:
cmd:
- run
- onlyif: ls -l /etc/apache2/sites-enabled | grep default
- require:
- pkg: libapache2-mod-passenger
/usr/sbin/a2ensite logstash:
cmd:
- run
- unless: ls -l /etc/apache2/sites-enabled | grep logstash
- require:
- file: /etc/apache2/sites-available/logstash
- pkg: libapache2-mod-passenger
apache2:
service:
- running
- watch:
- file: /etc/apache2/sites-available/logstash
bundle install:
cmd:
- run
- unless: gem list | grep sinatra
- cwd: /srv/kibana
- require:
- pkg: rubygems
- pkg: ruby-bundler
- git: https://github.com/rashidkpc/Kibana.git