Skip to main content

Vertical app merge components for Idem and grains support on Linux

Project description

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 @ git+https://gitlab.com/saltstack/pop/idem-linux.git" >> 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idem-linux-6.1.tar.gz (44.7 kB view details)

Uploaded Source

Built Distribution

idem_linux-6.1-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file idem-linux-6.1.tar.gz.

File metadata

  • Download URL: idem-linux-6.1.tar.gz
  • Upload date:
  • Size: 44.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for idem-linux-6.1.tar.gz
Algorithm Hash digest
SHA256 a750b35726f0b6769df3d4def8dcc5a94862dc26d6ce594338832e5a8d0eeec5
MD5 dde3f2ac5436bc52b8151234dca73448
BLAKE2b-256 d828311f2a255087da31731b2c1034cfe2b0b821f855cfbacbace5ff54fc8e38

See more details on using hashes here.

File details

Details for the file idem_linux-6.1-py3-none-any.whl.

File metadata

  • Download URL: idem_linux-6.1-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for idem_linux-6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6926aa05f5a9c690dc7c89f442ce27bc252f27557e86ead8d120e7ff7dad3da
MD5 338e006c0b20b737a2360afb0fa5bafe
BLAKE2b-256 82bb81a8c81c58db19f44bc29f470e84653fa1837d3550342bb2f2af259ca3ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page