Python Utility to manage hosts with FreeIPA
Project description
RealmKeeper
RealmKeeper is a RESTful API for registering cloud compute instances with FreeIPA.
Installation
From Python Package Index (PyPI)
The easiest way to get started with RealmKeeper is install via pip.
$ pip install realmkeeper
From source
$ git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/dsa-cloud-coe
$ cd RealmKeeper
$ python setup.py install
With Docker
$ git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/dsa-cloud-coe
$ docker build -t realmkeeper:latest .
Usage
$ export IPA_HOST=ipa.example.com
$ export PRINCIPAL=admin
$ export PASSWORD=secret
$ export AWS_REGION=us-east-1
$ realmkeeper
Starting API Server with Docker
$ docker run \
-d \
-p 5000:5000 \
-e IPA_HOST=ipa.example.com \
-e PRINCIPAL=admin \
-e PASSWORD=secret \
-e AWS_REGION=us-east-1 \
realmkeeper:lastest
Client Example
$ sudo yum install freeipa-client -y
$ response=$(curl -k -X POST https://$RealmKeeperIP:5000/v1/aws/register)
$ hostname=$(echo $response | jq -r '.hostname')
$ otp=$(echo $response | jq -r '.password')
$ ipa-client-install -U hostname=$hostname -w $otp
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
RealmKeeper-0.1.3.tar.gz
(4.2 kB
view details)
File details
Details for the file RealmKeeper-0.1.3.tar.gz.
File metadata
- Download URL: RealmKeeper-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f3d57a4cf68b4549580af9c3ccbe8a795d1f3432c25926d86a459533470ad22
|
|
| MD5 |
090e36ec25835ce7dd178971bf198766
|
|
| BLAKE2b-256 |
cfc1ccec569d8ad9956385c08b3d68e8ac2881d10815eac8b26ce63560768273
|