TACKLING BIG-IP BLUE-GREEN DEPLOYMENTS IN PRIVATE CLOUD USING F5 & VMWARE ANSIBLE MODULES
1
Eric McLeroy,
- Sr. Specialist Solutions Architect,
TACKLING BIG-IP BLUE-GREEN DEPLOYMENTS IN PRIVATE CLOUD USING F5 - - PowerPoint PPT Presentation
TACKLING BIG-IP BLUE-GREEN DEPLOYMENTS IN PRIVATE CLOUD USING F5 & VMWARE ANSIBLE MODULES Eric McLeroy, Payal Singh, Sr. Specialist Solutions Architect, Principal Solution Engineer, Ansible by Red Hat F5 Networks eric.mcleroy@redhat.com
1
3
4
5
Internet
Devices Data Center
LTM APM ASM BIG-IP Local Traffic Manager BIG-IP Access Policy Manager BIG-IP Application Security Manager
6
7
Private cloud
F5 Virtual Editions F5 VIPRION BIG-IP Platform
Public cloud
LTM DNS
Amazon Web Services Microsof t Azure Google Cloud Platform
Ansible Host
Playbooks REST/SOAP API calls
bigsuds, f5-sdk
1 2 3
Ansible Versions 2.3 + TMOS v12.X +
9
Users ADC Blue Environment Green Environment 100%
BIG-IP
Data Center 1 Devices/Users Data Center 2
Servers Servers
BIG-IP LTM BIG-IP LTM
LTM VIP visibility into BIG-IP DNS
Wide IP (my-wide-ip.example.com )
Pool LTM1 Virtual IP LTM2 Virtual IP Members Users
VIP down OR Pool down Pool of Servers Pool of Servers
BIG-IP BIG-IP
LTM
13
Spin up BIG-IP in vCenter
* BIG-IP VE template is created on vcenter
Reconfigure the network adaptor settings Grab the VM IP assigned by DHCP to the BIG-IP VE License the BIG-IP VE Onboard the BIG-IP (Hostname/NTP/DNS/SSHD) Network the BIG-IP (VLAN/Self-IP) Import and activate the ASM policy Add pool members and pool Add virtual server and attach the ASM policy to it Ansible Tower Playbook Provision the BIG-IP with ASM module 1 2
vCenter
BIG-IP LTM2
15
Steps:
MGMT IP – 10.192.73.218 Self-IP – 10.168.68.10 Virtual IP – 10.168.68.11 BIG-IP
Data Center
BIG-IP LTM1 VE
MGMT IP – 10.192.73.246 Self-IP – 10.168.68.5 Virtual IP – 10.168.68.12 MGMT IP – 10.192.73.219 Self-IP – 10.168.68.100 Listener Virtual IP – 10.168.68.101 (53)
BIG-IP LTM2 VE
Setup complete with DNS Connectivity to be setup with DNS
17
If a Static MGMT IP needs to be assigned to the BIG-IP instead of using DHCP for MGMT IP (BIG-IP Version 13.1+) 1) Edit the OVA file using a tool like COT (Common OVF Tool) cot edit-properties <source filename>.ova -p net.mgmt.addr=""+string -p net.mgmt.gw=""+string –p user.root.pwd=""+string -p user.admin.pwd=""+string -u -o <destination filename>.ova 2) Edit the OVA (template) properties so that when you deploy BIG-IP VE, you can specify values for the management IP address and default passwords. Example snippet 3) Use an Ansible playbook to execute deploying the OVA file (Step 2) https://github.com/f5rstahl/simple-ansible-playbook https://github.com/payalsin/f5-ansible/tree/master/playbooks/spinup-demo/static
Ansible Tower Playbook
Private/Public cloud
F5 Virtual Editions F5 VIPRION BIG-IP Platform
License
20
21
Automation is not a tool
Learn automation practices
help
automation communities Start small…
annoying network tasks
22
23
Where can I learn more about Ansible & F5
www.ansible.com/f5
What is in the roadmap
– “More modules” in general using YOUR inputs: – https://github.com/F5Networks/f5-ansible/projects
What do I do if I have an issue with an existing F5 module
– Open an GitHub issue: https://github.com/F5Networks/f5-ansible/issues
I love it - I want to try out Ansible-Tower
– www.ansible.com/tower-trial/ – Email: gettingstarted@ansible.com
24
Get started on your automation journey:
Learn more about solution: (webinars, modules, blogs)
– www.ansible.com/f5
Solution Overview:
Whitepaper:
– https://f5.com/Portals/1/PDF/Partners/automating-f5-big-ip-platform-with-ansible.pdf
Current F5 modules in Ansible core:
– http://docs.ansible.com/ansible/list_of_network_modules.html#f5
Request feature-enhancements:
– https://github.com/F5Networks/f5-ansible/issues Download Current Ansible (2.6): – http://releases.ansible.com/ansible/
25
Blue-Green deployment
Static IP assignment
i-13-1-0/3.html BIG-IQ licensing
26