Python library to manipulate The Foreman through the API
Project description
Python library to manipulate The Foreman through the API
- Authors:
David Blaisonneau david.blaisonneau@orange.com
Arnaud Morin arnaud1.morin@orange.com
License: Apache 2.0
Usage
- Load the code::
>>> from foreman import Foreman >>> foreman = Foreman(login=args["admin"], password=args["password"], ip=args["ip"])
- Manipulate hosts::
>>> foreman.hosts.keys() dict_keys(['foreman.my.domain', 'server1.my.domain', 'server2.my.domain']) >>> foreman.hosts['foreman.my.domain'] {'compute_resource_name': None, 'certname': 'foreman.my.domain', ... >>> foreman.hosts['foreman.my.domain']['operatingsystem_name'] 'Ubuntu 14.04.2 LTS'
List of managed objects
domains
smartProxies
puppetClasses
operatingSystems
architectures
subnets
hostgroups
hosts
computeResources
environments
configTemplates
smartClassParameters
settings
ptables
media
Debug the API calls
Explore the api foreman.api object, and the ‘history’ list, containing the last api calls
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
foreman-0.9.7.tar.gz
(23.3 kB
view details)
File details
Details for the file foreman-0.9.7.tar.gz
.
File metadata
- Download URL: foreman-0.9.7.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a717ec5ca58b70760be948499061eda18acdf7c21782b478389cbfedc98fcf7c |
|
MD5 | 61a1aca78ffca2371294a08f74ddc822 |
|
BLAKE2b-256 | 01da854f1aa4dee5e4d81134082d9913c55d6572e2ba5f54f612c9e9bfe8be52 |