Using Ansible to Automate the Configuration of Solace PubSub+ Event Broker

Options
swenhelge
swenhelge Member, Employee Posts: 77 Solace Employee
edited September 2020 in Blogs & Tutorials #1

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:

Comments

  • hong
    hong Guest Posts: 480 ✭✭✭✭✭
    Options

    @swenhelge Thank you for sharing this!

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 923 admin
    Options

    Thanks @swenhelge, I had no idea this existed!

  • Joy
    Joy Member Posts: 1
    Options

    how can i rollback the provisioning, especially the patch request to update some parameters?

  • Ricardo
    Ricardo Member Posts: 2
    Options

    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.