Use automatic token generation

This commit is contained in:
Sonny Bakker 2021-07-19 18:46:17 +02:00
parent 908e5f78cb
commit bcbb224787
3 changed files with 17 additions and 2 deletions

View file

@ -45,6 +45,17 @@
environment:
PATH: '/home/{{ app_user }}/.local/bin:{{ poetry_user_path }}'
- name: create ssh directory
file:
path: '{{ private_key_dir }}'
state: 'directory'
- name: copy private key
copy:
src: 'files/transip-client.key'
dest: '{{ private_key_dir }}/{{ private_key_name }}'
mode: 0600
- name: copy environment file
template:
src: 'templates/env.j2'

View file

@ -1,3 +1,3 @@
DOMAINS="{{ app_domains | join(':') }}"
TOKEN="{{ app_token }}"
SENTRY_DSN="{{ sentry_dsn }}"
PRIVATE_KEY_PATH="{{ private_key_dir }}/{{ private_key_name }}"

View file

@ -1,6 +1,6 @@
app_url: 'https://git.fudiggity.nl/sonny/transip_client.git'
app_user: 'sonny'
app_branch: '0.3.1'
app_branch: '0.4'
app_dir: '{{ ansible_env.HOME }}/apps/transip_client'
app_domains:
- fudiggity.nl
@ -57,6 +57,10 @@ sentry_dsn: !vault |
35393536636238653338393163373966356636653362343039366230636364363233376336383331
636663383661346534613533653133376534
private_key_dir: '{{ ansible_env.HOME }}/.ssh'
private_key_name: 'transip-client.key'
login: 'SonnyBakker'
packages:
- python3
- python3-dev