piexin
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
- add a custom field to store your ansible groups
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
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.2.tar.gz
(8.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
piexin-1.0.2-py3-none-any.whl
(22.5 kB
view details)
File details
Details for the file piexin-1.0.2.tar.gz.
File metadata
- Download URL: piexin-1.0.2.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/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d199a84a66f84b012eadc978a31a6e9061308ff01857d34dd74f2a27d6a069ea
|
|
| MD5 |
362f076660eed4794d858ee05cdab449
|
|
| BLAKE2b-256 |
bd00e33f4ce7f723ec14a4607c6aff3b4431f9217fb8eb6fbb1e7c662e6f7928
|
File details
Details for the file piexin-1.0.2-py3-none-any.whl.
File metadata
- Download URL: piexin-1.0.2-py3-none-any.whl
- Upload date:
- Size: 22.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f18771b4e88bfdf23079872d08a6625aca5e527358be791acbf34b625c56f365
|
|
| MD5 |
287bf7f8bb21db64d3a948f2205bd93a
|
|
| BLAKE2b-256 |
a99258f62ae7b16629c7729f1db791e7b16b149e22efda9001823bc08469c8de
|