Skip to content

josehelps/splunkconf2015-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splunk Configuration Management and Deployment with Ansible

Bit of the Splunk 2015 Conference talk and example demo.

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 git://github.com/ansible/ansible.git --recursive
  3. cd /etc/ansible
  4. vim hosts #add your hosts
  5. source /opt/ansible/hacking/env-setup
  6. 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 Default Account Information

username: admin password: conf2015

change at playbooks/splunk\_creds/passwd

The cert/key pair deployed are in the same folder. Although I highly recommend you generate your own keypairs

Configure Checkin

  1. add checking script at extra/checkin.sh on search head as hourly cron job
  2. configure .gitconfig with use and email to use for checking extra/gitconfig.example
  3. generate a key pair on the server ssh-keygen -t rsa
  4. add public key cat /root/.ssh/id_rsa.pub to search header branch

About

Ansible playbooks to deploy splunk and track changes with git

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages