Giter VIP home page Giter VIP logo

deploy_manager's Introduction

Deploy Manager

Scope

  • Deploy Ubuntu or CentOS Server by PXE and change IP by MAC address.
  • Through REST API , at this time, it only support GET method

Example in server side

# cd /deploy_u18
# git clone https://github.com/TonyChengTW/deploy_manager
# virtualenv /deploy_u18/deploy_manager
# source /deploy_u18/deploy_manager/bin/activate
# cd /deploy_u18/deploy_manager
# pip install -r requirement.txt
# python setup.py install
# bin/deploy_manager

The deploy_manager daemon written by python can be lauched by systemctl # systemctl start deploy_manager

Configuration Files

/etc/deploy_manager/backends/ip_manager.ini

[DEFAULT]

[identities]
hosts = ctrl1,comp1,comp2

[ctrl1]
ip = 10.0.0.111
mac = 00:0c:29:c5:a0:0a

[comp1]
ip = 10.0.0.121
mac = 00:0c:29:a8:7c:5c

[comp2]
ip = 10.0.0.122
mac = 00:0c:29:3c:6e:bd

You need to fillup both [identities] and [xxx] group options in deploy server, which xxx is the hostname.

Example in client side

curl http://[deploy_server]:7878/ip_mapper?mac=00:0c:29:a8:7c:5c It will return an IP which is matched a mac address on node : 10.0.0.121

KickStart configuration

The Kckstart config file is located in /deploy_u18/u18.04.1-server-amd64/ks.cfg Which defines Ubuntu 18.04.1 install options.

KickStart at %post

  • Defines apt/sources.list to the deploy server (inside internal network)
  • Change IP by lookup /etc/deploy_manager/backends/ip_manager.ini via Deploy Manager API
  • add a default ssh key
  • Change locale
  • rename raw nic device name by generating grub.cfg via grub-mkconfig (editing /etc/default/grub)

License

MIT / BSD

Author Information

104 Job Bank Corp. [email protected]

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.