GithubHelp home page GithubHelp logo

silent198214 / ansible-role-backup-ale Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

Alcatel-Lucent Enterprise OmniSwitch config backup via ansible playbook

ansible-role omniswitch networking alcatel-lucent

ansible-role-backup-ale's Introduction

Ansible Role for backup AOS OmniSwitch config

ALE OmniSwitch config backup via ansible playbook

Supported platforms

  • Standalone
  • Stack
  • Virtual Chassis

Requirements

  1. Login to OmniSwitch via Public Key Authentication (PKA)
Device Version Key Type Key Path Key Filename
R6 DSA /flash/network/pub/ {device_user}_dsa.pub
R7~ RSA or DSA /flash/system/ {device_user}_{rsa,dsa}.pub

AOS R7~8 need to use installsshkey command for the specified user

> installsshkey new_ssh_user /flash/system/new_ssh_user_rsa.pub
  1. Predefined ncftp bookmark

Role Variables

defaults

variable name default description
device_user admin AOS user account
device_port 22 AOS ssh port

vars

variable name default description
ssh_option "StrictHostKeyChecking=no" bypass ssh host key
backup_local_path "{{ role_path }}/files" temp backup file path
backup_srv_path "/backup/network/{{ inventory_hostname }}/" backup server file path
backup_vc_filename "{{ lookup('pipe', 'date +%Y%m%d') }}_{{ inventory_hostname }}_vcboot.cfg" virtual chassis backup filename
backup_std_filename "{{ lookup('pipe', 'date +%Y%m%d') }}_{{ inventory_hostname }}_boot.cfg" backup filename

Example Inventory

Example of inventory file

AOSR6 ansible_host=192.168.1.1 ansible_os_family=std
AOSR8 ansible_host=192.168.1.2 ansible_os_family=vc

[ale]
AOSR6
AOSR8

Example Playbook

- hosts: ale
  gather_facts: no
  connection: local
  tags: ale

  roles:
    - ansible-role-backup-ale

Author Information

Sam Chen

ansible-role-backup-ale's People

Contributors

silent198214 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.