Vertical app merge components for Idem and grains support on Linux
Project description
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
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 idem-posix-2.tar.gz
.
File metadata
- Download URL: idem-posix-2.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d837ab70a1c625e92d7c7829cb572746d6c3885747d28581d695852234284d |
|
MD5 | 21b67d223fad4a409230d675c5e40080 |
|
BLAKE2b-256 | 3ed97791561bd4efb70c2beda93f9fe0f0ab853b0d3f4a4b5ccb752e10c64eb7 |
File details
Details for the file idem_posix-2-py3-none-any.whl
.
File metadata
- Download URL: idem_posix-2-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50f5352d2710e978f7a19e4cfbfe417d645e2cc764a1973d48ad3d2789c9940e |
|
MD5 | cf5036a28b63344d50ab872649af6d3c |
|
BLAKE2b-256 | 6e94b9d49ce7560103ca18af29bf72e5b6adf05d3ba8957adc1fdb95d6c074a7 |