Skip to main content

phpipam export to ansible inventory ini file

Project description

piexin

Build Status codecov PyPI PyPI - Downloads PyPI - License PyPI - Format PyPI - Wheel

The PhpIpam Export Inventory for Ansible Inventory files.

goals

This code can be used to export your phpipam data to an ansible inventory file.

  • keep all data in one file
  • one command, one task

quickstart

phpIPAM

  • add an api account and get the api token for your app
  • assign permissions
  • set security to ssl with app token

api key

  • add a custom field to store your ansible groups

custom_field

run piexin

Either store your api key to the environment variable named PHPIPAM_TOKEN or provide the token in the commandline

minimal command:

piexin -u https://phpipam.example.com --app piexin

complete help

usage: piexin [-h] [-u url] [-t token] [-a app] [-c certificate] [-o output]
              [-V] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -u url, --url url     url of phpipam server api, defaults to
                        http://localhost
  -t token, --token token
                        api token, can also be stored in environment variable
                        PHPIPAM_TOKEN
  -a app, --app app     phpipam api appname
  -c certificate, --cert certificate
                        ssl cert from server if server is not trusted
  -o output, --output output
                        file to print inventory to
  -V, --version         print version
  -v, --verbose

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

piexin-0.8.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

piexin-0.8.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file piexin-0.8.0.tar.gz.

File metadata

  • Download URL: piexin-0.8.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for piexin-0.8.0.tar.gz
Algorithm Hash digest
SHA256 139cd4bdb02aa9d62e39e3d40b697dba194b5b4e340b40a7482135433147b78c
MD5 6c2dca261a7b9e81dcbbbca7eac13013
BLAKE2b-256 0e0394d42ffca2934d3966688efaea4478a7a08b43f559c6d3a8e815f8435aa1

See more details on using hashes here.

File details

Details for the file piexin-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: piexin-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for piexin-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9796748d5d9c2ef54a1a1ffe4bb3fa0479d486bdd4d8106e489404fed236062c
MD5 8d16fc461af3b03789b6deef24b8d022
BLAKE2b-256 d585d0e16bd52c7213918aa5da7d67ddf1383f8da6acbfcbcb98fb46efa6ed62

See more details on using hashes here.

Supported by

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