GithubHelp home page GithubHelp logo

Comments (2)

giorgos-nikolopoulos avatar giorgos-nikolopoulos commented on June 15, 2024

The way you would probably go about it is that you would have a playbook defining the cs vserver and its cs policy bindings like so

- name: Setup content switching vserver
  delegate_to: localhost
  citrix_adc_cs_vserver:
    nsip: 172.18.0.2
    nitro_user: nsroot
    nitro_pass: nsroot

    state: present

    name: cs_vserver_1
    ipv46: 192.168.1.1
    port: 80
    servicetype: HTTP

    policybindings:
      - policyname: regular_policy_1
        priority: 90
      - policyname: regular_policy_2
        priority: 100
      - policyname: regular_policy_3
        priority: 120

When you need to apply the maintenance page you would run to apply the following playbook

- name: Setup content switching vserver
  delegate_to: localhost
  citrix_adc_cs_vserver:
    nsip: 172.18.0.2
    nitro_user: nsroot
    nitro_pass: nsroot

    state: present

    name: cs_vserver_1
    ipv46: 192.168.1.1
    port: 80
    servicetype: HTTP

    policybindings:
      - policyname: regular_policy_1
        priority: 90
      - policyname: regular_policy_2
        priority: 100
      - policyname: maintenance_policy
        priority: 115
      - policyname: regular_policy_3
        priority: 120

The cs vserver module should take care of the deletion and addition of bindings.

You need to apply the whole configuration again for the cs vserver since ansible has no notion of applying a diff to an existing configuration.

from ansible-collection-netscaleradc.

murilo-rocha avatar murilo-rocha commented on June 15, 2024

Awesome. Thanks a lot Giorgos.
I will run a lab. It's a pretty complex setup and very critical with cache, rewrite, cs policies etc. so I will see how it goes on a lab.

from ansible-collection-netscaleradc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.