Selasa, 12 Mei 2020

Integrating Ansible with VOSS

What is X:

  1. Ansible is an open-source software provisioning, configuration management, and application-deployment tool.
  2. VOSS (VSP Operating System Software).

What you need to prepare:

  1. OS for your ansible (I am using ubuntu 18.04 LTS on Hyper-V with multipass) --- download multipass here
  2. VOSS image (I am using VOSS 8.1) --- download image here
  3. Hypervisor for your Ansible & VOSS (I am using Hyper-V)
  4. GNS3 all-in-one (download here)
  5. GNS3 VM Hyper-V (download here) --- or you can download from GNS3 all-in-one software installation wizard. Note: if you are not using Hyper-V, you can select other hypervisor with the same version as GNS3 all-in-one. Follow instructions at bottom of this page.
  6. VOSS GNS3 template import file (download here)

Implementation:

  • After installing multipass, you could launch ubuntu-lts on your Hyper-V.


  • Install Ansible on your ubuntu-lts like my previous blog.
  • Install GNS3 all-in-one. Check "GNS3 VM" option. Then next..next..finished.
  • Start booting your GNS3 VM. Make sure you have ip address assigned and reachable.
  • Open GNS3 software. Import GNS3 appliance file (*.gns3a): "File > Import appliance". Setting max vCPU, and half of your total RAM. If successful, you can add/drag VOSS 8.1 from left menu. 
  • Add a cloud to your topology like below. 

  • Assign ip address on your mgmt port. I am using subnet (172.17.176.32/28)


  • Setting up your ansible playbook script. 

  • Run ansible-playbook.


Side note:
You can not convert qcow2 to vhdx file using qemu-img and then use it as virtual disk on VM creation. It will not boot to VOSS. Also, you can't add more than 8 network adapter at Hyper-V. So, GNS3 is the solution. I never tried on KVM/Qemu.

Sources:


Integrating Ansible with VyOS

What is X:

  1. Ansible is an open-source software provisioning, configuration management, and application-deployment tool.
  2. VyOS is a Linux-based network operating system that provides software-based network routing, firewall, and VPN functionality.

What you need to prepare:

  1. OS for your ansible (I am using ubuntu 18.04 LTS on Hyper-V with multipass) -- download multipass here
  2. VyOS image (I am using vyos-1.1.8-amd64) -- download image here
  3. Hypervisor for your Ansible & VyOS (I am using Hyper-V)

Implementation:

  • After installing multipass, you could launch ubuntu-lts on your Hyper-V. 

  • Install VyOS on Hyper-V
Create virtual switch 'Internal' and 'External':

Create new VM on Hyper-V:
- Login into VyOS using user/pass: vyos/vyos
- Install VyOS by using following command: "install system"
- After installation process succeeded, unmount DVD/ISO so that booting process will be running from HDD. 

Configure interface eth0 & eth1 on VyOS:
  • Install Ansible on your Ubuntu

  • Integrate Ansible <<>> VyOS
Configure SSH service:
Setting up your playbook for VyOS:
Running your ansible-playbook:

Sources: