diff --git a/.ansible-sign/sha256sum.txt b/.ansible-sign/sha256sum.txt index 6007644..b3c3152 100644 --- a/.ansible-sign/sha256sum.txt +++ b/.ansible-sign/sha256sum.txt @@ -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 -183db1eb1f04ceb92f52be2997dc91c039ec1905d460186cdb3fc154e0f27817 SNOWSetup/readme.md +c3e703e677ccbc4966267d4c09136139537b7172cb1603f1439caafd888bd362 SNOWSetup/readme.md 8d64a90e1cf927f9adf8074d405a62ec50f4df417865706d1f4bc5ff5bdfeaa5 ServiceNowCR_and_approve.yml db0cf6bab374ea48077c3898aea1602a570541a49ed82797b7459c9ce9a9824c ServiceNowCR_canceled.yml 675d62c62ed528e495f8144290d181875521766c5cebb9661fc15552f1db1083 ServiceNowCR_closed.yml diff --git a/.ansible-sign/sha256sum.txt.sig b/.ansible-sign/sha256sum.txt.sig index 9aa044f..d260e85 100644 --- a/.ansible-sign/sha256sum.txt.sig +++ b/.ansible-sign/sha256sum.txt.sig @@ -1,14 +1,14 @@ -----BEGIN PGP SIGNATURE----- -iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAma/hrUACgkQTiIiIXrU -DNHEzAwAsU/CJUyd7OJYSjwMA2TBXd4i6F7lf8po1T8UxQ5CxdF2Z5FDN+ecOOvH -GnhY/5+FiTk8z9JDO3/lDZxUu2DPJPZlIw/St7Bngvcilqo3JkE1xOGLGiaOHM4r -l/0kiRCzjNXTPxvLmP2I8l0vxVCiJRbbzP7HgwWV8PPDw7uKFifZIFKVBCyqh0cV -wRazuWcJgFk1KgcCS5TdXDWjkRDTw9MmrIbf54DpVeGxC+iHC1I8Smf8w7iFiaKh -vjM+RoUjoqvP3m2UM+lYRqMW3iV62YHj00GmihOlrBh0tjWWNyTqubc1uAWCO09Z -1h+nyp6fhKWsPfzgfsh9pWdGOQ1vrbhICHHyR2a9cnVyS0pY6p+LkWmcKAyFxHrX -nE88+mc0ud4YwElY9vB48OMazi3d9RbgOtdQkTSD3PUjXd+ga5YR8ijyN3bTEp7Y -9u2+1dch8FhdmHKKoUCX4fjIxnan3YzyD6X6V2YL9h4TqWWjzLD9t8sprkZvyNc9 -Jvd6KPkk -=EDDM +iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmbpshwACgkQTiIiIXrU +DNFz9Av/a3NDgHpJq5in9ycER3tLXzROlMEjfcTrNULm3JPql218Om9kPPFMch9K +Bv827YAktfVpEbeZWMYlzT+YgL76RbF7TXEUCwIHZMohCItwtqkfnVNdAjAocHi+ +EXWhKS35zc+TM5G4yf9ocYjCtXkZ8zHprdx+QD9aSqkR8IvIZyTwlrp0YLTyn9jz +Q4u3sTipKHrXLRHeLuQMhofy5D/bWSVoBAwUsZvSEtAG+D4xjLcxQWF/UzjqmbZ5 +x94ahrBrAvH79WnfKZ+Di0NDEKLntrrywwFQPvmxCW/k2iJJt+6ks4HzVyrZ5Y8s +VJlg0/cHNzLWag6u4W1/WVYwQIFIZMCT/IsWa67sdfHDxDmsNyaH/WS/+Xi6s/dC +T1u1NRrYkPu2QURRGiHD0LbD6XN6ZW3HGp6EEHEjb4D3G8YiI03NHBtWi77iQENo +Q17FH5UnsNouXiq3O5mEFLQKsafQNLsYZkeHWIgVTJlvmkE+6MEtrizyDLNMO/Gs +iK2k382q +=u9tp -----END PGP SIGNATURE----- diff --git a/SNOWSetup/readme.md b/SNOWSetup/readme.md index 6ddd729..c4a8d69 100644 --- a/SNOWSetup/readme.md +++ b/SNOWSetup/readme.md @@ -7,6 +7,8 @@ [ServiceNow/AAP Integration Instructions using Event-Driven Ansible Notification Service](https://github.com/shadowman-lab/Ansible-SNOW/tree/main/SNOWSetup#servicenowaap-integration-instructions-using-event-driven-ansible-notification-service) +[ServiceNow Basic Auth Connection Configuration](https://github.com/shadowman-lab/Ansible-SNOW/tree/main/SNOWSetup#servicenow-basic-auth-connection-configuration) + [Have AAP reach out to ServiceNow](https://github.com/shadowman-lab/Ansible-SNOW/tree/main/SNOWSetup#have-aap-reach-out-to-servicenow) [Have AAP use ServiceNow as an inventory source](https://github.com/shadowman-lab/Ansible-SNOW/tree/main/SNOWSetup#have-aap-use-servicenow-as-an-inventory-source) @@ -301,7 +303,7 @@ Congratulations! After completing these steps, you can now use a ServiceNow Cata This walkthrough assumes you have an Integration Hub Standard/Professional subscription and Ansible spoke activated. It also assumes you have the ability to reach your automation controller from ServiceNow (a mid-server can be utilized but only basic Auth will work). For this example, I will be utilizing an already existing Ansible Automation Platform (AAP) workflow that patches all of my Red Hat Enterprise Linux Servers and updates a ServiceNow Catalog Request. I will also be using Ansible Automation Platform 2.2 but this integration will work in Ansible Automation Platform 1.2 and any version of 2.x as well. Ansible spoke leverages the ServiceNow Flow Designer which can be easier to use when leveraging variables and building out the API Rest message. ## Notes -- ServiceNow MID Servers do not support OAuth, you must use basic authentication. Skip steps 1-3 and replace steps 6 and 7 with https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/integrationhub-store-spokes/task/setup-ansible.html#setup-ansiblespk-basic +- ServiceNow MID Servers do not support OAuth, you must use basic authentication. Skip steps 1-3 and replace steps 6 and 7 with [ServiceNow Basic Auth Connection Configuration](https://github.com/shadowman-lab/Ansible-SNOW/tree/main/SNOWSetup#servicenow-basic-auth-connection-configuration) ### Preparing AAP @@ -646,6 +648,46 @@ Navigate to Event-Driven Ansible Controller and select **Rule Audit**. You shoul Event-Driven Ansible Controller JSON + +## ServiceNow Basic Auth Connection Configuration + +#### 1) Navigate to All > Connections & Credentials > Credentials. + +#### 2) Click New. +The system displays the message What type of Credentials would you like to create? + +#### 3) Select Basic Auth Credentials. + +#### 4) On the form, fill these values + +| Parameter | Value | +|-----|-----| +| Name | `Name to uniquely identify the record. For example, enter Ansible Basic Auth Cred.` | +| User name | User name to log in to AAP. Ensure that the Ansible user has the System Administrator role.| +| Password | Password to log in to AAP. | +| Active | Option to actively use the credential record. | +| Order | Order to apply this credential. For example, enter 100. | + +#### 5) Click Submit + +#### 6) Navigate to All > Connections & Credentials > Connection & Credential Aliases + +#### 7) Open the record for Ansible. + +#### 8) From the Connections tab, click New. + +#### 9) On the form, fill these values + +| Parameter | Value | +|-----|-----| +| Name | `Name to uniquely identify the connection record. For example, enter Ansible Connection.` | +| Credential | Credential record you created for AAP. For example, select Ansible Basic Auth Cred. | +| Connection URL | URL of the AAP instance.| + +#### 10) In the Advanced MID Server Configuration tab, select the MID Server as per your requirement. + +#### 11) Click Submit. + ## Have AAP reach out to ServiceNow ## Dependencies: