Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
webservices
Commits
6037b609
Commit
6037b609
authored
7 years ago
by
Hinrikus Wolf
Browse files
Options
Downloads
Patches
Plain Diff
start the documentation
parent
ed9ba73a
No related branches found
No related tags found
1 merge request
!3
Unify uwsgi python
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+44
-0
44 additions, 0 deletions
README.md
with
44 additions
and
0 deletions
README.md
0 → 100644
+
44
−
0
View file @
6037b609
# Webservices
## Roles
-
`acmetool`
, manages let's encrypt certificates via acmetool
-
`debian-repository`
, installs the software reprepro (very basic)
-
`lehrpreis`
, teaching award nomination web app
-
`meckerkasten`
, mimimi web app
-
`mediawiki`
, setups mediawiki with php-fpm
-
`php-fpm`
, setups php-fpm pools
-
`protokollsystem`
, protocols, meetings, and everything management web app (TM)
-
`schildergenerator`
, sign generator web app
-
`sentry`
, error collection api and web app
-
`sso`
, single signon web app
-
`uwsgi-php`
, deprecated
-
`uwsgi-python`
, unified web app deployment role for python-based web apps
-
`wahlhelfer`
, setups wahlhelfer registration and scheduling web app
-
`wahlsystem`
, setups an election management system
-
`webserver`
, configures nginx
-
`wordpress`
, setups wordpresses via an overlayfs technology
*Note:*
Some roles are still undocumented.
## uwsgi-python
The idea of the role is to have only one role for all the python-based web apps. Instead of a role (and group) for every single app.
We distinguish between apps and instances. An app is the actual program, which can be instaciated more than once, which we call the instance.
The role iterates over the list
`webapps`
(in the host vars) and import app and instance specific variable files.
An app specific task snippet is imported if it configured in the variable files (see below).
We place the instance specific variable file under
<inventory_dir>
/vars/
<instance>
.yml. The app specific variable file is
<role_dir>
/vars/
<app>
.yml.
In the latter file there should be sensible defaults for _every_ variable used within the role.
This role needs the patch from this
[
pull-request
](
https://github.com/ansible/ansible/pull/39762
)
or ansible 2.6 or later.
### Variables
### How to create a new app
### How to create a new app's instance
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment