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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.