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 >> 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.7.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

idem_linux-6.7-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idem-linux-6.7.tar.gz
  • Upload date:
  • Size: 22.0 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

Hashes for idem-linux-6.7.tar.gz
Algorithm Hash digest
SHA256 ac36feb6ab6c59cf8dddf294353fa84e6dcdfe1719a2a59b1b5c24f89feee899
MD5 80e6de7aa9cc4817e48b560b0db5f766
BLAKE2b-256 acc6371c74011aeb2e7e6a36bf0d0519401097a5d28bac67b4d3e53c3af53901

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idem_linux-6.7-py3-none-any.whl
  • Upload date:
  • Size: 29.2 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

Hashes for idem_linux-6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f493b979e290c04994c9244731300e8875611e1e7d2253c085a4ed4b770b1e
MD5 d5773840109f1b4ddff2da1b202090d9
BLAKE2b-256 2bb70b256e74ffaac379d190fe764a1928bb82a9d630ad0883d0ebbec05619e2

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