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

Uploaded Source

Built Distribution

piexin-1.0.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: piexin-1.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.1

File hashes

Hashes for piexin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f255efd908de8785fa4361454df52f289928fa5df42ea296e7d3124a3fd692eb
MD5 deb55d1553f96878a0339244d36d9914
BLAKE2b-256 d238ba42112f825c99ba54b6d83ce4a715143c8b0e7991c4fd1309f06ea02053

See more details on using hashes here.

File details

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

File metadata

  • Download URL: piexin-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.1

File hashes

Hashes for piexin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7241f73835ab7690aea5643d37fc837266d75e7291881209a8619a64db68273f
MD5 6a5d5274101ab240cd73a63fef8e78ff
BLAKE2b-256 dea005f4c3cb786063f47b139cccc422ce91e51f096ad1729f9fe118a2197e69

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