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

Pip install corn:

pip install -e git+https://gitlab.com/saltstack/pop/corn.git

Clone the idem-linux repo and install with pip:

git clone https://gitlab.com/saltstack/pop/idem-linux.git
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 pop-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-1.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

idem_linux-1.1-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idem-linux-1.1.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for idem-linux-1.1.tar.gz
Algorithm Hash digest
SHA256 7e11e33653edec5cc6e3125f210be59284f73d459c89052da3d8f29aae669ca4
MD5 887adfacc45176142a3f5fc50b2d914b
BLAKE2b-256 1f3480cfd62c34b00cdd796f2bf3cb37df3b95f33519b28acb793ce7c173aa0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idem_linux-1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for idem_linux-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e707fc92599898e93b0892e9d8e5c27a0292c7c0b41321d8c1ebbee49561549
MD5 9aff68b3f0a9aa21375555e1466345b5
BLAKE2b-256 ba835eff863bd5502e7628f6c05e7b8c865a5f9fbcfec7422322c3414ce8c922

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