Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
TYPEORM_MIGRATIONS vars added
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hendriks committed Jul 25, 2019
1 parent 293f8b8 commit d97b423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/basevars/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jiskefet_api_general_settings:
TYPEORM_DATABASE: 'jiskefetdb'
TYPEORM_SYNCHRONIZE: 'true'
TYPEORM_LOGGING: 'true'
TYPEORM_MIGRATIONS_DIR: 'src/migration'
TYPEORM_MIGRATIONS: 'src/migration/*.js'
TYPEORM_PORT: 3306
USE_INFO_LOGGER: 'false'
JWT_SECRET_KEY: 'NHcW7x9K'
Expand Down
2 changes: 2 additions & 0 deletions roles/jiskefet-common/tasks/set-default-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
TYPEORM_DATABASE: "{{ jiskefet_api_general_settings.TYPEORM_DATABASE if ((jiskefet_api_general_settings.TYPEORM_DATABASE is defined) and (jiskefet_api_general_settings.TYPEORM_DATABASE | trim != '')) else 'jiskefetdb'}}"
TYPEORM_USERNAME: "{{ jiskefet_api_general_settings.TYPEORM_USERNAME if ((jiskefet_api_general_settings.TYPEORM_USERNAME is defined) and (jiskefet_api_general_settings.TYPEORM_USERNAME | trim != '')) else 'jiskefet'}}"
TYPEORM_PASSWORD: "{{ jiskefet_api_general_settings.TYPEORM_PASSWORD if ((jiskefet_api_general_settings.TYPEORM_PASSWORD is defined) and (jiskefet_api_general_settings.TYPEORM_PASSWORD | trim != '')) else 'abd1516812'}}"
TYPEORM_MIGRATIONS_DIR: "{{ jiskefet_api_general_settings.TYPEORM_MIGRATIONS_DIR if ((jiskefet_api_general_settings.TYPEORM_MIGRATIONS_DIR is defined) and (jiskefet_api_general_settings.TYPEORM_MIGRATIONS_DIR | trim != '')) else 'src/migration'}}"
TYPEORM_MIGRATIONS: "{{ jiskefet_api_general_settings.TYPEORM_MIGRATIONS if ((jiskefet_api_general_settings.TYPEORM_MIGRATIONS is defined) and (jiskefet_api_general_settings.TYPEORM_MIGRATIONS | trim != '')) else 'src/migration/*.js'}}"
TYPEORM_PORT: "{{ jiskefet_api_general_settings.TYPEORM_PORT if ((jiskefet_api_general_settings.TYPEORM_PORT is defined) and (jiskefet_api_general_settings.TYPEORM_PORT | trim != '')) else 3306}}"
TYPEORM_SYNCHRONIZE: "{{ jiskefet_api_general_settings.TYPEORM_SYNCHRONIZE if ((jiskefet_api_general_settings.TYPEORM_SYNCHRONIZE is defined) and (jiskefet_api_general_settings.TYPEORM_SYNCHRONIZE | trim != '')) else 'true'}}"
TYPEORM_LOGGING: "{{ jiskefet_api_general_settings.TYPEORM_LOGGING if ((jiskefet_api_general_settings.TYPEORM_LOGGING is defined) and (jiskefet_api_general_settings.TYPEORM_LOGGING | trim != '')) else 'false'}}"
Expand Down

0 comments on commit d97b423

Please sign in to comment.