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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
webservices
Merge requests
!3
Unify uwsgi python
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Unify uwsgi python
unify_uwsgi_python
into
master
Overview
1
Commits
99
Pipelines
0
Changes
1
Merged
Hinrikus Wolf
requested to merge
unify_uwsgi_python
into
master
7 years ago
Overview
1
Commits
99
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
00d6901a
Prev
Next
Show latest version
1 file
+
44
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
00d6901a
start the documentation
· 00d6901a
Hinrikus Wolf
authored
7 years ago
README.md
0 → 100644
+
44
−
0
View file @ 00d6901a
Edit in single-file editor
Open in Web IDE
# 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
Loading