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

Uploaded Source

Built Distribution

piexin-0.6.0-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for piexin-0.6.0.tar.gz
Algorithm Hash digest
SHA256 0bae0ac8b690e605590a456aaeaac201af0263be039c6213d4b59fa082201986
MD5 bbb6677cfe0223d6b61c1f47d343fd8d
BLAKE2b-256 40804ce1daab5b82b8a6c40f5bba28e9c7363486f5afc8102d1457b9bf8b7c99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: piexin-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 21.9 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/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for piexin-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98205d9918f3d79c09f8a1b2a4a46598a5413f8ea254156087665ae4a8894db7
MD5 b62176c9a66e3e1ebab40c35d3f84982
BLAKE2b-256 18388a12c1629a1e7fcdd9cdf5d3910888827a42f5a7c8847a8c79a5bccb5ae9

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