Skip to main content

Foreman

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

Metadata

Release files for foreman 0.9.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foreman 0.9.7
File Size Uploaded Provenance Actions
foreman-0.9.7.tar.gz 23.3 kB Without provenance Details for foreman-0.9.7.tar.gz

Release files / foreman-0.9.7.tar.gz

Download URL foreman-0.9.7.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a717ec5ca58b70760be948499061eda18acdf7c21782b478389cbfedc98fcf7c
BLAKE2b-256 checksum
How to use checksums
01da854f1aa4dee5e4d81134082d9913c55d6572e2ba5f54f612c9e9bfe8be52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for foreman 0.9.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page