f5devcentral.bigip_gslb

Ansible Role: bigip_gslb

This role helps create and manage a Global Services Load Balancing (GSLB) object on a BIG-IP DNS platform.

In F5 terms, GSLB is referred to as "Wide IP." Regardless of the name you prefer, this role lets you manage GSLB configurations.

Typically, GSLB needs at least two servers: one for GTM/DNS and others for LTM (or another supported platform). This role specifically focuses on the GTM/DNS configuration.

You don’t need to have the LTM part set up beforehand to use this role.

Requirements

None.

Role Variables

Here are the available variables listed below. For default values, check defaults/main.yml:

  • provider:
    • server: localhost
    • server_port: 443
    • user: admin
    • password: secret
    • validate_certs: false
    • transport: rest

These values help establish an initial connection to your BIG-IP.

  • bigip_glsb_app_name: localhost

This is the name of the GSLB application being created.

  • bigip_glsb_app_domain: gslb.local.com

This is the domain of the application being created.

  • bigip_glsb_pool_lb_method: round-robin

This defines the load balancing method for the application.

  • bigip_glsb_record_type: a

This indicates the type of DNS record to create.

  • bigip_glsb_state: present

This specifies the state of the application. Using "present" will create the necessary objects for the GSLB configuration. Using "absent" will remove those objects, effectively deleting the GSLB configuration.

  • bigip_glsb_pools:
    • name: "{{ app_name }}.{{ app_domain }}-pool" members:
      • server: test-server virtual_server: 10.1.2.3:443

This is where you define the pools to create as part of the GSLB. The example provided may not fit your specific needs, but it's there to show you how to set up a GSLB configuration correctly.

Dependencies

  • The BIG-IP must be set up, including the necessary initial configuration steps.
  • GTM/DNS should be set up on the BIG-IP using this role.
  • You need to specify addresses/FQDNs of the downstream LTMs for load balancing.
  • Datacenter and Server objects must already exist on the target BIG-IP.

Example Playbook

- name: Deploy GSLB configuration
  hosts: gtm
  vars:
    bigip_glsb_pools:
      - name: "app1.domain-pool"
        members:
          - server: test-server1
            virtual_server: 10.1.2.3:443
  roles:
    - role: f5devcentral.bigip_gslb

License

Apache

Author Information

This role was created in 2018 by Tim Rupp with assistance from Forrest Crenshaw.

Informazioni sul progetto

Performs steps needed to create and manage a GSLB object on a BIG-IP DNS platform.

Installa
ansible-galaxy install f5devcentral.bigip_gslb
Licenza
apache-2.0
Download
12.1k
Proprietario
Community Supported Repos