IDEM-POSIX
Grains, execution modules, and state modules common to all posix systems
INSTALLATION
Install with pip:
pip install idem-posix
DEVELOPMENT INSTALLATION
Clone the idem-posix repo and install with pip:
git clone https://gitlab.com/saltstack/pop/idem-posix.git idem_posix pip install -e idem_posix
EXECUTION
After installation the grains command should now be available
TESTING
install requirements-test.txt with pip and run pytest:
pip install -r idem-posix/requirements-test.txt pytest idem-posix/tests
VERTICAL APP-MERGING
Instructions for extending idem-posix into an OS specific pop project
Install pop:
pip install --upgrade pop
Create a new directory for the project:
mkdir idem-{specific_posix_os}
cd idem-{specific_posix_os}
Use pop-seed to generate the structure of a project that extends grains and idem:
pop-seed -t v idem-{specific_posix_os} -d grains exec states
“-t v” specifies that this is a vertically app-merged project
“-d grains exec states” says that we want to implement the dynamic names of “grains”, “exec”, and “states”
Add “idem-posix” to the requirements.txt:
echo idem-posix >> requirements.txt
And that’s it! Go to town making grains, execution modules, and state modules specific to your posix os. Follow the conventions you see in idem-posix.
For information about running idem states and execution modules check out https://idem.readthedocs.io
Metadata
Release files for idem-posix 2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| idem-posix-2.tar.gz | 12.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| idem_posix-2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / idem-posix-2.tar.gz
| Download URL | idem-posix-2.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22d837ab70a1c625e92d7c7829cb572746d6c3885747d28581d695852234284d
|
|
BLAKE2b-256 checksum How to use checksums |
3ed97791561bd4efb70c2beda93f9fe0f0ab853b0d3f4a4b5ccb752e10c64eb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / idem_posix-2-py3-none-any.whl
| Download URL | idem_posix-2-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50f5352d2710e978f7a19e4cfbfe417d645e2cc764a1973d48ad3d2789c9940e
|
|
BLAKE2b-256 checksum How to use checksums |
6e94b9d49ce7560103ca18af29bf72e5b6adf05d3ba8957adc1fdb95d6c074a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|