Skip to content

Commit

Permalink
added a more detailed rulebook
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed May 14, 2024
1 parent 0f65bc0 commit 793329b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .ansible-sign/sha256sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ b64a9ce7ade9b8fae7bda827f7a8d179809a8df065c8bafc1af07ae827ffb2aa SNOWSetup/imag
3b6b1d02322d2b0435b86bec366c94c6fe928ab84f0d2b881cf102021c44dddc SNOWSetup/images/workflow_start.jpg
cb3a760e0f134314711929e87e54b3a46d3d4898f0baa2d641000ee1e3b63708 SNOWSetup/images/write_scope.png
b8bc0e6865c91d1d8cedf5bc9faa24782629806c15f99d0b24e3397ec294dcbb SNOWSetup/images/write_scope_deets.png
c605924e1a9368a1e4c2f35e5d950d583d3629bbbfc65c37f1f661ae69d7a93b SNOWSetup/readme.md
331e8faf1aac905b807b353bb9edb5527b9edc9dff023304c63525f786cadffa SNOWSetup/readme.md
8d64a90e1cf927f9adf8074d405a62ec50f4df417865706d1f4bc5ff5bdfeaa5 ServiceNowCR_and_approve.yml
db0cf6bab374ea48077c3898aea1602a570541a49ed82797b7459c9ce9a9824c ServiceNowCR_canceled.yml
675d62c62ed528e495f8144290d181875521766c5cebb9661fc15552f1db1083 ServiceNowCR_closed.yml
Expand Down
22 changes: 11 additions & 11 deletions .ansible-sign/sha256sum.txt.sig
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmY6Jf4ACgkQTiIiIXrU
DNEXTwv+Os1J/7qvwgau3nzRw/LpD3i+GGIiZP6R0Fm6uNkLJL5YS74kRN+k3dyl
3A/RWAEnoyhxHY675G4lGGE7eJmE8Z7UQCQGROcTlyq2uw9xL1KX15gsGXQQ1+IH
6++Jy75iezSKSLw0Z/EEt//orN3yODx6ltRugCyV/Ek/zdZ7uT7rJd50OfnTDfOZ
DpOD+vCVxHhLo7+N8bfiMreKiW/uiJAwinAl/nn5vtmyFal6si5S8CGARkprYCcU
rW6LtjKTIa4jR4HlCAd/YAjoH2Zget1fZpdeM+bQbUnEP/rhD7kdAAdWRA/CulB1
ZE2+VZtxzJ9QB63/CBRLupFNw64OcoL557cBTTnPfdAn8GcaoZrBApZ1p8Eh87Ss
oqJ0vHpuSJFYR07ROgtfPdKAj4bY4rpKd7FcjKqB2VKo2v7r+LKfrNlHSl3x1HGV
nynkvCNaDT8/8BT6W6pJn81f4LqP922D336d3MsymJvFmSREg8pwCN+HtF3dKmyO
T2UMZHSa
=BrUR
iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmZDwKMACgkQTiIiIXrU
DNEXxgv+Lu7I3vtXmijLDOirNA9+hxdgnWbFkdcYJxWb1h+BGN5Huxg2V6i02j8E
vlGsG7PumD1PrDTCuZ0wU3bK0DZFrZUpveIwY0AbP1UGEuBs0LP6XgX4XbVduvr+
WvAuk3dCX7PM+xJMY8ALMWkfzf2gqFOReWZTdRZPZj088WYI/mMt3V1TcAtXhLzS
2vrlAPTi9CRfzklD5E0c/J0bSGkb58PE/qlhDl8pmO3e3Kdf1e6mXrsUSiI24cpT
ZmcueVPT02jMk/AxEql9zcTWvGnIH2ymQyEyHbI1LhZNFzibP+zYthgp37DIqL1R
ivMVCJU2bAuZIyJJIqzI/AfvXMyNCYyyyxjNu9vdaIvL7jKVrO8GmRAaC9A69YlB
avUYVEJBgao/4CuijFQv2nOypn8aCB8vGykj9O4odn6lm0GJmuzCLlkKxl6VzxEz
aZeAv+qam0SqbKHXLM07WhOAG3Yuuk9yygH3PLx1Iytnc52tQly7nptN1hK1y65n
9DxgRRg9
=AOL7
-----END PGP SIGNATURE-----
7 changes: 5 additions & 2 deletions SNOWSetup/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ Now we will create a basic rulebook in order to display the information sent by
action:
debug:
```
A more detailed rulebook example including a Workflow Job Template
A more detailed rulebook example with an https webhook source and a token for source verification including calling Workflow Job Template
```
---
- name: Listen for events on a webhook from ServiceNow
Expand All @@ -588,10 +588,13 @@ A more detailed rulebook example including a Workflow Job Template
- ansible.eda.webhook:
host: 0.0.0.0
port: 5003
certfile: /certs/shadowman_cert.cer
keyfile: /certs/shadowman_private.key
token: "{{ eda_auth_token }}"
rules:
- name: Respond to Node Exporter Down Incident
condition: event.payload.short_description == "Prometheus Node Exporter is down" and event.payload.token == "{{ servicenow_token }}"
condition: event.payload.short_description == "Prometheus Node Exporter is down"
action:
run_workflow_template:
name: "Automated Response Node Exporter Down"
Expand Down

0 comments on commit 793329b

Please sign in to comment.