GithubHelp home page GithubHelp logo

sumitsingh306 / ansible-splunk-simple Goto Github PK

View Code? Open in Web Editor NEW

This project forked from josehelps/ansible-splunk-simple

0.0 2.0 0.0 338.44 MB

Simple deployment of Splunk using Ansible, static host lists.

License: MIT License

Shell 31.00% ApacheConf 18.38% Vim Script 50.62%

ansible-splunk-simple's Introduction

ansible-splunk-simple

Simple Splunk deployment using Ansible, see Splunk Blog Post for more information.

Features

  • built and maintain a complete splunk enviroment in minutes
  • adhere by all splunk best practices and OS hardening procedures
  • distro agnostic
  • runs splunk as splunk user
  • can manage your entire splunk installation from one place

TODOs

  • read me for each role
  • add roles to ansible galaxy
  • Finish license_master, cluster_master

Expectations

This ansible package expectes your servers to be ubuntu base OS. The splunk binaries currently set are Splunk 6.2 located under playbooks/splunk_binaries

Installing Ansible

  1. cd /opt
  2. git clone https://github.com/ansible/ansible
  3. cd ansible
  4. git submodule update --init lib/ansible/modules/extras
  5. git submodule update --init lib/ansible/modules/core
  6. mkdir /etc/ansible
  7. cd /etc/ansible
  8. vim hosts #add your hosts
  9. source /opt/ansible/hacking/env-setup
  10. ansible-playbook playbooks/common.yml --list-tasks

Ansible Structure

ansible_structure

Running for the First Time

  • Ansible is installed, see above
  • Make sure you generate your own set of splunk-admin keys for the splunk-admin user. I have included some as an example but I recommend you to generate your own using: ssh-keygen
  • You have root keys copied over to the server you can use # ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host or run ansible for the first time with -k and it will prompt for the root password and copy the root key over.
  • Inventory is configured under hosts file

Splunk Account Information

username: admin

password: buttercup

user: https://...

credentials are stored under playbooks/splunk\_creds The cert/key pair deployed are in the same folder. Although I highly recommend you generate your on keypairs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.