create db and user for coprdb
This commit is contained in:
parent
e922d38b45
commit
16667f23dc
2 changed files with 8 additions and 1 deletions
|
@ -39,3 +39,10 @@
|
|||
when: dbs_to_backup != []
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Create db
|
||||
postgresql_db: name="coprdb" encoding='UTF-8'
|
||||
|
||||
- name: Create db user
|
||||
postgresql_user: db="coprdb" name="copr-fe" password="{{ copr_database_password }}" role_attr_flags=SUPERUSER,NOCREATEDB,NOCREATEROLE
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ BACKEND_PASSWORD = '{{ copr_backend_password }}'
|
|||
#USE_ALLOWED_USERS = False
|
||||
#ALLOWED_USERS = ['bonnie', 'clyde']
|
||||
|
||||
SQLALCHEMY_DATABASE_URI = '{{ copr_database_uri }}'
|
||||
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://copr-fe:{{ copr_database_password }}@/coprdb'
|
||||
|
||||
# Token length, defaults to 30 (max 255)
|
||||
#API_TOKEN_LENGTH = 30
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue