This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yaml-language-server: $schema=https://raw.githubusercontent.com/mkanoor/ansible-rulebook/condition_ast/ansible_rulebook/schema/ruleset_schema.json | |
| - hosts: localhost | |
| name: demo | |
| sources: | |
| - ansible.eda.generic: | |
| payload: | |
| - zebra: false | |
| - i: 3 | |
| - msg: Hello World | |
| - f: 3.14159 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Test run job templates | |
| hosts: all | |
| sources: | |
| - ansible.eda.webhook: | |
| port: 4444 | |
| host: 0.0.0.0 | |
| filters: | |
| - ansible.eda.insert_hosts_to_meta: | |
| host_path: "payload.meta.host" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Test run job templates | |
| hosts: all | |
| sources: | |
| - ansible.eda.webhook: | |
| port: 4444 | |
| host: 0.0.0.0 | |
| rules: | |
| - name: "Run job template" | |
| condition: event.payload.i == 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: localhost | |
| user: root | |
| connection: local | |
| gather_facts: no | |
| vars: | |
| key_file: /tmp/testing.key | |
| key_pass_phrase: passphrase | |
| tasks: | |
| - name: add identity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: kafka listener | |
| hosts: all | |
| sources: | |
| - name: Checked Kafka | |
| checked: true | |
| ansible.eda.kafka: | |
| host: "{{ MY_KAFKA_HOST | default('localhost') }}" | |
| topic: "{{ MY_KAFKA_TOPIC | default('demo') }}" | |
| port: 9092 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fields: | |
| - id: host | |
| type: string | |
| label: Kafka Host | |
| help_text: Address of Kafka Host | |
| - id: port | |
| type: string | |
| label: Kafka Port | |
| help_text: Kafka Port | |
| - id: topic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| env: | |
| KRB5_CONFIG: '{{ eda.filename.kerberos_config_file }}' | |
| KRB5_KTNAME: '{{ eda.filename.keytab_file }}' | |
| KRB5_CLIENT_KTNAME: '{{ eda.filename.keytab_file }}' | |
| file: | |
| template.keytab_file: '{{ keytab }}' | |
| template.kerberos_config_file: '{{ kerberos_config }}' | |
| extra_vars: | |
| host: '{{ host }}' | |
| port: '{{ port }}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Test event splitter filter | |
| hosts: localhost | |
| sources: | |
| - ansible.eda.generic: | |
| payload: | |
| - incident: | |
| id: 671561b1831671506180bea5 | |
| active: false | |
| alerts: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| env: | |
| KRB5_CONFIG: '{{ eda.filename.kerberos_config_file }}' | |
| KRB5_KTNAME: '{{ eda.filename.keytab_file }}' | |
| KRB5_CLIENT_KTNAME: '{{ eda.filename.keytab_file }}' | |
| file: | |
| template.keytab_file: '{{ keytab }}' | |
| template.kerberos_config_file: '{{ kerberos_config }}' | |
| extra_vars: | |
| host: '{{ host }}' | |
| port: '{{ port }}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x-environment: | |
| &common-env | |
| - EDA_DB_HOST=postgres | |
| - EDA_MQ_HOST=${EDA_MQ_HOST:-redis} | |
| - EDA_MQ_PORT=${EDA_MQ_PORT:-6379} | |
| - EDA_MQ_REDIS_HA_CLUSTER_HOSTS=${EDA_MQ_REDIS_HA_CLUSTER_HOSTS:-} | |
| - DJANGO_SETTINGS_MODULE=aap_eda.settings.default | |
| - EDA_DB_PASSWORD=secret | |
| - EDA_SECRET_KEY=secret | |
| - EDA_ALLOWED_HOSTS=['*'] |