cristian04.cloudwatch_monitoring
ansible-role-cloudwatch-monitoring
该角色安装最新的AWS CloudWatch监控。
在Ansible 2.2.0.0上进行了测试。
使用方法
安装
ansible-galaxy install cristian04.cloudwatch-monitoring
建议:
- 不要将角色添加到源控制中。请使用
ansible-galaxy
- 可以通过输入
ansible-galaxy list >> galaxy.roles.yml
创建一个requirements
文件 - 要安装所有
ansible-galaxy
依赖项,请执行ansible-galaxy install -r galaxy.roles.yml
- 你的
ansible.cfg
文件必须配置正确的角色路径。 - 你可以使用
-p
参数重写ansible.cfg
。示例:ansible-galaxy install -r galaxy.roles.yml -p roles/
角色变量
查看cloudwatch-monitoring/defaults
以获取示例文件
- cloud_watch_monitoring_path: /opt
- path: /
- cron_specs:
- { name: "Cloudwatch监控", 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 }}" }
待办事项
- 添加测试
- 添加 Vagrant 镜像进行测试
许可证
BSD
作者信息
Cristian Marquez Russo
基于Amrit Singh的工作
安装
ansible-galaxy install cristian04.cloudwatch_monitoring
许可证
Unknown
下载
2.6k
拥有者