AlbanAndrieu.mon
roles/alban_andrieu_mon
This file was generated by Ansigenome. Do not edit this file directly but instead have a look at the files in the ./meta/ directory.
alban.andrieu.monit role allows you to install and configure Mon monitoring service
which can be used to monitor services on hosts.
Alerts can be sent to an e-mail address (by default
monitoring@<your-domain>.
Installation
This role requires at least Ansible v2.3.0.0. To install it, run:
Using ansible-galaxy:
$ ansible-galaxy install alban.andrieu.mon
Using arm (Ansible Role Manager):
$ arm install alban.andrieu.mon
Using git:
$ git clone https://github.com/AlbanAndrieu/ansible-mon.git
Role dependencies
geerlingguy.apache
Documentation
More information about alban.andrieu.mon can be found in the
TODO official alban.andrieu.mon documentation.
Role variables
List of default variables available in the inventory:
mon_enabled: yes # Enable module
# Repository states: present or absent
mon_repository_state: present
#user: 'albandri' #please override me
user: "{{ lookup('env','USER') }}"
mon_owner: "{{ user }}"
mon_group: "{{ mon_owner }}"
#home: '~' #please override me
home: "{{ lookup('env','HOME') }}"
mon_owner_home: "{{ home }}"
mon_home: "{{ mon_owner_home }}/.mon"
mon_base_dir: "/etc/mon"
mon_pkg_state: present
mon_config_directory: "/etc/mon"
mon_admin_email: "[email protected]"
mon_weekly_email: "[email protected]"
mon_weekend_email: "{{ mon_admin_email }}"
mon_user_enabled: no
mon_user: ""
mon_localhost : "albandri"
mon_custom_group: "test"
#mon_hostgroup_custom_group : "server1 server2"
mon_hostgroup_custom_group : "{{ mon_localhost }}"
mon_hostgroup_localhost : "{{ mon_localhost }}"
mon_hostgroup_www : "{{ mon_localhost }}"
mon_hostgroup_fs : "{{ mon_localhost }}"
mon_hostgroup_gw : "{{ mon_localhost }}"
mon_hostgroup_shell : "{{ mon_localhost }}"
mon_hostgroup_ntp : "{{ mon_localhost }}"
mon_hostgroup_dns : "{{ mon_localhost }}"
docker_files_generated_directory: "./"
docker_files_enable: no
docker_volume_directory: "{{ mon_base_dir }}"
docker_working_directory: "/home/vagrant"
docker_image_name: "nabla/ansible-mon"
Testing
$ ansible-galaxy install alban.andrieu.mon
$ vagrant up
Contributing
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.
For pull requests, editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at http://editorconfig.org.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Authors and license
roles/alban_andrieu_mon role was written by:
- Alban Andrieu | e-mail | Twitter | GitHub
License
- License: GPLv3
Feedback, bug-reports, requests, ...
Are welcome!
This role is part of the Nabla project. README generated by Ansigenome.
Alban Andrieu
ansible-galaxy install AlbanAndrieu.mon