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

Uploaded Source

Built Distributions

idem_posix-1.0.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

idem_posix-1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idem-posix-1.tar.gz
  • Upload date:
  • Size: 9.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/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for idem-posix-1.tar.gz
Algorithm Hash digest
SHA256 1f8228646cc735138e1f9f3cdebcd412223e28d19ca4555d15f0a5333608d75c
MD5 c649e3ad3eeba7c132550dd382fbeec3
BLAKE2b-256 c920cb5d5b1d13c96ec07124ae2064705147ebe8e532e7461a9754d8f4c14e2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idem_posix-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for idem_posix-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51758a8c1c86b10c419a2184147e0ce3d377c7869ed3f328700dae5dae48ac0e
MD5 3bc2960c31f03b1377cae04074ebe433
BLAKE2b-256 896d91e0d4515e3e4eb6291ae32bd20c6e3ca26e7f255d39d9a49494e82f87a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idem_posix-1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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_posix-1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e0e26d3ec7df4f909b81c8b43acafc1a72d5588c2f6825717662cdd438c7529
MD5 5006f940a199f933d0e0c4064ce58001
BLAKE2b-256 252f876c0d86fbb50e3950e1a9a9ca7bb45da463bbe8f752fdb4d3e3dcd83503

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