system-config/playbooks/roles/refstack/templates/refstack.conf.j2
Ian Wienand a246df66b4 refstack: create database storage area
The mariadb container currently doesn't persist it's database
anywhere.  Map /var/lib/refstack/db to /var/lib/mysql in the
container.

We have /var/refstack and /var/lib/refstack with various things.
While we're here move everythign under /var/lib/refstack.

Also use 127.0.0.1 to ensure mysql doesn't try to connect over a
socket, but tcp (I think pymsql does anyway, but it's a little
clearer).

Change-Id: I5605eac2848a6b2222698bf20c707baa4442fcd5
2021-02-10 17:35:04 +11:00

18 lines
454 B
Django/Jinja

[DEFAULT]
debug = true
verbose = true
ui_url = {{ refstack_url }}
[api]
static_root = /refstack-ui/app
template_path = /refstack-ui/app
app_dev_mode = true
api_url = {{ refstack_url }}
enable_anonymous_upload = {{ enable_anonymous_upload | default(false) }}
[database]
connection = "mysql+pymysql://{{ refstack_db_username}}:{{ refstack_db_password }}@127.0.0.1/refstack?charset=utf8"
[osid]
openstack_openid_endpoint = {{ refstack_openid_endpoint }}