Skip to main content

Vertical app merge components for Idem and corn 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 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

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

Uploaded Source

Built Distribution

idem_linux-2.6-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idem-linux-2.6.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for idem-linux-2.6.tar.gz
Algorithm Hash digest
SHA256 7d6d114c8a476cd9a82f162f096d4626e6091779b956fca6e4b4f65f2e950420
MD5 34135dd2ae5d6b63dc2a1f8643a47ccc
BLAKE2b-256 31adaf9aa9db1a091b6d082752776d9f7096497cb572f700ec535325efeb3e98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idem_linux-2.6-py3-none-any.whl
  • Upload date:
  • Size: 34.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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for idem_linux-2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f12c5d65dd6a434f6f33ee42a60eb86b90e347afd55116ece2d1d88cf5d29019
MD5 77d2ab7f5d88554609c5bff3deea998e
BLAKE2b-256 c23ecb8ed8da0b9bc7a45639b33233f946aa855865133176b0760c1640a3812d

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