0 purchases
saltsls 1.0.1
Run a single SLS file locally with Salt, without the need for a master or minion setup. This agentless and simplified approach allows faster deployment and testing of SLS files.
About
salt-sls is an innovation for those who want a lightweight approach to using SaltStack. With this tool, you can run a single SLS file on your local machine without setting up the more extensive master or minion infrastructure. Whether you’re testing a new SLS or need a quick execution, salt-sls is your friend.
What is POP?
This project is built with pop, a Python-based
implementation of Plugin Oriented Programming (POP). POP seeks to bring
together concepts and wisdom from the history of computing in new ways to solve
modern computing problems.
For more information:
Intro to Plugin Oriented Programming (POP)
pop-awesome
pop-create
Getting Started
Prerequisites
Python 3.8+
git (if installing from source, or contributing to the project)
Installation
If wanting to use salt-sls, you can do so by either
installing from PyPI or from source.
Install from PyPI
pip install salt-sls
Install from source
# clone repo
git clone git@vmware/pop/salt-sls.git
cd salt-sls
# Setup venv
python3 -m venv .venv
source .venv/bin/activate
pip install .
Usage
Examples
To run your SLS files, you can use either the standard Python command or the convenient sls command.
You can also set specific configuration options through a my_config.yaml file.
Using the standard Python command in the cloned repo:
python run.py examples/test.sls
Or using the sls command from pypi:
echo "test:\n test.nop:\n - name: state" > test.sls
sls test.sls
Configuration
Set up configuration options for salt-sls through a my_config.yaml file. Here’s an example:
# my_config.yaml
salt_sls:
cachedir: /var/log/salt
# Add any minion config opts you want to use under the "minion_opts" key.
# Refer to the [official minion config documentation](https://docs.saltproject.io/en/latest/ref/configuration/minion.html) for details.
minion_opts: {}
Roadmap
Reference the open issues for a list of
proposed features (and known issues).
Acknowledgements
Img Shields for making repository badges easy.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.