IDEM-LINUX
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 corn 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 corn and idem:
pop-seed -t v idem-{specific_linux_distro} -d corn exec states
“-t v” specifies that this is a vertically app-merged project
“-d corn exec states” says that we want to implement the dynamic names of “corn”, “exec”, and “states”
Add “idem-linux” to the requirements.txt:
echo "idem-linux @ git+https://gitlab.com/saltstack/pop/idem-linux.git" >> requirements.txt
And that’s it! Go to town making corn, 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 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-linux-2.tar.gz | 25.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| idem_linux-2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.4 kB
Release files / idem-linux-2.tar.gz
| Download URL | idem-linux-2.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bfebe2bef8353f8de4b36209d3c9a65f8ca1b8e0fd2011f8e4f3d6e01d4853f
|
|
BLAKE2b-256 checksum How to use checksums |
f524b5aef7176b67fae7ef33833e1b389d7563b30327d6d015c676604017a868
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Release files / idem_linux-2-py3-none-any.whl
| Download URL | idem_linux-2-py3-none-any.whl |
|---|---|
| Size | 34.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed01c9db44556f564adf9ca8708f3e539b803509767de3854f21496cc153cf86
|
|
BLAKE2b-256 checksum How to use checksums |
419a1c677333797a5dc73843d50a43ccf51c8bae7afe8f6742e2f2aca99e16c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|