Skip to content

Commit

Permalink
Split old repository into chunks for each role
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhamelink committed Dec 30, 2013
0 parents commit dc4e077
Show file tree
Hide file tree
Showing 6 changed files with 456 additions and 0 deletions.
20 changes: 20 additions & 0 deletions LICENSE
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.
39 changes: 39 additions & 0 deletions README.md
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`

10 changes: 10 additions & 0 deletions elastic_search.yml
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 }
Loading

0 comments on commit dc4e077

Please sign in to comment.