No description
Find a file
2019-08-12 21:58:09 +05:00
.gitignore correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
Pipfile correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
Pipfile.lock correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
README.md correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
ungleich Extend ungleich-cli to add create-vpn, delete-vpn 2019-06-16 13:58:05 +05:00
ungleich_account.py correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
ungleich_config.py correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
ungleich_dns.py correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
ungleich_ripe.py correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
ungleich_ssh_key.py correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
ungleich_vpn.py correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00
ungleich_weather.py correct general most-wide Exception handling 2019-08-12 21:56:37 +05:00

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: Config

ungleich config-add \
    --name <otp username>
    --realm <otp realm>
    --seed <otp seed>

Usage: DNS

ungleich dns \
    --set-reverse <ip> 
    --user <user_id> 
    --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

Usage: VPN Management

Creating a new VPN:

ungleich vpn-create \
    --server_url <server_url>
    --name <name> 
    --realm <realm>
    --seed <seed_value> 
    --email <email>
    --public_key <public_key>

Deleting a VPN:

ungleich vpn-delete \
    --server_url <server_url>
    --name <name> 
    --realm <realm>
    --seed <seed_value>