-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split old repository into chunks for each role
- Loading branch information
0 parents
commit dc4e077
Showing
6 changed files
with
456 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2013 John Hamelink | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
kibana, elasticsearch, logstash, logstash-forwarder ansible roles | ||
================================================================= | ||
|
||
Setup | ||
----- | ||
|
||
Start up two clean ubuntu 13.10 x64 servers. One will be for logstash, elastic search and kibana, the other will be for logstash-forwarder. | ||
|
||
Generate SSL keys by running: | ||
|
||
openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout logstash-forwarder.key -out logstash-forwarder.crt | ||
|
||
Copy the resultant .key and .crt files to `roles/logstash/files/certs` and `roles/logstash-forwarder/files/certs`. | ||
|
||
Copy `vars/global_vars.yml.sample` and customise it to suit your setup - it should be fairly self explanatory. | ||
|
||
Generate a htpasswd file (You can use an online tool if you don't have apache installed - [this one is known to work](http://www.htpasswdgenerator.net/)) and put it in `roles/kibana/files/htpasswd`. | ||
|
||
Add `elastic_search`, `kibana`, `logstash`, and `logstash-forwarder` groups to your ansible hosts file | ||
|
||
Installation | ||
------------ | ||
|
||
### Elastic Search: | ||
|
||
`ansible-playbook elastic_search.yml` | ||
|
||
### Kibana: | ||
|
||
`ansible-playbook kibana.yml` | ||
|
||
### Logstash: | ||
|
||
`ansible-playbook logstash.yml` | ||
|
||
### Logstash-forwarder: | ||
|
||
`ansible-playbook logstash-forwarder.yml` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- hosts: elastic_search | ||
user: "{{ user }}" | ||
sudo: yes | ||
|
||
vars_files: | ||
- vars/global_vars.yml | ||
|
||
roles: | ||
- { role: elastic_search } |
Oops, something went wrong.