Formulas to set up a webserver for flask applications.
Note: See the full Salt Formulas installation and usage instructions http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html.
Assumptions:
make is on your system and available. If it is not or you are not sure what
make is, this is a good place to start.
Notes:
make local-centos_master_2017.7.2
# now your in the container....
# collect formula dependencies
salt-call -l all --local state.apply flask_webserver.dependencies
# run the flask_webserver state
salt-call -l all --local state.apply flask_webserver
# copy nginx pillar
cp -r /opt/flask_webserver-formula/pillar /srv/pillar
salt-call --local saltutil.refresh_pillar
# run the nginx state
salt-call -l all --local state.apply nginxThe Makefile is located in the project base directory.
pip install -U virtualenv
virtualenv .venv
source .venv/bin/activate- install requirements:
make test-setup - run a test:
make test-centos_master_2017.7.2make test-debian_master_2017.7.2make test-ubuntu_master_2017.7.2make test-ubuntu_master_2016.11.3
- test results will return to your screen.
Gathers salt formulas required to provision the webserver.
Any of these values can be overwritten in a pillar file. If you do find yourself needing more overrides follow the example below.