Skip to content

trondham/himlarcli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Himlar command line tool

Examples

cd himlarcli
source bin/activate
./hypervisor.py -h

Development

Tested with python 3.11 on el8, el9 and Ubuntu 22.04.

Use virtualenv:

cd himlarcli
/path/to/python3 -m venv .
source bin/activate
pip install --upgrade pip
pip install -r requirements.txt

el9 and Python 3.11

Packages need to install (tested on AlmaLinux):

  • openldap-devel
  • python3.11-devel

Ubuntu 22.04 and Python 3.11

Packages needed to install:

  • python3.11-dev
  • libldap-dev
  • libsasl2-dev
  • build-essential

Config file

All script should have the -c option to set a custom config file. If this is not set it will look for config.ini in the root of himlarcli and then in /etc/himlarcli

pylint

We supply a .pylintrc file that are used for automated tests and code validation. To check new or updated python files run:

pytlint <script>.py

or to run the full test travis uses with test.sh

disable

“#pylint: disable=some-message,another-one” at the desired block level or at the end of the desired line of code. You can disable messages either by code or by symbolic name.

Vagrant

This is for use with himlar in vagrant.

Config

Use config.ini.example and remember to change keystone_cachain: with path to root CA used in vagrant

If you have a config.ini in the himlarcli root directory it will use this automatically in all scripts.

Dataporten access

If the vagrant installation is setup with support for Dataporten login you can use access.py to provision the user and project without the need to install the access node:

./access.py push --email <feide-email> --password <password>
./access.py pop --debug

exit the last script after the user is created.

NOTE: Make sure the rabbitmq section is present in your config.ini first!

Hosts

Example of /etc/hosts file: Working with web services in vagrant

About

Himlar command line tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Shell 0.8%