I created an ansible module to add/remove devices to Spectrum. I'd appreciate if anyone could test and give your suggestions and feedbacks. I plan to add additional modules. Right now I'm working on one to put or remove a device from maintenance mode.
Here is the documentation:
spectrum_device - Creates/deletes devices in CA Spectrum. — Ansible Documentation
It is in the devel branch, so if anyone wants to use it will need to install ansible from the github repo:
GitHub - ansible/ansible: Ansible is a radically simple IT automation platform that makes your applications and systems …
Good to Hear!!
My company has a need to put servers in and out of maintenance mode. Do you think this would be the appropriate project/module to add that functionality?
Hey Brian,
You could use RESTFul Web Services to do this.
https://docops.ca.com/ca-spectrum/10-3-1/en/programming/web-services-api-reference
-Matt
I plan to update the Spectrum Ansible module with new features. For now you can use this python package to put devices in/out of maintenance:
https://github.com/orgito/spectrum-client
The README includes an example of that.