Skip to content

capensis/ubik-toolbelt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ubik tools for management

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published