Skip to content

Latest commit

 

History

History
100 lines (80 loc) · 2.06 KB

README.md

File metadata and controls

100 lines (80 loc) · 2.06 KB

Ubik Toolbelt

Description

Ubik toolbelt is a set of tools for Ubik management.

Features

  • Package env creator
  • Control file for package
  • Post/Pre Install/Remove/Upgrade controls
  • Python

Installation

pip install git+http://github.com/socketubs/ubik-toolbelt.git

Create package

You can see how to create wget package with Ubik-toolbelt in examples dir.

cd /usr/local/src
ubik-package create my_package
cd my_package
mkdir -p src/usr/bin
vim src/usr/bin/hello.sh
vim make.sh
...
function install(){
    cp -R $SRC/* $DST
}
...
./make.sh install
./make.sh package

Create repositorie

This is a repositorie structure:

my_repo
├── .repo_root
├── Packages.json
├── Packages.list
├── repo.conf
└── stable
    ├── noarch
    │   └── nodist
    │       └── novers
    │           ├── hello_hell.tar
    │           ├── hello_world.tar
    │           └── test_deps.tar
    └── x86_64
        └── debian
            └── 6
            	├── hello_hell2.tar
                ├── hello_world2.tar
                └── test_deps2.tar

And this how to create your own repositorie:

ubik-repo create my_repo
 :: Create repositorie structure
 :: Create default "stable" branch and two examples

And you have just to put your packages into the good Branch/Arch/Dist/Vers and run ubik-repo generate --old-format in your repositorie root.

Thanks

Thanks to Docopt to be awesome tool.

For information:

Canopsis is a hypervisor, built on top of all open source monitoring solutions
to agregate, correlate and ponderate events flowing from them.

License

License is AGPL3, it fully compatible with Canopsis. See LICENSE.