Ansible Inventory CRUD library
Project description
This is a library to manipulate Ansible Inventories.
It's independent of ansible by design, so that it doesn't need to track
ansible code and is version independent.
It only relies on what ansible expects as inventories (the json structure),
which hasn't changed for a long time now.
A standard inventory json is like this:
```
{
_meta:{
hostvars:{
<hostname>:{
var1: value1
}
}
},
all:{
children: [],
vars:{
var2: value2
},
},
groupname1:{
children:[],
hosts:[],
}
groupname2:{
children:[],
vars:{
var3: value3
},
}
}
```
This lib allows the loading of multiple jsons into memory, and manipulate the
inventory objects, and vars precedence.
Usage will explained in documentation soon.
You can submit patches with git-review and gerrithub (``pip install git-review``)
# git clone https://review.gerrithub.io/evrardjp/ansible-inventory-manage
# git review -s
# git checkout -b my_super_patch
# git review -f
It's independent of ansible by design, so that it doesn't need to track
ansible code and is version independent.
It only relies on what ansible expects as inventories (the json structure),
which hasn't changed for a long time now.
A standard inventory json is like this:
```
{
_meta:{
hostvars:{
<hostname>:{
var1: value1
}
}
},
all:{
children: [],
vars:{
var2: value2
},
},
groupname1:{
children:[],
hosts:[],
}
groupname2:{
children:[],
vars:{
var3: value3
},
}
}
```
This lib allows the loading of multiple jsons into memory, and manipulate the
inventory objects, and vars precedence.
Usage will explained in documentation soon.
You can submit patches with git-review and gerrithub (``pip install git-review``)
# git clone https://review.gerrithub.io/evrardjp/ansible-inventory-manage
# git review -s
# git checkout -b my_super_patch
# git review -f
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ansible_inventory_manage-0.0.2.tar.gz
.
File metadata
- Download URL: ansible_inventory_manage-0.0.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 143c3dd833b79624d5442f02764683eea59057c9eaf6d619cd647ddcf4a05feb |
|
MD5 | bc5803d53d593d4a453c76b13cbd678b |
|
BLAKE2b-256 | 196cfa2f2d9b3c8f154d0e0dd57bdec5cbb89c50973f1fe63eb6cdb8afedc476 |
File details
Details for the file ansible_inventory_manage-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ansible_inventory_manage-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86436d248197c9dfd3dd0d5667d663d60b6b7bfd737fa8b10ab41f3873bfdfca |
|
MD5 | 98cdffcd21c0c24044a6553442fecebf |
|
BLAKE2b-256 | 411fc9e5c3bf36a8a3a274de12e66f5d161f40d34a4c7e81fb166a56b61e3e4f |