mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
Softcode db/user/pass in odbc.ini.j2, cdr_mysql.conf.j2
This commit is contained in:
parent
65a845e9b9
commit
92f2d1acaa
4 changed files with 13 additions and 13 deletions
|
@ -191,16 +191,16 @@
|
|||
# http://mghadam.blogspot.com/2021/03/install-asterisk-18-freepbx-15-on.html
|
||||
- name: FreePBX - Install /etc/odbc.ini, /etc/odbcinst.ini from template (root:root, 0644 by default)
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- odbc.ini
|
||||
- odbcinst.ini
|
||||
- { src: odbc.ini.j2, dest: /etc/odbc.ini }
|
||||
- { src: odbcinst.ini, dest: /etc/odbcinst.ini }
|
||||
|
||||
- name: FreePBX - Install /etc/asterisk/cdr_mysql.conf from template (root:root, 0644 by default)
|
||||
template:
|
||||
src: cdr_mysql.conf
|
||||
dest: /etc/asterisk/
|
||||
src: cdr_mysql.conf.j2
|
||||
dest: /etc/asterisk/cdr_mysql.conf
|
||||
|
||||
|
||||
- name: FreePBX - 2-step install - won't run if {{ freepbx_install_dir }} already exists - CAN TAKE 3-12 MIN OR LONGER!
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
[global]
|
||||
hostname = localhost
|
||||
dbname = asteriskcdrdb
|
||||
user = asterisk
|
||||
password = asterisk
|
||||
userfield = 1
|
6
roles/pbx/templates/cdr_mysql.conf.j2
Normal file
6
roles/pbx/templates/cdr_mysql.conf.j2
Normal file
|
@ -0,0 +1,6 @@
|
|||
[global]
|
||||
hostname = localhost
|
||||
dbname = {{ asterisk_db_cdrdbname }}
|
||||
user = {{ asterisk_db_password }}
|
||||
password = {{ asterisk_db_password }}
|
||||
userfield = 1
|
|
@ -2,7 +2,7 @@
|
|||
Description=MySQL connection to 'asteriskcdrdb' database
|
||||
driver=MySQL
|
||||
server=localhost
|
||||
database=asteriskcdrdb
|
||||
database={{ asterisk_db_cdrdbname }}
|
||||
Port=3306
|
||||
Socket=/var/run/mysqld/mysqld.sock
|
||||
option=3
|
Loading…
Reference in a new issue