Pure-Storage-Ansible / FlashArray-Collection

Ansible Collection for Pure Storage FlashArray
GNU General Public License v3.0
18 stars 23 forks source link

Add DNS check_peer and cert upload to DNS #509

Closed sdodsley closed 10 months ago

sdodsley commented 10 months ago
SUMMARY

Add certificate and check_peer parameters for management DNS entry.

ISSUE TYPE
COMPONENT NAME

purefa_dns.py

ryuyamag commented 10 months ago

Sorry for the late reply. I got the error attached. purefa_ds_cert.yml.zip

sdodsley commented 10 months ago

@ryuyamag Please try again. Stupid typo now fixed.

ryuyamag commented 10 months ago

Thank you for quick response! This worked fine.

By the way, Is it difficult to clear the cert? If that is difficult, I encourage customers to use a dummy text.

sdodsley commented 10 months ago

To clear the cert just empty an empty string, eg: certificate: ""

ryuyamag commented 10 months ago

I think I'll go with 3.

1."" it didn't work. The cert remained the same.

2." " following error message appeared. "msg": "Management Directory Service failed. Error message: Invalid certificate data."

3. So, I was able to replace it by specifying the following text file. -----BEGIN CERTIFICATE------ dummy data -----END CERTIFICATE----