mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +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
|
# 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)
|
- name: FreePBX - Install /etc/odbc.ini, /etc/odbcinst.ini from template (root:root, 0644 by default)
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}"
|
src: "{{ item.src }}"
|
||||||
dest: /etc/
|
dest: "{{ item.dest }}"
|
||||||
with_items:
|
with_items:
|
||||||
- odbc.ini
|
- { src: odbc.ini.j2, dest: /etc/odbc.ini }
|
||||||
- odbcinst.ini
|
- { src: odbcinst.ini, dest: /etc/odbcinst.ini }
|
||||||
|
|
||||||
- name: FreePBX - Install /etc/asterisk/cdr_mysql.conf from template (root:root, 0644 by default)
|
- name: FreePBX - Install /etc/asterisk/cdr_mysql.conf from template (root:root, 0644 by default)
|
||||||
template:
|
template:
|
||||||
src: cdr_mysql.conf
|
src: cdr_mysql.conf.j2
|
||||||
dest: /etc/asterisk/
|
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!
|
- 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
|
Description=MySQL connection to 'asteriskcdrdb' database
|
||||||
driver=MySQL
|
driver=MySQL
|
||||||
server=localhost
|
server=localhost
|
||||||
database=asteriskcdrdb
|
database={{ asterisk_db_cdrdbname }}
|
||||||
Port=3306
|
Port=3306
|
||||||
Socket=/var/run/mysqld/mysqld.sock
|
Socket=/var/run/mysqld/mysqld.sock
|
||||||
option=3
|
option=3
|
Loading…
Reference in a new issue