GithubHelp home page GithubHelp logo

ansible-1's Introduction

#Ansible Playbooks and Roles ######From me (@mrlesmithjr) to the community ###The goal of this repo is to maintain a consistent configuration across hosts. #####This repo will always be updated on a continuous basis and all feedback is encouraged and welcomed.

Master - Main ready to consume branch...May be extremely outdated
Staging - Pre-Master branch...
Dev - Development branch...Bleeding edge functionality (Initially will be completely different than Master due to redesign)

##Requirements ####The majority of variables are configurable in group_vars/all ######The goal of this is to keep a consistent single place to update site-wide variables.

##Playbooks ####bootstrap.yml ######Used as phase one of deployments... bootstraps hosts ####site.yml ######Phase two of deployments... configures base settings and install base packages that should be site-wide ####sensu.yml ######Installs Sensu Server and Sensu Clients

####elkstack_prod.yml ######Builds ELKStack Highly Available, Scalable environment

##Role Name ##Requirements ##ELKStack - Requirements #####Build out the following hosts and modify hosts to reflect name changes...lines with [] define a group name to be added to hosts. #####Lines that contain [1:x] are regex values to define multiple hosts.

elk-p-haproxy-[1:2]
elk-p-broker-[1:3]
elk-p-es-[1:3]
elk-p-pre-processor-[1:2]
elk-p-processor-[1:4]
[elk-p-nodes]
elk-p-haproxy-[1:2]
elk-p-broker-[1:3]
elk-p-es-[1:3]
elk-p-pre-processor-[1:2]
elk-p-processor-[1:4]
[elk-p-haproxy-nodes]
elk-p-haproxy-[1:2]
[elk-p-broker-nodes]
elk-p-broker-[1:3]
[elk-p-es-nodes]
elk-p-es-[1:3]
[elk-p-pre-processor-nodes]
elk-p-pre-processor-[1:2]
[elk-p-processor-nodes]
elk-p-processor-[1:4]

You will need to update group_vars and host_vars to tailor to your environment... Ex. Host naming and etc.

group_vars/all
group_vars/elk-p-broker-nodes
group_vars/elk-p-es-nodes
group_vars/elk-p-haproxy-nodes
group_vars/elk-p-nodes
group_vars/elk-p-pre-processor-nodes
group_vars/elk-p-processor-nodes
host_vars/elk-p-haproxy-1
host_vars/elk-p-haproxy-2

##Role Variables

##Dependencies

##Example Playbook ###ELKStack example playbook....included in this repo

---
- hosts: elk-p-nodes
  remote_user: remote
  sudo: yes
  roles:
    - { role: disable-firewall, when: not enable_firewall }
    - { role: enable-firewall, when: enable_firewall }
    - base
    - elk-network-tweaks

- hosts: elk-p-broker-nodes
  remote_user: remote
  sudo: yes
  roles:
    - { role: redis, when: use_redis }
    - { role: rabbitmq, when: use_rabbitmq }
    - nginx
    - elasticsearch
    - elk-broker
    - elk-kibana
    - elk-tuning

- hosts: elk-p-es-nodes
  remote_user: remote
  sudo: yes
  roles:
    - elasticsearch
    - elk-es
    - elk-tuning

- hosts: elk-p-pre-processor-nodes
  remote_user: remote
  sudo: yes
  roles:
    - logstash
    - elk-pre-processor
    - dnsmasq

- hosts: elk-p-processor-nodes
  remote_user: remote
  sudo: yes
  roles:
    - elasticsearch
    - logstash
    - elk-processor
    - dnsmasq

- hosts: elk-p-haproxy-nodes
  remote_user: remote
  sudo: yes
  roles:
    - logstash
    - haproxy
    - elk-haproxy

##License GNU General Public License Version 2

##Author Information Larry Smith Jr.

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.