Grains, execution modules, and state modules common to all linux systems
INSTALLATION
Install with pip:
pip install idem-linux
DEVELOPMENT INSTALLATION
Clone the idem-linux repo and install with pip:
git clone https://gitlab.com/saltstack/pop/idem-linux.git idem_linux pip install -e idem_linux
EXECUTION
After installation the grains command should now be available
TESTING
install requirements-test.txt with pip and run pytest:
pip install -r idem-linux/requirements-test.txt pytest idem-linux/tests
VERTICAL APP-MERGING
Instructions for extending idem-linux into an OS or distro specific pop project
Install pop:
pip install --upgrade pop
Create a new directory for the project:
mkdir idem-{specific_linux_distro}
cd idem-{specific_linux_distro}
Use pop-seed to generate the structure of a project that extends grains and idem:
pop-seed -t v idem-{specific_linux_distro} -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-linux” to the requirements.txt:
echo idem-linux >> requirements.txt
And that’s it! Go to town making grains, execution modules, and state modules specific to your linux distro. Follow the conventions you see in idem-linux.
For information about running idem states and execution modules check out https://idem.readthedocs.io
Metadata
Release files for idem-linux 7
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-linux-7.tar.gz | 21.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| idem_linux-7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.9 kB
Release files / idem-linux-7.tar.gz
| Download URL | idem-linux-7.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6991cfa1d85868c77a09fc50027f088b0add94d7aa01347755a5011d81cab5f
|
|
BLAKE2b-256 checksum How to use checksums |
011d1dc2517aa8c62db4863d74032c193cec4eed11d4bd072aaeec1dca0ba714
|
| 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_linux-7-py3-none-any.whl
| Download URL | idem_linux-7-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3a18a07f7629d29ce91c646ecaee2e09adbd5f238d476176e5fc8bb954d95eb
|
|
BLAKE2b-256 checksum How to use checksums |
9216890d45b24d3cef4672c942d0c6dd716217089b84fa6ee3ddfbb0c85abe05
|
| 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
|