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 posix systems

INSTALLATION

Install with pip:

pip install idem-posix

DEVELOPMENT INSTALLATION

Clone the idem-posix repo and install with pip:

git clone https://gitlab.com/saltstack/pop/idem-posix.git idem_posix
pip install -e idem_posix

EXECUTION

After installation the grains command should now be available

TESTING

install requirements-test.txt with pip and run pytest:

pip install -r idem-posix/requirements-test.txt
pytest idem-posix/tests

VERTICAL APP-MERGING

Instructions for extending idem-posix into an OS specific pop project

Install pop:

pip install --upgrade pop

Create a new directory for the project:

mkdir idem-{specific_posix_os}
cd idem-{specific_posix_os}

Use pop-seed to generate the structure of a project that extends grains and idem:

pop-seed -t v idem-{specific_posix_os} -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-posix” to the requirements.txt:

echo idem-posix >> requirements.txt

And that’s it! Go to town making grains, execution modules, and state modules specific to your posix os. Follow the conventions you see in idem-posix.

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

Uploaded Source

Built Distribution

idem_posix-2.3-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file idem-posix-2.3.tar.gz.

File metadata

  • Download URL: idem-posix-2.3.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for idem-posix-2.3.tar.gz
Algorithm Hash digest
SHA256 1cdcf72dea3c9685b6e50d5b12f089a22cc74f298d8b8c9c9fc3522932fc056a
MD5 fc88b8f88da62869d4035822cea9e53b
BLAKE2b-256 a5a271033f772b8242f3c1574c3bd4ac129058bde8a0ebba244e6ed918d94b10

See more details on using hashes here.

File details

Details for the file idem_posix-2.3-py3-none-any.whl.

File metadata

  • Download URL: idem_posix-2.3-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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/45.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for idem_posix-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8c8642e259faac96affd314ec16a714e860ef0b8126b3f4b038a18a365066129
MD5 6d411ecfc13f998a819ae399efb0b1ab
BLAKE2b-256 0f16c73bd55a7985316196e71e6259ff2c2d0b7b75ae18aef627be284a89a087

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