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

Uploaded Source

Built Distribution

piexin-0.7.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: piexin-0.7.0.tar.gz
  • Upload date:
  • Size: 6.8 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.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

File hashes

Hashes for piexin-0.7.0.tar.gz
Algorithm Hash digest
SHA256 bf0a8f4e63186e8348cbca82b08f8fbf73403732ffcba9746f538c3ae76639d1
MD5 594dd845a0987e68848b487f99df70f6
BLAKE2b-256 08e248df78d8e2465a332c6d90aec4bab686519d6277205440c28bc5dbb97756

See more details on using hashes here.

File details

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

File metadata

  • Download URL: piexin-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 22.0 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.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

File hashes

Hashes for piexin-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b2a95153479dd898e3afedcbb8df074778937d3290dc08678462703120e85d6
MD5 84f5a863a17f80f8fbd98a16fa774218
BLAKE2b-256 b05c3559596b38fb8f6c23d3ca63760c6456ab0ecbf2deecb56dbc555bde65c8

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