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.

Files for idem-linux, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size idem_linux-1.2-py3-none-any.whl (32.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size idem-linux-1.2.tar.gz (24.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page