mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
Started fixing kamaillio ansible script
This commit is contained in:
committed by
Dan Christian Bogos
parent
8aee3b6fe0
commit
3499d867ba
@@ -32,14 +32,21 @@
|
||||
dest: "/usr/share/cgrates"
|
||||
state: link
|
||||
|
||||
- name: symbol link
|
||||
- name: symbol link 2
|
||||
become: yes
|
||||
file:
|
||||
src: "{{ golang_gopath }}/bin/cgr-engine"
|
||||
dest: "/usr/bin/cgr-engine"
|
||||
state: link
|
||||
# post install
|
||||
- name: post install mysql
|
||||
|
||||
- name: post install for ers mysql
|
||||
become: yes
|
||||
command: 'sh {{ cgrates_dir }}/data/storage/mysql/setup_ers_db.sh root CGRateS.org localhost'
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}/data/storage/mysql/'
|
||||
|
||||
- name: post install mysql
|
||||
become: yes
|
||||
command: 'sh {{ cgrates_dir }}/data/storage/mysql/setup_cgr_db.sh root CGRateS.org localhost'
|
||||
args:
|
||||
@@ -50,3 +57,20 @@
|
||||
command: 'sh {{ cgrates_dir }}/data/storage/postgres/create_db_with_users.sh'
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}/data/storage/postgres/'
|
||||
|
||||
- name: post install for ers postgres
|
||||
become: yes
|
||||
command: 'sh {{ cgrates_dir }}/data/storage/postgres/create_ers_db.sh'
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}/data/storage/postgres/'
|
||||
|
||||
- name: post install mongo
|
||||
become: yes
|
||||
command: 'sh {{ cgrates_dir }}/data/storage/mongo/setup_cgr_db.sh'
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}/data/storage/mongo/'
|
||||
|
||||
- name: set versions
|
||||
command: 'cgr-migrator -exec=*set_versions -config_path=/usr/share/cgrates/conf/samples/tutmysql'
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
become: yes
|
||||
apt: name={{ dependencies }} state=present
|
||||
|
||||
# Install FreeSwitch
|
||||
# Install Kamailio
|
||||
- name: Install Kamailio
|
||||
become: yes
|
||||
apt: name={{ kamailio_package }} state=latest
|
||||
@@ -77,6 +77,10 @@
|
||||
include: cgrates.yaml
|
||||
|
||||
|
||||
- name: Add user for CGRateS
|
||||
become: yes
|
||||
shell: 'sudo useradd cgrates'
|
||||
|
||||
# Configure PJSUA
|
||||
- name: Config PJSUA
|
||||
include: pjsua.yaml
|
||||
|
||||
Reference in New Issue
Block a user