Browse Source

Cleanup

master
Nico Schottelius 3 years ago
parent
commit
672418af19
  1. 18
      README.md
  2. 2
      ungleich
  3. 4
      ungleich_dns.py

18
README.md

@ -7,19 +7,17 @@ It is intended to be used by ungleich engineers and skilled customers.
* ensure you have python3
* git clone this repo
* python ungleich-cli.py
## Usage: DNS
installing the package via pip (python3 required)
## Usage general
```angular2
python3 -m pip install ungleich-cli
```
after installed you can set the reverse dns by typing
ungleich --help
```
```angular2
ungleich-cli dns --set-reverse <ip> --user <username> --token <token> --name mirror.example.com
## Usage: DNS
```
ungleich dns --set-reverse <ip> --user <username> --token <token> --name mirror.example.com
```
### Usage: RIPE
@ -27,7 +25,7 @@ ungleich-cli dns --set-reverse <ip> --user <username> --token <token> --name mir
Creating a new route6 object:
```
ungleichcli.py ripe-add-route6 \
ungleich ripe-add-route6 \
--network 2a09:2947::/32
--description "First REST /32"
--password "very secure"

2
ungleichcli.py → ungleich

@ -5,7 +5,7 @@ import argparse
from ungleich_dns import ungleichDNS
from ungleich_ripe import ungleichRIPE
VERSION = "0.0.2"
VERSION = "0.0.3"
class ungleichCLI(object):
def __init__(self):

4
ungleich_dns.py

@ -6,7 +6,9 @@ class ungleichDNS(object):
self.parser = parser
self.parser['dns'] = self.parser['sub'].add_parser(
'dns', parents=[parents])
'dns',
help="Manage DNS entries @ ungleich",
parents=[parents])
self.parser['dns'].add_argument('--set-reverse', help='REQUIRED: IPv6 Address of your VM', metavar='', required=True)
self.parser['dns'].add_argument('--user', help='Your ungleich username', metavar='', required=True)

Loading…
Cancel
Save