Selasa, 12 Mei 2020

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:


Tidak ada komentar:

Posting Komentar