Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-2595

Enable a rulebook activation to launch jobs across multiple controller instances

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 2.5, 2.6
    • event-driven-ansible
    • False
    • Hide

      None

      Show
      None
    • False

      1. What is the nature and description of the request?
        1. Customer: StateStreet Corp 
        2. This came up during a recent PoC for E2E automation of ServiceNow incidents.
      2. Why does the customer need this? (List the business requirements here)
        1. They would like to leverage EDA to launch job templates across multiple automation controller environments. They have an event stream setup from their event source but the event source is ServiceNow which encompasses all environments. They want to be able to execute jobs in controller but filter to the appropriate domain/env (e.g. Dev, Test, UAT, Prod)
        2. In a PoC environment it wasn't a dealbreaker to circumvent this by creating a credential/rulebook activation for each environment. However as they scale their EDA architecture for production and maintain this setup their desired end state is to have one rulebook per task/incident type in EDA that can launch jobs across multiple controllers based on referenced vars.
      3. How would you like to achieve this? (List the functional requirements here)
        1. If possible it would be nice to achieve this with rulebook variables or allow the use/filtering with multiple credentials to be attached to the rulebook activation.
        2. Initially this is what the customer was attempting: 

      ```
      rules:

          # Rule 1: Process Dynatrace OneAgent Down incidents

          - name: Handle Dynatrace OneAgent Down Alert for LAB

            condition: event.payload.env in ["DEV", "DEVTEST", "LAB", "PRD", "UAT"]

            action:

              run_job_template:

                name: “{{ IAT_{{ event.payload.env }}_Job_EDA_Service_check_Linux”

                organization: AWX

                controller_url: "{{ env_map[event.payload.env | lower].host }}"

                controller_username: "{{ env_map[event.payload.env | lower].username }}"

                controller_password: "{{ env_map[event.payload.env | lower].password }}"

                job_args: 

                  extra_vars:

                    incident_number: "{{ event.payload.incident_number | default('unknown') }}"

                    Env: "{{ event.payload.Env | default('unknown') }}"

                    Hostname: "{{ event.payload.hostname | default('unknown') }}"

                    service_name: "{{ event.payload.service_name | default('unknown') }}"

                    assignment_group: "{{ event.payload.assignment_group | default('unknown') }}"```

      1. List any affected known dependencies: EDA, Controller, Gateway. 
      2. PoC Repo: https://github.com/hammer-redhat/snow-eda-content 

              dmendoza@redhat.com Dafne Mendoza
              chrhamme@redhat.com Chris Hammer
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: