Giter Site home page Giter Site logo

rocketjump's Introduction

Laptop Management Server for Initial Configuration

This repo can be used to create a mgmt station configured with:

  • DHCP
  • ZTP - basic shell script
  • ansible hosts
  • /etc/hosts

Just edit the files with your environment. plug in the laptop to the eth0 OOB network, and do the following from the RocketJump directory:

  • vagrant up
  • choose which device is connected to the eth0 OOB network
  • vagrant ssh mgmt

Install Instructions

Copy this repo to your laptop

Setup Management VM

  • From laptop terminal:
  • ls rocketjump
  • vagrant status

Copy the 3.2.0 CL image to the VM

  • Copy the Cumulus Linux Image to the mgmt VM
  • login and download the x86 version of the CL 3.1.2 image from https://cumulusnetworks.com/downloads/
  • copy that image binary to the ./RocketJump/ directory

Change the ansible_hostfile/hosts/ztp.sh/dhcpd.conf to match your environment

  • Use nano or vim to edit the files
  • ansible_hostfile
  • hostnames
  • group names
  • hosts
  • ips
  • hostnames
  • ztp.sh
  • passwordless sudo
  • pre-automation /etc/network/interfaces
  • dhcpd.conf
  • ips
  • hostnames
  • ztp file Locations

Copy the license string into the license file on the mgmt server.

  • Use nano or vim to edit the only line in the cumulus.lic file
  • use vim or nano to open ./RocketJump/cumulus.lic
  • retrieve the license from your email
  • copy and paste the license over the line:
  • save the file and exit vim/nano

Boot the mgmt VM

  • From the Host running VirtualBox (laptop) - login/password: vagrant/vagrant (not needed)
  • vagrant up
  • vagrant ssh
  • Now you will be inside the VM (Cumulus VX). Let's switch to user (su) "root".
  • sudo su
  • Now use NCLU to check the version
  • net show version

Check configuration

Apache Hosted

  • Check apache hosted files
root@mgmt:/home/vagrant# ls -alth /var/www/html/
total 20K
drwxr-xr-x 1 root root  92 Dec 29 03:25 .
-rw-r--r-- 1 root root   0 Dec 29 03:25 cumulus.lic
-rw-r--r-- 1 root root 997 Dec 29 03:25 ztp.sh
-rw-r--r-- 1 root root 391 Dec 29 03:25 authorized_keys
-rw-r--r-- 1 root root 11K Dec 29 03:25 index.html
drwxr-xr-x 1 root root   8 Dec 29 03:25 ..
  • Check DHCP config
root@mgmt:/home/vagrant# ls -alth /etc/dhcp/
total 8.0K
-rwxr-xr-x 1 root root 4.0K Dec 29 03:25 dhcpd.conf
drwxr-xr-x 1 root root 3.5K Dec 29 03:25 ..
drwxr-xr-x 1 root root  134 Dec 14 03:12 dhclient-exit-hooks.d
drwxr-xr-x 1 root root  132 Dec 14 03:12 .
drwxr-xr-x 1 root root   10 Dec 14 03:10 dhclient-enter-hooks.d
-rwxr-xr-x 1 root root 1.9K Dec  2 17:33 dhclient.conf

Follow switches as they boot

Two Files to Watch

  • Locations
  • /var/log/syslog
  • /var/log/apache2/access.log
  • Tail both files at once.
  • tail -f /var/log/syslog /var/log/apache2/access.log

rocketjump's People

Contributors

dsmarsh avatar

Watchers

James Cloos avatar  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.