riponbanik.ansible_role_aws_cloudwatch_agent
Ansible-Rolle zur Installation und Konfiguration des AWS Cloudwatch Agenten auf Windows und Linux
Anforderungen
Keine.
Rollenvariablen
Verfügbare Variablen sind unten aufgeführt, zusammen mit den Standardwerten (siehe defaults/main.yml
):
Überwachung von Windows-Ereignisprotokollen
aws_cw_windows_events:
- name: 'System'
levels: ['ERROR', 'CRITICAL']
format: 'text'
log_group: 'Windows/System'
- name: 'Anwendung'
levels: ['ERROR']
format: 'text'
log_group: 'Windows/Application'
Überwachung von Protokolldateien
aws_cw_logfiles
- path: /var/log/auth.log
timestamp_format: "%b %d %H:%M:%S"
log_group: "auth"
```
Ermöglicht die Verwendung einer benutzerdefinierten Cloudwatch-Vorlage, z.B. das Folgende kann auf derselben Ebene wie das Playbook platziert werden
aws_cw_config_template_path: 'templates/CloudwatchConfig.json'
Debug-Protokoll aktivieren
aws_cw_log_debug: true
Konfiguration für On-Prem - Erfordert die Erstellung eines Standard-AWS-Profils mit Zugriffs- und Geheimschlüssel
aws_cw_agent_type: onPremise aws_profile: AmazonCloudWatchAgent aws_profile_path: '/tmp/credentials'
```
Abhängigkeiten
Keine.
Beispiel-Playbook
- hosts: alle
roles:
- { role: riponbanik.aws-cloudwatch-agent }
Lizenz
MIT / BSD
Autorinformationen
Diese Rolle wurde 2019 von Ripon Banik erstellt.
Installieren
ansible-galaxy install riponbanik.ansible_role_aws_cloudwatch_agent
Lizenz
mit
Downloads
9.8k
Besitzer
Explorer of new technology