Cisco Cisco Intelligent Automation for Cloud 4.3.2 Installation Guide

Page of 130
64
Using the Cisco IAC 4.3.2 Management Appliance
Changing the AMQP Barbican Secret for PPM Users
4.
Update the AMQP secret for PPM users.
curl --user assurance: assurance_password -k -H "Content-Type: application/json" -X PUT -d 
'{"name":"amqp","url":"IAC MA ip-address:5672","login":"ppm","password":"new_ppm_password"}' 
https://localhost:5001/credentials/api/v1.0/updatecred
Note:
 The number 5672, shown above and below in 
IAC MA ip-address:5672
 is the standard RabbitMQ port.
You should see the following:
[root@iac-ma-43-centOS-b23 ~]# curl --user assurance:admin -k -H "Content-Type: application/json" 
-X PUT -d '{"name":"amqp","url":"IAC MA ip-address:5672","login":"ppm","password":"admin"}' 
https://localhost:5001/credentials/api/v1.0/updatecred
{"message": null, "success": true}[root@iac-ma-43-centOS-b23 ~]#
5.
Repeat Step 3, 
, to retrieve new URL for AMQP secret and run 
verification.
barbican --os-auth-url=http://localhost:5000/v2.0 --os-username assurancecontrol --os-password 
"msj9nIOBNCxvaANydEdcUUmgN8TxYmkE" --os-tenant-name assurancecontrol secret get 
http://localhost:9311/v1/5e303415b0fb4606b61edc5aada0b06d/secrets/114634bd-1186-427e-b274-78ad562dd
f24 --decrypt
You should see the following:
[root@iac-ma-43-centOS-b23 ~]# barbican --os-auth-url=http://localhost:5000/v2.0 --os-username 
assurancecontrol --os-password "msj9nIOBNCxvaANydEdcUUmgN8TxYmkE" --os-tenant-name assurancecontrol 
secret get 
http://localhost:9311/v1/5e303415b0fb4606b61edc5aada0b06d/secrets/114634bd-1186-427e-b274-78ad562dd
f24 --decrypt
b'{"login": "ppm", "password": "admin", "url": "<IAC MA ip-address>"}'
 
6.
Restart your Cisco IAC Management Appliance Virtual Machine