Code Monkey home page Code Monkey logo

basejump's Introduction

Basejump

Inventory Management and End to End Provisioning. Basejump is written entirely in python.

Installation

Basejump can be setup in many ways. You can clone/fork the repo and simply run it as you would any django app, or you can use the provided chef cookbook. A fixture is provided to insert some demo data. The default username/password is admin/admin.

Standalone

git clone [email protected]:kplimack/basejump.git
cd basejump
./manage.py syncdb
./manage.py runserver|run_gunicorn

Chef

Simply add recipe[basejump] to your node's run_list.

{
  "name":"my_node",
    "run_list": [
        "recipe[basejump]"
     ]
}

Requirements

  • Centos >= 5
  • Debian >= 6

packages

  • mysql - inventory database (could easily swap in any other database you like)
  • tftpd - tftp server for kicking hosts
  • xinetd - run tftp server via xinetd
  • syslinux - syslinux

optional packages

  • apache - frontend to proxy for gunicorn, since gunicorn ain't so good at it
  • nginx - frontend to proxy, same as apache, but lighter and probably more apt
  • supervisord - controls gunicorn processes
  • gunicorn - python application server

Debugging

The best way to debug basejump is to run it manually (not via supervisord/gunicorn). You will get more debugging output than gunicorn logs. You can also check the logs, which go to /var/log/supervisor/basejump-std{out,err}. When basejump gets a request for a preseed or kickstart file, it will log the incoming request and response to $BASEJUMP_PATH/kicker.log.

Running basejump in debug mode (chef deployed)

cd /data/www/basejump/
source ./shared/env/bin/activate
cd current
pip install -r requirements.txt
./manage runserver 0.0.0.0:8080

Running basejump in debug mode (standalone)

cd /data/www/basejump/
source ./env/bin/activate
pip install -r requirements.txt
./manage runserver 0.0.0.0:8080

Caveats

While testing Debian systems, I noticed that I was unable to get the host to send it's MAC address along with the preseed file request. RHEL has an option called kssendmac and Debian is supposed to have something called IPAPPEND (it's in the syslinux docs), but it doesn't work. So we (Andrew Stone) and I rolled our own initrd.gz which sets the client MAC in the USER_AGENT header of the request. You can create your own initrd.gz using the makefile and patch file here [https://github.com/kplimack/debian-initrd].

basejump's People

Contributors

kplimack avatar

Watchers

 avatar  avatar

Forkers

markrechler

basejump's Issues

Handle colons in mac address via forms

Input fields not handling colons and sized for MACs without colons is terribly annoying to deal with.

input field size + 5

then onsubmit js handler that does this: (assumes query)

$('input_field_id').value = $('input_field_id').value.replace(/:/g,'');

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.