All Projects → lig → pyventory

lig / pyventory

Licence: MIT License
Ansible Inventory implementation that uses Python syntax

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pyventory

data-profiling
a set of scripts to pull meta data and data profiling metrics from relational database systems
Stars: ✭ 57 (+128%)
Mutual labels:  inventory
AdiBags
WoW Addon — Adirelle's bag addon.
Stars: ✭ 94 (+276%)
Mutual labels:  inventory
SmartInventory
Moved to https://github.com/Infumia/InfumiaLib
Stars: ✭ 16 (-36%)
Mutual labels:  inventory
SQLPowerDoc
Hopefully an up to date fork of SQL Power Doc. Newer PS versions and .NET levels. Maybe too ambitious. This repository was cloned from kendalvandyke, the original author of SQLPowerDoc. Codeplex is currently in the process of shutting down. I cloned this project (and its wiki) with the intention of preserving a wonderful tool that I recently dis…
Stars: ✭ 19 (-24%)
Mutual labels:  inventory
gdinv
More or less universal inventory system plugin for Godot Engine (3.3+). Data-driven.
Stars: ✭ 69 (+176%)
Mutual labels:  inventory
Inventory-Management-System-Django
A Inventory management system written in DJango
Stars: ✭ 71 (+184%)
Mutual labels:  inventory
gohai
System information collector
Stars: ✭ 91 (+264%)
Mutual labels:  inventory
ox inventory
Overextended Inventory for ESX Legacy
Stars: ✭ 149 (+496%)
Mutual labels:  inventory
InvMan
Open source JavaFX inventory management application
Stars: ✭ 40 (+60%)
Mutual labels:  inventory
InvSee
A PocketMine-MP plugin that lets you view and modify offline and online players' inventories in real-time!
Stars: ✭ 19 (-24%)
Mutual labels:  inventory
UInv
Universal Inventory System (UInv) for Twine 2 / SugarCube 2
Stars: ✭ 34 (+36%)
Mutual labels:  inventory
NotrinosERP
A web-based erp, accounting system that written in PHP and MySql includes Sales, Purchasing, Warehousing, Manufacturing, Human Resource... It supports multi user, multi currencies, multi languages.
Stars: ✭ 46 (+84%)
Mutual labels:  inventory
OCSInventory-Docker-Image
Docker image for OCSInventory Server
Stars: ✭ 54 (+116%)
Mutual labels:  inventory
rawsec-cybersecurity-inventory
An inventory of tools and resources about CyberSecurity that aims to help people to find everything related to CyberSecurity.
Stars: ✭ 153 (+512%)
Mutual labels:  inventory
sphobjinv
Toolkit for manipulation and inspection of Sphinx objects.inv files
Stars: ✭ 53 (+112%)
Mutual labels:  inventory
Lagerregal
Super awesome inventory System for electronic devices
Stars: ✭ 21 (-16%)
Mutual labels:  inventory
StockManager
a JavaFX stock manager app
Stars: ✭ 29 (+16%)
Mutual labels:  inventory
ansible-debian
Buildfiles: Ansible automated leight-weight and sensible Debian provisioning
Stars: ✭ 83 (+232%)
Mutual labels:  inventory
pubg mobile memory hacking
Pubg Mobile Emulator Gameloop Memory Hacking C++ Source Code. Ex: Name, Cords, Bones, Weapons, Items, Box, Drop, Aimbot etc.
Stars: ✭ 69 (+176%)
Mutual labels:  inventory
mventory
An API-driven solution for Makerspaces, Tinkerers, and Hackers.
Stars: ✭ 102 (+308%)
Mutual labels:  inventory

CI Status

Pyventory

Ansible Inventory implementation that uses Python syntax

Install

pip3 install pyventory

Features

  • Modular inventory.
  • Assests inheritance using Python classes.
  • Support for multiple inheritance.
  • Support for mixins.
  • Support for vars templating using Python string formatting.
  • Python 3 (>=3.6) support.
  • Python 2 is not supported.

Usage

Create hosts.py and make it executable.

A short example of the hosts.py contents:

#!/usr/bin/env python3
from pyventory import Asset, ansible_inventory

class All(Asset):
    run_tests = False
    use_redis = False
    redis_host = 'localhost'
    minify = False
    version = 'develop'

class Staging(All):
    run_tests = True

staging = Staging()

ansible_inventory(locals())

Consider a more complex example which passes the following json output to Ansible.

Run Ansible playbook with the -i hosts.py key:

ansible-playbook -i hosts.py site.yml

Notice that you need to have your inventory package in PYTHONPATH.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].