GithubHelp home page GithubHelp logo

vyos-fetch-config-ansible-role's Introduction

Ansible role for VyOS.

This is an ansible role to collect configuration from VyOS hosts.

Installation step

Clone this repo to your Ansible roles directory

mkdir roles
cd roles
git clone https://github.com/hiroyuki-sato/vyos-fetch-config-ansible-role.git vyos

Here's an example how to use this role. create vyos_config.yml

- hosts: all
  user: vyos
  roles: 
    - vyos

Create inventory file. ex. inventory.ini

# VyOS IP or FQDN
10.10.10.10

Directory example

./configs/10.10.10.10.config   # output of show config
./configs/10.10.10.10.gen-sets # output of show configuration commands
./inventory.ini
./vyos/README.md
./vyos/tasks/main.yml
./vyos_config.yml

Execution example

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [10.10.10.10]

TASK: [vyos | generate current config set] ************************************
changed: [10.10.10.10]

TASK: [vyos | generate current config.] ***************************************
changed: [10.10.10.10]

TASK: [vyos | copy file gen-sets] *********************************************
ok: [10.10.10.10]

TASK: [vyos | copy file] ******************************************************
ok: [10.10.10.10]

TASK: [vyos | delete conf files] **********************************************
changed: [10.10.10.10]

PLAY RECAP ********************************************************************
10.10.10.10             : ok=6    changed=3    unreachable=0    failed=0   

You will find configuraiton file in configs directory.

vyos-fetch-config-ansible-role's People

Contributors

hiroyuki-sato avatar sherbang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.