Ansible playbook to deploy reverse proxy and Docker services on lund.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

oidcp.deploy.yml 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ---
  2. - hosts: lund.fsfeurope.org
  3. remote_user: root
  4. tasks:
  5. - name: build the oidcp container
  6. command: docker build -t oidcp https://gitlab.com/jonasob/oidcp.git
  7. - name: create a network
  8. docker_network:
  9. name: oidcp-redis-net
  10. ipam_options:
  11. subnet: '192.168.201.0/29'
  12. state: present
  13. - name: run oidcp-redis server
  14. docker_container:
  15. name: oidcp-redis
  16. image: redis
  17. state: started
  18. restart: yes
  19. networks:
  20. - name: oidcp-redis-net
  21. alias: redis
  22. - name: run oidcp
  23. docker_container:
  24. name: oidcp
  25. image: oidcp
  26. state: started
  27. restart: yes
  28. env:
  29. VIRTUAL_HOST: id.fsfe.org
  30. LETSENCRYPT_HOST: id.fsfe.org
  31. LETSENCRYPT_EMAIL: jonas@fsfe.org
  32. FLASK_APP: 'wsgi.py'
  33. SWAGGER_UI: 3
  34. BACKCHANNEL_ID: 'backchannel_id'
  35. BACKCHANNEL_PWORD: 'backchannel_secret'
  36. BACKCHANNEL_TIMEOUT: 3
  37. FRONTEND_ID: 'frontend_id'
  38. FRONTEND_URL: 'https://TODO.org'
  39. SHARED_JWT_SECRET: 'shared_jwt_secret'
  40. TOKEN_ALGORITHM: 'HS256'
  41. FRONTEND_SALT: 'frontend_salt'
  42. FSFE_CD_URL: 'https://TODO.org'
  43. LDAP_URL: 'ldap://localhost/'
  44. LDAP_UNAME_PATTERN: 'uid={},ou=fellowship,dc=fsfe,dc=org'
  45. LDAP_EMAIL_PATTERN: 'ou=fellowship,dc=fsfe,dc=org'
  46. MAIL_DEFAULT_SENDER: 'admin@fsfe.org'
  47. CELERY_BROKER_URL: 'redis://redis:6379/1'
  48. CELERY_RESULT_BACKEND: 'redis://redis:6379/1'
  49. CODE_TIMEOUT: 1800
  50. DEV: False
  51. networks:
  52. - name: oidcp-redis-net
  53. links:
  54. - oidcp-redis:redis
  55. command: 'make prodserver'