GithubHelp home page GithubHelp logo

gkunwar / yggdrasil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tkusukawa/yggdrasil

0.0 1.0 0.0 664 KB

ruby script to manage server configurations by subversion.

License: MIT License

Ruby 100.00%

yggdrasil's Introduction

Yggdrasil

Yggdrasil is a subversion wrapper to manage server configurations and conditions.

Installation

$ gem install yggdrasil

subversion needs to be installed:

(e.g.)$ sudo yum install subversion

Usage: private use(stand alone)

Prepare subversion repository and initialize Yggdrasil:

$ ygg init --repo private

You should use svn-server if you have. In that case, the configuration files of all the servers can be managed on the unification.

Add configuration files to manage:

$ ygg add /etc/hosts /etc/fstab   ..etc
$ ygg check
$ ygg commit /

Check modify and/or delete:

$ vi /etc/hosts ..etc
$ ygg check
$ ygg commit /etc/hosts ..etc

Refer Help:

$ ygg help

Usage: data center management (example)

Prepare subversion repository and launch server on host:$YGG_SERVER:

(e.g. $YGG_REPO is anywhere you want)
$ svnadmin create $YGG_REPO
$ vi $YGG_REPO/conf/svnserve.conf
$ svnserve -d

Prepare yggdrasil server on host:$YGG_SERVER:

$ yggserve init --repo svn://$YGG_SERVER/$YGG_REPO/{host} --port 4000
$ yggserve daemon

Prepare yggdrasil client to manage config files:

$ ygg init --server $YGG_SERVER:4000
$ ls -al ~/.yggdrasil/checker
and add/modify executable script in "checker"
$ ygg add /etc/hosts /etc/fstab ..etc
$ ygg check
$ ygg commit /

Prepare yggdrasil client to report check results to yggdrasil server, every day:

$ crontab -e
add following line(you should check path by 'which ygg')
17 5 * * * $GEMPATH/ygg check --non-interactive

Check updates of configurations/conditions on host:$YGG_SERVER:

$ yggserve results --expire 1440
CI tool(e.g.Jenkins) may execute this command automatically to daily report/record.

Environment

  • Linux
  • Subversion command-line client
  • Ruby
  • Gem

Links

http://qiita.com/tkusukawa/items/ff6caedc068941235105 http://kusu.way-nifty.com/blog/2013/09/alminium-yggdra.html
http://daily-postit.blogspot.jp/2013/08/yggdrasil.html
http://www.slideshare.net/tkusukawa/yggdrasil
https://cacoo.com/diagrams/kCM0DOM01zb6quau
https://cacoo.com/diagrams/85rQ6KXsr5cZKrsH

License

Copyright (c) 2012-2013 Tomohisa Kusukawa

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

yggdrasil's People

Contributors

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