1
0

Add second database for notes search index

This commit is contained in:
Anton Vakhrushev 2018-03-04 12:55:05 +03:00
parent d1c7a3eeda
commit 68a991df96
2 changed files with 13 additions and 0 deletions

View File

@ -3,11 +3,16 @@ dependencies:
- role: geerlingguy.mysql
mysql_databases:
- name: '{{ notes_dbname }}'
- name: '{{ notes_search_dbname }}'
mysql_users:
- name: '{{ notes_dbuser }}'
host: 127.0.0.1
password: '{{ notes_dbpassword }}'
priv: '{{ notes_dbname }}.*:ALL'
- name: '{{ notes_search_dbuser }}'
host: 127.0.0.1
password: '{{ notes_search_dbpassword }}'
priv: '{{ notes_search_dbname }}.*:ALL'
- role: blocks/owner
owner_name: '{{ notes_owner }}'

View File

@ -8,6 +8,9 @@ notes_cert_type: 'letsencrypt'
notes_dbname: notes_db
notes_dbuser: notes_db
notes_dbpassword: Sf6tp6LKeCyrjVZ2YGKYUd
notes_search_dbname: notes_search_db
notes_search_dbuser: notes_search_db
notes_search_dbpassword: 9k7cwKyWFGSSnEDn
notes_php_connection: '127.0.0.1:9010'
notes_env:
@ -20,6 +23,11 @@ notes_env:
NOTES_DATABASE_NAME: '{{ notes_dbname }}'
NOTES_DATABASE_USER: '{{ notes_dbuser }}'
NOTES_DATABASE_PASSWORD: '{{ notes_dbpassword }}'
NOTES_DATABASE_SEARCH_HOST: 127.0.0.1
NOTES_DATABASE_SEARCH_PORT: 3306
NOTES_DATABASE_SEARCH_NAME: '{{ notes_search_dbname }}'
NOTES_DATABASE_SEARCH_USER: '{{ notes_search_dbuser }}'
NOTES_DATABASE_SEARCH_PASSWORD: '{{ notes_search_dbpassword }}'
NOTES_MAILER_HOST: smtp.timeweb.ru
NOTES_MAILER_PORT: 25
NOTES_MAILER_USER: noreply@anwinged.ru