Skip to main content

Python Utility to manage hosts with FreeIPA

Project description

RealmKeeper

RealmKeeper is a RESTful API for registering cloud compute instances with FreeIPA.

Installation

The easiest way to get started with RealmKeeper is making use of it via Docker.

docker build -t realmkeeper:latest .

Usage

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://10.0.3.242: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

MIT

Project details


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.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file RealmKeeper-0.1.1.tar.gz.

File metadata

  • Download URL: RealmKeeper-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 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

Hashes for RealmKeeper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 592be8b218123f1dd440c97813516029ac3c327a58e32a05d2c0cb7958bb6158
MD5 8e85624f1db5c7f7cf30fa892275f4ce
BLAKE2b-256 852f920dcfc484e61f1102ee8fc8c6f55dc2e6fed1b40c408306499113f0fb39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page