eezhova

res_config_test_balancing.yml.j2

Jan 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.64 KB | None | 0 0
  1. avi_cloud_discovery_wait: 180
  2.  
  3. avi_config:
  4.   pool:
  5.     - api_version: {{ avi_api_version }}
  6.       name: test-pool
  7.       state: present
  8.       lb_algorithm: LB_ALGORITHM_ROUND_ROBIN
  9.       cloud_ref: '/api/cloud?name=openstack'
  10.       health_monitor_refs:
  11.        - '/api/healthmonitor?name=test-hm'
  12.       servers:
  13. {% for server in backend_servers %}
  14.         - ip:
  15.              addr: {{ server.ip.addr }}
  16.              type: {{ server.ip.type }}
  17. {% endfor %}
  18.  
  19.   healthmonitor:
  20.     - api_version: {{ avi_api_version }}
  21.       name: test-hm
  22.       state: present
  23.       cloud_ref: '/api/cloud?name=openstack'
  24.       http_monitor:
  25.         http_request: "HEAD / HTTP/1.0"
  26.         http_response_code:
  27.          - HTTP_2XX
  28.          - HTTP_3XX
  29.       receive_timeout: 4
  30.       failed_checks: 3
  31.       send_interval: 10
  32.       successful_checks: 3
  33.       type: HEALTH_MONITOR_HTTP
  34.  
  35.   serviceenginegroup:
  36.     - name: test-segroup
  37.       api_version: {{ avi_api_version }}
  38.       state: present
  39.       cloud_ref: '/api/cloud?name=openstack'
  40.       active_standby: true
  41.       se_deprovision_delay: 1
  42.       se_name_prefix: "test"
  43.  
  44.   virtualservice:
  45.     - name: test-vs
  46.       api_version: {{ avi_api_version }}
  47.       state: present
  48.       services:
  49.         - port: 80
  50.       pool_ref: '/api/pool?name=test-pool'
  51.       cloud_ref: '/api/cloud?name=openstack'
  52.       se_group_ref: '/api/serviceenginegroup?name=test-segroup'
  53.       vip:
  54.         - auto_allocate_ip: True
  55.           auto_allocate_floating_ip: True
  56.           subnet_uuid: {{ openstack_configuration.vip_subnet_uuid }}
  57.           floating_subnet_uuid: {{ openstack_configuration.public_subnet_uuid }}
Advertisement
Add Comment
Please, Sign In to add comment