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

Uploaded Source

Built Distribution

piexin-1.0.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for piexin-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9b1f586c6743ae050a0c2a448982035cd129024e54cb1474bb86d4ae2d28271b
MD5 357984d436cb746ed951d6e6867b2f20
BLAKE2b-256 2571329147de1e3c6a45d2ca38458381ab6b4d8067fde37b60762d4e5b2b32a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: piexin-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.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/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.1

File hashes

Hashes for piexin-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7bb37269e396a0fb2775f5b9f6c74929d1a15dd7824fed6a20bafb95c4a809f
MD5 0221f041c1d2db8c1797999a77ec4dce
BLAKE2b-256 ba30655f35b9d1c8b194169e1e9491f3bd6535eabae1be50f3a6b6dc4f38cc89

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