cristian04.cloudwatch_monitoring
ansible-role-cloudwatch-monitoring
This role installs the latest AWS CloudWatch monitoring tool.
Tested on Ansible version 2.2.0.0
How To
Installation
Run the following command to install the role:
ansible-galaxy install cristian04.cloudwatch-monitoring
Recommendations:
- Avoid adding the role to Source Control. Use
ansible-galaxy
instead. - You can create a
requirements
file by runningansible-galaxy list >> galaxy.roles.yml
. - To install all the
ansible-galaxy
dependencies, runansible-galaxy install -r galaxy.roles.yml
. - Make sure your
ansible.cfg
file has the correct path to the roles. - You can change the path in
ansible.cfg
using the-p
option. Example:ansible-galaxy install -r galaxy.roles.yml -p roles/
.
Role Variables
Check the cloudwatch-monitoring/defaults
folder for an example file.
- cloud_watch_monitoring_path: /opt
- path: /
- cron_specs:
- { name: "Cloudwatch monitoring", minute: "/5", hour: "", job: "{{ cloud_watch_monitoring_path }}/aws-scripts-mon/mon-put-instance-data.pl --disk-space-util --disk-path={{ path }} --from-cron --aws-access-key-id={{ cloudwatch_aws_key }} --aws-secret-key={{ cloudwatch_aws_secret_key }}" }
TODOs
- Add tests
- Create Vagrant images for testing
License
BSD
Author Information
Cristian Marquez Russo.
This work is based on the efforts of Amrit Singh.
Installa
ansible-galaxy install cristian04.cloudwatch_monitoring
Licenza
Unknown
Download
2.6k
Proprietario