Skip to content

intuitivetechnologygroup/flask-webserver-formula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Webserver

Build Status

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.



Development

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 nginx

Testing

The Makefile is located in the project base directory.

Start a virtualenv

pip install -U virtualenv
virtualenv .venv
source .venv/bin/activate
  • install requirements: make test-setup
  • run a test:
    • make test-centos_master_2017.7.2
    • make test-debian_master_2017.7.2
    • make test-ubuntu_master_2017.7.2
    • make test-ubuntu_master_2016.11.3
  • test results will return to your screen.

Available States

flask_webserver.dependencies

Gathers salt formulas required to provision the webserver.

flask_webserver

Pillar Customizations

Any of these values can be overwritten in a pillar file. If you do find yourself needing more overrides follow the example below.

pillar.example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published