Skip to content

Alcatel-Lucent Enterprise OmniSwitch config backup via ansible playbook

Notifications You must be signed in to change notification settings

silent198214/ansible-role-backup-ale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Alcatel-Lucent Enterprise OmniSwitch config backup via ansible playbook

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published