Update provisioning to configure extra databox

This commit is contained in:
Thibaud Fabre
2016-10-14 14:33:32 +02:00
parent efc5842e06
commit 43d0599eba
3 changed files with 9 additions and 0 deletions

View File

@@ -36,6 +36,13 @@
args:
chdir: /vagrant/
- name: Create extra databox
become: yes
become_user: vagrant
shell: 'bin/console databox:create db_alt admin@{{ hostname }}.vb'
args:
chdir: /vagrant/
- name: Enable debugger for host IP addresses
shell: bin/setup system:config add debugger.allowed-ips "{{ item}}"
with_items: '{{ host_addresses }}'

View File

@@ -43,6 +43,7 @@
with_items:
- "{{ mariadb.database }}"
- "{{ mariadb.databox_db }}"
- "{{ mariadb.alt_db }}"
- name: mariadb | Import dump
mysql_db: name={{ mariadb.database }} state=import login_user=root login_password={{ mariadb.root_password }} target=/vagrant/{{ mariadb.dump }}

View File

@@ -43,6 +43,7 @@ mariadb:
root_password: toor
database: ab_master
databox_db: db_master
alt_db: db_alt
user: phraseanet
password: phraseanet
dump: ''