mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 22:29:55 +05:00
Finished making all Ansible scripts for calls work
This commit is contained in:
committed by
Dan Christian Bogos
parent
e8b9928fcb
commit
5abc1bc5da
@@ -73,4 +73,4 @@
|
||||
- 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 }}"
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
@@ -119,4 +119,4 @@
|
||||
lineinfile:
|
||||
dest: ~/.bashrc
|
||||
line: export PATH=$PATH:$GOPATH/bin
|
||||
insertafter: last
|
||||
insertafter: last
|
||||
|
||||
@@ -92,37 +92,37 @@
|
||||
become: yes
|
||||
shell: "sudo ./configure --with-jansson-bundled"
|
||||
args:
|
||||
chdir: '/tmp/asterisk-18.4.0'
|
||||
chdir: '/tmp/asterisk-18.5.0'
|
||||
|
||||
- name: Make Asterisk
|
||||
become: yes
|
||||
shell: "sudo make"
|
||||
args:
|
||||
chdir: '/tmp/asterisk-18.4.0'
|
||||
chdir: '/tmp/asterisk-18.5.0'
|
||||
|
||||
- name: Make all Asterisk
|
||||
become: yes
|
||||
shell: "make all"
|
||||
args:
|
||||
chdir: '/tmp/asterisk-18.4.0'
|
||||
chdir: '/tmp/asterisk-18.5.0'
|
||||
|
||||
- name: Make install Asterisk
|
||||
become: yes
|
||||
shell: "sudo make install"
|
||||
args:
|
||||
chdir: '/tmp/asterisk-18.4.0'
|
||||
chdir: '/tmp/asterisk-18.5.0'
|
||||
|
||||
- name: Make samples Asterisk
|
||||
become: yes
|
||||
shell: "sudo make samples"
|
||||
args:
|
||||
chdir: '/tmp/asterisk-18.4.0'
|
||||
chdir: '/tmp/asterisk-18.5.0'
|
||||
|
||||
- name: Make config Asterisk
|
||||
become: yes
|
||||
shell: "sudo make config"
|
||||
args:
|
||||
chdir: '/tmp/asterisk-18.4.0'
|
||||
chdir: '/tmp/asterisk-18.5.0'
|
||||
|
||||
- name: Add user for Asterisk
|
||||
become: yes
|
||||
@@ -136,4 +136,4 @@
|
||||
|
||||
# Configure PJSUA
|
||||
- name: Config PJSUA
|
||||
include: pjsua.yaml
|
||||
include: pjsua.yaml
|
||||
|
||||
@@ -25,4 +25,5 @@
|
||||
become: yes
|
||||
shell: 'sudo mv pjsua-x86_64-unknown-linux-gnu /usr/bin/pjsua'
|
||||
args:
|
||||
chdir: '/tmp/pjproject-2.9/pjsip-apps/bin'
|
||||
chdir: '/tmp/pjproject-2.9/pjsip-apps/bin'
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -99,6 +99,12 @@
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}/data/tutorial_tests/fs_evsock/freeswitch/etc'
|
||||
|
||||
- name: Unzip FreeSWITCH config 2
|
||||
become: yes
|
||||
shell: 'sudo tar -xvf freeswitch_conf.tar.gz'
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}/data/tutorials/fs_evsock/freeswitch/etc'
|
||||
|
||||
- name: Remove FreeSWITCH default config from /etc/freeswitch
|
||||
become: yes
|
||||
shell: 'sudo rm -rf *'
|
||||
@@ -111,6 +117,10 @@
|
||||
args:
|
||||
chdir: '/etc/freeswitch'
|
||||
|
||||
- name: Add user for CGRateS
|
||||
become: yes
|
||||
shell: 'sudo useradd cgrates'
|
||||
|
||||
# Configure PJSUA
|
||||
- name: Config PJSUA
|
||||
include: pjsua.yaml
|
||||
|
||||
@@ -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