avinetworks.avise_kvm
⛔️ NOT SUPPORTED: This repository is no longer in use. Please switch to https://github.com/vmware/ansible-collection-alb as this role has been moved to Ansible collections.
Ansible Role to set up Avi Service Engines in a KVM environment.
Requirements
- Python version 2.6 or higher
avisdk
: Install withpip install avisdk --upgrade
avinetworks.avisdk
: Install withansible-galaxy install -f avinetworks.avisdk
Role Variables
Variable | Required | Default | Comments |
---|---|---|---|
kvm_vm_hostname | Yes | Name for the VM | |
kvm_vm_base_img | No | Path to .qcow2 file | |
kvm_vm_vcpus | No | 2 | Number of CPUs for the service engine |
kvm_vm_ram | No | 2048 | Amount of memory for the service engine |
kvm_vm_os_disk_size | No | 20 | Disk size for the service engine |
kvm_host_mgmt_intf | Yes | Name of the host management interface | |
se_kvm_ctrl_ip | Yes | IP address of the controller | |
se_kvm_ctrl_username | Yes | Username to log into the controller | |
se_kvm_ctrl_password | Yes | Password to log into the controller | |
se_kvm_ctrl_version | Yes | Version of the controller | |
state | No | create | Set to "create" to make a service engine, or "delete" to remove it |
se_auth_token | No | Token used to register the service engine with the controller | |
kvm_force_mode | No | true | Overwrite existing VM if it exists (true) or stop execution (false) |
se_bond_seq | Yes | Bonding sequence | |
se_kvm_mgmt_ip | Yes | Management IP for the service engine | |
se_kvm_mgmt_mask | Yes | Subnet mask | |
se_kvm_default_gw | Yes | Default gateway for the service engine | |
kvm_pinning | Yes | Enable CPU pinning for the VM | |
kvm_total_num_vfs | Yes | Number of VFs to pass through to the VM | |
kvm_virt_intf_name | Yes | Name of Virtual Function to pass through to the VM | |
se_image_gen_timeout | No | 700 | Timeout value for service engine image generation |
Standard Example
KVM Host (Inventory) File
[kvm]
10.170.5.51
[kvm:vars]
ansible_ssh_user=root
ansible_ssh_pass=<password>
- hosts: kvm
vars:
state: create
kvm_vm_hostname: "se1"
kvm_vm_vcpus: "2"
kvm_vm_ram: "2048"
kvm_host_mgmt_intf: eno1.100
se_kvm_ctrl_ip: "10.170.5.21"
se_kvm_ctrl_username: "admin"
se_kvm_ctrl_password: "<controller password>"
se_kvm_ctrl_version: "18.2.2"
se_bond_seq: "1,2,3,4"
se_kvm_mgmt_ip: "10.170.5.15"
se_kvm_mgmt_mask: "255.255.255.0"
se_kvm_default_gw: "10.170.5.1"
kvm_pinning: true
kvm_total_num_vfs: 4
kvm_virt_intf_name:
- enp24s17f1
- enp24s17f3
- enp24s17f5
- enp24s17f7
tasks:
- name: Avi SE | KVM | Create SE VM on KVM
include_role:
name: avinetworks.avise_kvm
Command to Run the Playbook
ansible-playbook kvm.yml -i <inventory file> -vv
Informazioni sul progetto
Ansible Role to setup Avi Service Engine on KVM
Installa
ansible-galaxy install avinetworks.avise_kvm
Licenza
apache-2.0
Download
6.1k
Proprietario