Using Ansible to Automate the Configuration of Solace PubSub+ Event Broker
![swenhelge](https://us.v-cdn.net/6031588/uploads/userpics/774/nDDTFX8KMUXAV.png)
swenhelge
Member, Employee Posts: 79 Solace Employee
Are you responsible for Solace PubSub+ DevOps?
Using Ansible modules for PubSub+ may make your life easier … check out this blog post
https://solace.com/blog/using-ansible-automate-config-pubsub-plus/
Tagged:
4
Comments
-
@swenhelge Thank you for sharing this!
0 -
Thanks @swenhelge, I had no idea this existed!
0 -
@marc - but wait there's more - even including a cat pic: https://solace.community/discussion/389/event-mess-to-event-mesh-automating-the-configuration-of-a-hybrid-iot-event-mesh-with-ansible#latest
2 -
hi @Joy - rollback is not a concept that ansible supports directly. I.e. ansible does not keep state of before and after.
So, what I typically do is to manage state manually. roughly:- you create a separate parameters yaml / json file that describes a state - let's call it 'state1.yml'
- you run your playbook with state1.yml ==> broker is configured with state1 parameters
- you apply state2.yml and then you realize you want to go back to 'state1.yml'
- you run the playbook again with state1.yml ==> rollback done.
I usually only work with roll-forward, never with roll-back. otherwise you end up with a management challenge of your state files.
3