phil_avery.og_oec

Ansible Rolle: og-oec

Installiert und konfiguriert den Opsgenie Edge Connector auf RedHat/Centos- & Debian/Ubuntu-Servern.

Diese Rolle installiert und konfiguriert die neueste Version des OEC aus dem OpsGenie AWS S3 Bucket (auf RedHat-basierten Systemen) oder apt (auf Debian-basierten Systemen). Nach der Installation von OEC müssen wahrscheinlich zusätzliche Einrichtungsschritte durchgeführt werden, z. B. das Hinzufügen eigener Skripte, auf die in Ihrer OEC-Konfigurationsdatei verwiesen wird.

Die offizielle Atlassian-Dokumentation zum OEC finden Sie hier.

https://docs.opsgenie.com/docs/oec-overview

Hinweis: Diese Rolle kann zusammen mit der oec-runner Rolle verwendet werden, um Ansible Runner mit OEC zu integrieren.

Anforderungen

Keine.

Rollenvariablen

Verfügbare Variablen sind unten aufgelistet, zusammen mit Standardwerten (siehe defaults/main.yml):

MINDESTENS ERFORDERLICH ZUM AUSFÜHREN

conf_apiKey: <Ihr Opsgenie Integrations-API-Schlüssel> 
conf_actions:
  - name: <Aktionsname>
    sourceType: local
    filepath: <Pfad zu Ihrem Skript>

ODER WENN GIT VERWENDET WIRD

conf_apiKey: <Ihr Opsgenie Integrations-API-Schlüssel> 
conf_actions:
  - name: <Aktionsname>
    sourceType: git
    filepath: <Pfad zu Ihrem Skript>
    giturl: https://github.com/repo/name.git
    gitprvkey: Git Privat-Schlüssel
    gitpassphrase: Git Passwortphrase

OEC-Dienstvariablen

oec_conf_source_type: local
oec_conf_local_filepath: /etc/opsgenie/
oec_conf_template: oecconfig.yml.j2
oec_conf_file_path: /etc/opsgenie/
oec_conf_file: oecconfig.yml
__oec_user: opsgenie
oec_group: opsgenie
__oec_svc_name: oec
oec_svc_path: /etc/systemd/system/
oec_svc_template: svc.j2
oec_svc_env_template: svc_env.j2
oec_svc_env_file: oec.env

Globale Konfigurationsvariablen

conf_appName: OEC
conf_baseUrl: https://api.opsgenie.com
conf_logLevel: info
conf_poller_wait: 100
conf_poller_Timeout: 30
conf_poller_maxmsgs: 10
conf_pool_max_workers: 12
conf_pool_min_workers: 4
conf_pool_queueSize: 0
conf_pool_keepalive: 6000
conf_pool_monitoring_period: 15000
conf_globalArgs:
  args:
    - arg1
    - arg2
conf_globalFlag:
  flags:
    - key: key1
      value: value1
    - key: key2
      value: value2
conf_globalEnv:
  env:
    - key: key1
      value: value1
    - key: key2
      value: value2

Aktionszuordnungsvariablen

conf_actions:
  - name: <Aktionsname>
    sourceType: local
    filepath: <Pfad zu Ihrem Skript>
    args:
      - arg1
      - arg2
    flags:
      - key: key1
        value: value1
      - key: key2
        value: value2
    env:
      - key: key1
        value: value1
      - key: key2
        value: value2
    stdout: '/var/log/customaction.log'
    stderr: '/var/log/customaction_err.log'

Benutzerdefinierte Aktion aus Git-Quelle

conf_actions:
  - name: <Aktionsname>
    sourceType: git
    filepath: <Pfad zu Ihrem Skript>
    giturl: https://github.com/repo/name.git
    gitprvkey: Git Privat-Schlüssel
    gitpassphrase: Git Passwortphrase
    args:
      - arg1 
      - arg2
    flags:
      - key: key1
        value: value1
      - key: key2
        value: value2
    env:
      - key: key1
        value: value1
      - key: key2
        value: value2
    stdout: '/var/log/customaction.log'
    stderr: '/var/log/customaction_err.log'

Abhängigkeiten

Keine.

Beispiel Playbook

- hosts: server
  roles:
     - { role: phil_avery.og_oec }

Lizenz

MIT / BSD

Autoreninformationen

Diese Rolle wurde 2019 von Phil Avery erstellt.

Über das Projekt

Opsgenie Edge Connector installation for Linux.

Installieren
ansible-galaxy install phil_avery.og_oec
GitHub Repository
Lizenz
Unknown
Downloads
2.4k
Besitzer