Browse Source

Added OIDCP deployment script

master
Jonas Oberg 2 years ago
parent
commit
b4d5fc2cb6
1 changed files with 59 additions and 0 deletions
  1. 59
    0
      oidcp.deploy.yml

+ 59
- 0
oidcp.deploy.yml View File

@@ -0,0 +1,59 @@
---
- hosts: lund.fsfeurope.org
remote_user: root

tasks:
- name: build the oidcp container
command: docker build -t oidcp https://gitlab.com/jonasob/oidcp.git

- name: create a network
docker_network:
name: oidcp-redis-net
ipam_options:
subnet: '192.168.201.0/29'
state: present

- name: run oidcp-redis server
docker_container:
name: oidcp-redis
image: redis
state: started
restart: yes
networks:
- name: oidcp-redis-net
alias: redis

- name: run oidcp
docker_container:
name: oidcp
image: oidcp
state: started
restart: yes
env:
VIRTUAL_HOST: id.fsfe.org
LETSENCRYPT_HOST: id.fsfe.org
LETSENCRYPT_EMAIL: jonas@fsfe.org
FLASK_APP: 'wsgi.py'
SWAGGER_UI: 3
BACKCHANNEL_ID: 'backchannel_id'
BACKCHANNEL_PWORD: 'backchannel_secret'
BACKCHANNEL_TIMEOUT: 3
FRONTEND_ID: 'frontend_id'
FRONTEND_URL: 'https://TODO.org'
SHARED_JWT_SECRET: 'shared_jwt_secret'
TOKEN_ALGORITHM: 'HS256'
FRONTEND_SALT: 'frontend_salt'
FSFE_CD_URL: 'https://TODO.org'
LDAP_URL: 'ldap://localhost/'
LDAP_UNAME_PATTERN: 'uid={},ou=fellowship,dc=fsfe,dc=org'
LDAP_EMAIL_PATTERN: 'ou=fellowship,dc=fsfe,dc=org'
MAIL_DEFAULT_SENDER: 'admin@fsfe.org'
CELERY_BROKER_URL: 'redis://redis:6379/1'
CELERY_RESULT_BACKEND: 'redis://redis:6379/1'
CODE_TIMEOUT: 1800
DEV: False
networks:
- name: oidcp-redis-net
links:
- oidcp-redis:redis
command: 'make prodserver'

Loading…
Cancel
Save