mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Implement ansible opensips playbook for call tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
f87e52cf63
commit
8bf2ae0d38
28
data/ansible/calls/opensips/main.yaml
Normal file
28
data/ansible/calls/opensips/main.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
- hosts: all
|
||||
roles:
|
||||
- ../../roles/go
|
||||
- role: ../../roles/cgrates
|
||||
vars:
|
||||
cgrates_dbs:
|
||||
- mysql
|
||||
cgrates_dependencies:
|
||||
- git
|
||||
- redis-server
|
||||
- mariadb-server
|
||||
- role: ../../roles/opensips
|
||||
vars:
|
||||
opensips_cfg_path: /usr/share/cgrates/tutorial_tests/osips/opensips/etc/opensips/opensips.cfg
|
||||
- role: ../../roles/pjsua
|
||||
vars:
|
||||
pjsua_version: '2.9'
|
||||
|
||||
post_tasks:
|
||||
- name: Update USER and GROUP inside cgrates init.d script
|
||||
ansible.builtin.lineinfile:
|
||||
path: /usr/share/cgrates/tutorial_tests/osips/cgrates/etc/init.d/cgrates
|
||||
regexp: '^{{ item.key }}='
|
||||
line: '{{ item.key }}={{ ansible_user_id }}'
|
||||
loop:
|
||||
- { key: 'USER' }
|
||||
- { key: 'GROUP' }
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
opensips_version: '3.4'
|
||||
opensips_release_type: 'releases' # 'releases' or 'nightly'
|
||||
opensips_version: 3.5
|
||||
opensips_release_type: nightly # releases or nightly
|
||||
opensips_service_enabled: false
|
||||
opensips_service_state: 'stopped'
|
||||
opensips_service_state: stopped
|
||||
opensips_cfg_path: '' # path to a custom cfg file to replace the default one (do nothing if empty)
|
||||
opensips_dict_path: '' # add file found at specified path to /etc/opensips
|
||||
opensips_dict_path: '' # add dict file found at specified path to /etc/opensips
|
||||
opensips_modules:
|
||||
- opensips-cgrates-module
|
||||
# - opensips-auth-modules
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: '{{ opensips_cfg_path }}'
|
||||
dest: '/etc/opensips/opensips.cfg'
|
||||
dest: /etc/opensips/opensips.cfg
|
||||
owner: root
|
||||
group: root
|
||||
remote_src: yes
|
||||
|
||||
Reference in New Issue
Block a user