You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nico Schottelius 79abf872f2 Merge remote-tracking branch 'upstream/master' 3 years ago
.gitignore .gitignore updated not to track __pycache__ directory and __pycache__ removed 3 years ago
Pipfile add apixu 3 years ago
Pipfile.lock add apixu 3 years ago
README.md Merge remote-tracking branch 'upstream/master' 3 years ago
ungleich Add pipfile, add ssh key handling 3 years ago
ungleich_account.py added account creation command 3 years ago
ungleich_dns.py use urllib instead of requests 3 years ago
ungleich_ripe.py update 3 years ago
ungleich_ssh_key.py Add usage description, --bugs 3 years ago
ungleich_weather.py + weather header 3 years ago

README.md

ungleich cli

This CLI is used for day-to-day tasks used at ungleich. It is intended to be used by ungleich engineers and skilled customers.

Requirements / Installation

  • ensure you have python3 and pipenv
  • git clone this repo
  • cd into this repo
  • run the following command
pipenv install
pipenv shell

Usage general

ungleich --help

Usage: Weather

ungleich weather

Usage: DNS

ungleich dns --set-reverse <ip> --user <username> --token <token> --realm <realm> --email <email> --name mirror.example.com

Usage: RIPE

Creating a new route6 object:

ungleich ripe-add-route6 \
    --network 2a09:2947::/32
    --description "First REST /32"
    --password "very secure"

Usage: Account

Creating a new account object:

ungleich account --create-user <username> --name <firstname> --lastname <lastname> --email <email>

Usage: SSH Key

Requires you to have https://code.ungleich.ch/ungleich-public/ungleich-ssh-keys/ checked out in ~/vcs/ungleich-ssh-keys

ungleich sshkey  --key raul.ascencio --host dev.raul.ungleich.cloud