Code Monkey home page Code Monkey logo

remove-from-backups-monitoring's Introduction

remove-from-backups-monitoring

Ansible role to remove a given host (hostname) from my backup system, Bareos, and monitoring system, Nagios4.

How to Use

To use this playbook just run this command.

1. ansible-galaxy install -r requirements.yml -p roles/ --force
2. ansible-playbook master.yml -e @vars/all_vars.yml -i hosts/production

Requirements

Used for personal / internal use. Must use Nagios for monitoring and Bareos for backups and have Bareos files laid out like I do in this role I created

Variables

The hostname of the machine you are removing

	host_name: ""

The Bareos Archive Device location (or file path) where the backups volumes are stored for this host. *** Make sure you do NOT put a path here that has backup volumes for other hosts ***. The variable assignment for archive_device is listed below but can be overridden if you store your host specific backups in a different location.

	archive_device: "/z-storage/backups/{{ host_name }}"

Roles

- stancel.remove-config-from-bareos-server	
- stancel.remove-config-from-nagios-server	

Additional Info

I have setup a bash profile alias to allow calling the playbook and passing the host_name of the server as the first parameter.

alias remove-server='function _remove-server() { cd /Users/Brad/DevOps/Ansible_Playbooks/playbooks/remove-from-backups-monitoring; ansible-playbook master.yml --inventory-file=/Users/Brad/.ansible/hosts -e @vars/all_vars.yml --extra-vars "host_name=$1"; };_remove-server'

remove-from-backups-monitoring's People

Contributors

stancel avatar

Watchers

 avatar

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.