-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path6_create_vs_pool.yml
71 lines (71 loc) · 2.72 KB
/
6_create_vs_pool.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Author Remo Mattei
# Email: [email protected]
---
- hosts: localhost
gather_facts: no
connection: local
tasks:
- name: Avi Application | Setup App1
include_role:
name: avinetworks.aviconfig
vars:
avi_config:
pool:
- name: '{{ name_pool }}'
state: '{{ state_set }}'
enabled: '{{ enabled }}'
cloud_ref: '/api/cloud?name={{ vcenter.AviCloudName }}'
lb_algorithm: LB_ALGORITHM_ROUND_ROBIN
application_persistence_profile_ref: '/api/applicationpersistenceprofile?name=System-Persistence-Client-IP'
health_monitor_refs:
- "/api/healthmonitor?name=System-TCP"
servers:
- hostname: webserver
enabled: True
ip:
addr: "{{ POOL_IP }}"
type: 'V4'
virtualservice:
- name: '{{ app_name }}'
state: '{{ state_set }}'
enabled: '{{ enabled }}'
services:
- port: 443
enable_ssl: True
- port: 80
ssl_profile_ref: "/api/sslprofile?name={{ default_ssl_profile }}"
application_profile_ref: "/api/applicationprofile?name={{ default_app_profile }}"
waf_policy_ref: "/api/wafpolicy?name=System-WAF-Policy"
ssl_key_and_certificate_refs:
- "/api/sslkeyandcertificate?name={{ default_avi_cert }}"
- "/api/sslkeyandcertificate?name={{ default_avi_cert_ec }}"
pool_ref: '/api/pool?name={{ name_pool }}'
cloud_ref: '/api/cloud?name={{ vcenter.AviCloudName }}'
vsvip_ref: '/api/vsvip?name={{ app_name }}_vsvip'
analytics_policy:
all_headers: True
client_insights: NO_INSIGHTS
full_client_logs:
duration: 0
enabled: True
throttle: 10
metrics_realtime_update:
duration: 0
enabled: True
significant_log_throttle: 10
udf_log_throttle: 10
vsvip:
- name: '{{ app_name }}_vsvip'
state: present
cloud_ref: '/api/cloud?name={{ vcenter.AviCloudName }}'
vip:
- vip_id: '1'
avi_allocated_fip: False
auto_allocate_ip: False
enabled: '{{ enabled }}'
auto_allocate_floating_ip: False
avi_allocated_vip: False
auto_allocate_ip_type: V4_ONLY
ip_address:
type: V4
addr: "{{ VS_IP2 }}"