[constellation] Replace ComnPay configuration by Stripe, add Note Kfet configuration

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2022-01-14 18:48:36 +01:00
parent 3cbbf4c80c
commit 5a800e46f9
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 43 additions and 20 deletions

View File

@ -1,6 +1,6 @@
--- ---
glob_constellation: glob_constellation:
django_secret_key: "{{ vault.constellation_django_secret_key }}" django_secret_key: "{{ vault.constellation.django_secret_key }}"
admins: admins:
- ('Root', 'root@crans.org') - ('Root', 'root@crans.org')
allowed_hosts: allowed_hosts:
@ -18,7 +18,7 @@ glob_constellation:
host: "{{ query('ldap', 'ip', 'tealc', 'adm') | ipv4 | first }}" host: "{{ query('ldap', 'ip', 'tealc', 'adm') | ipv4 | first }}"
port: 5432 port: 5432
user: 'constellation' user: 'constellation'
password: "{{ vault.constellation_django_db_password }}" password: "{{ vault.constellation.django_db_password }}"
name: 'constellation' name: 'constellation'
front: true front: true
crontab: true crontab: true
@ -32,12 +32,16 @@ glob_constellation:
- 'member' - 'member'
- 'topography' - 'topography'
- 'unix' - 'unix'
comnpay: stripe:
tpe: 'VAD-941-415' private_key: '{{ vault.constellation.stripe.live.private_key }}'
secret: '{{ vault.comnpay_secret }}' public_key: '{{ vault.constellation.stripe.live.public_key }}'
note:
url: 'https://note.crans.org/'
client_id: '{{ vault.constellation.note.client_id }}'
client_secret: '{{ vault.constellation.note.client_secret }}'
debug: false debug: false
owner: root owner: root
group: _nounou group: _nounou
version: master version: main
settings_local_owner: www-data settings_local_owner: www-data
settings_local_group: _nounou settings_local_group: _nounou

View File

@ -9,19 +9,23 @@ loc_constellation:
database: database:
user: 'constellation-dev' user: 'constellation-dev'
name: 'constellation-dev' name: 'constellation-dev'
applications: applications:
- 'access' - 'access'
- 'billing' - 'billing'
- 'dnsmanager' - 'debug'
- 'firewall' - 'dnsmanager'
- 'layers' - 'firewall'
- 'management' - 'layers'
- 'member' - 'management'
- 'topography' - 'member'
- 'unix' - 'topography'
- 'debug' - 'unix'
comnpay: stripe:
tpe: 'HOM-832-854' private_key: '{{ vault.constellation.stripe.test.private_key }}'
secret: '{{ vault.comnpay_homologation_secret }}' public_key: '{{ vault.constellation.stripe.test.public_key }}'
note:
url: 'https://note-dev.crans.org/'
client_id: '{{ vault.constellation.note.client_id }}'
client_secret: '{{ vault.constellation.note.client_secret }}'
debug: true debug: true
version: dev version: dev

View File

@ -55,6 +55,21 @@ EMAIL_HOST_USER = '{{ constellation.email.user }}'
EMAIL_HOST_PASSWORD = '{{ constellation.email.password }}' EMAIL_HOST_PASSWORD = '{{ constellation.email.password }}'
SERVER_EMAIL = '{{ constellation.email.from }}' SERVER_EMAIL = '{{ constellation.email.from }}'
DEFAULT_FROM_EMAIL = '{{ constellation.email.from_full }}' DEFAULT_FROM_EMAIL = '{{ constellation.email.from_full }}'
{% if constellation.front %}
{% if constellation.comnpay is defined %}
COMNPAY_ID_TPE = '{{ constellation.comnpay.tpe }}' COMNPAY_ID_TPE = '{{ constellation.comnpay.tpe }}'
COMNPAY_SECRET_KEY = '{{ constellation.comnpay.secret }}' COMNPAY_SECRET_KEY = '{{ constellation.comnpay.secret }}'
{% endif %}
{% if constellation.stripe is defined %}
STRIPE_PRIVATE_KEY = "{{ constellation.stripe.private_key }}"
STRIPE_PUBLIC_KEY = "{{ constellation.stripe.public_key }}"
{% endif %}
{% if constellation.note is defined %}
NOTE_KFET_URL = "{{ constellation.note.url }}"
NOTE_KFET_CLIENT_ID = "{{ constellation.note.client_id }}"
NOTE_KFET_CLIENT_SECRET = "{{ constellation.note.client_secret }}"
{% endif %}
{% endif %}