Giter VIP home page Giter VIP logo

wazo-ansible's Introduction

wazo-ansible

Prerequisites for all recipes

Class 4: SBC component

  • Edit inventories/sbc and set your host in [sbc_host]
  • Run:
ansible-galaxy install -r requirements-postgresql.yml

ansible-playbook -i inventories/sbc c4-sbc.yml

Class 4: Router/RTPEngine component

  • Edit inventories/router and set your host in [router_host]
  • Run:
ansible-galaxy install -r requirements-postgresql.yml

ansible-playbook -i inventories/router c4-router.yml

UC Engine (all in one machine)

  • Edit inventories/uc-engine and set your host in [uc_engine_host]
  • Run:
ansible-galaxy install -r requirements-postgresql.yml

ansible-playbook -i inventories/uc-engine uc-engine.yml

Variables

  • wazo_locale if defined, ensure the locale is set and generated. Must be an UTF-8 locale.

wazo-consul

  • wazo_consul_host: (default localhost) host running the Consul server.
  • wazo_consul_port_scheme: (default http) which port of the Consul server to use.
  • wazo_consul_port_http: (default 8500) HTTP port of the Consul server.
  • wazo_consul_port_https: (default 8501) HTTPS port of the Consul server.

wazo-c4-router

  • debian_upgrade_first: (default: true) do we apt-get dist-upgrade before installing Wazo Router?
  • router_api_endpoint_confd: (default: http://localhost:8000) URI of the wazo-router-confd service
  • router_api_db_host: (default: localhost) PostgreSQL host for wazo-router-confd
  • router_api_db_port: (default: 5432) PostgreSQL port for wazo-router-confd
  • router_api_db_name: (default: wazo) database name for wazo-router-confd
  • router_api_db_user: (default: wazo) database username for wazo-router-confd
  • router_api_db_password: (default: wazo) database password for wazo-router-confd
  • router_api_redis_host: (default: localhost) Redis host for wazo-router-confd
  • router_api_redis_port: (default: 6379) Redis port for wazo-router-confd
  • router_api_redis_database: (default: 1) Redis database for wazo-router-confd
  • router_interface: (default: {{ ansible_default_ipv4.interface }}) network interface for Kamailio
  • router_redis_dialog: (default: 1) enables redis-based dialog replication
  • router_dburl_dialog: (default: redis://localhost:6379/2) Redis uri to store dialogs
  • rtpengine_interface: (default: {{ ansible_default_ipv4.interface }}) network interface for RTPEngine
  • rtpengine_private_address: (default: {{ ansible_default_ipv4.address }}) private IP address for RTPEngine
  • rtpengine_public_address: (default: {{ ansible_default_ipv4.address }}) public IP address for RTPEngine

wazo-c4-sbc

  • debian_upgrade_first: (default: true) do we apt-get dist-upgrade before installing Wazo Router?
  • sbc_advertise_address: (default: not set) the advertised address for Kamailio, optional
  • sbc_advertise_port: (default: not set) the advertised port for Kamailio, optional
  • sbc_interface: (default {{ ansible_default_ipv4.interface }}) network interface for Kamailio
  • sbc_dispatcher_list: (1 sip:localhost:5060 16 10") dispatcher list configuration, replace localhost with the address of your router component
  • sbc_redis_dialog: (default: 1) enables redis-based dialog replication
  • sbc_dburl_dialog: (default: redis://localhost:6379/3) Redis uri to store dialogs

uc_engine

  • debian_upgrade_first: (default: true) do we apt-get dist-upgrade before installing Wazo?

b2bua

  • b2bua_host: (default: localhost) where other services should contact the B2BUA
  • b2bua_listen_address: (default: 127.0.0.1)
  • b2bua_port_ami: (default: 5038) TCP port for AMI
  • b2bua_port_http: (default: 5039) TCP port for HTTP interfaces
  • b2bua_port_https: (default: 5040) TCP port for HTTPS interfaces
  • b2bua_port_sysconfd: (default: 8668) TCP port for xivo-sysconfd HTTP interface
  • b2bua_https_cert: custom certificate filename for HTTPS
  • b2bua_https_private_key: custom private key filename for HTTPS
  • b2bua_ami_permit_client_address: (default: 127.0.0.1)
  • b2bua_ami_permit_client_mask: (default: 255.255.255.255)
  • b2bua_listen_address: (default: 127.0.0.1)

database

  • postgresql_port: (default: 5432) TCP port for PostgreSQL
  • postgresql_superuser_password: password for superuser postgres
  • postgresql_listen_addresses: (default: 127.0.0.1)

engine_api

  • engine_api_host: (default: localhost) where other services should contact the engine API
  • engine_api_port: (default: 443) TCP port for HTTPS API
  • engine_api_port_confgend: (default: 8669) TCP port for wazo-confgend
  • engine_api_https_cert: custom certificate filename for HTTPS
  • engine_api_https_private_key: custom private key filename for HTTPS
  • engine_api_db_host: (default: localhost) PostgreSQL host
  • engine_api_db_port: (default: 5432) PostgreSQL port
  • engine_api_db_admin_user: (default: postgres) PostgreSQL superuser username
  • engine_api_db_admin_password: PostgreSQL superuser password
  • engine_api_db_auth_name: (default: asterisk) database name for wazo-auth
  • engine_api_db_auth_user: (default: asterisk) database username for wazo-auth
  • engine_api_db_auth_password: (default: proformatique) database password for wazo-auth
  • engine_api_db_confd_name: (default: asterisk) database name for wazo-confd
  • engine_api_db_confd_user: (default: asterisk) database username for wazo-confd
  • engine_api_db_confd_password: (default: proformatique) database password for wazo-confd
  • engine_auth_path: (default: /api/auth/0.1)
  • engine_confd_path: (default: /api/confd/1.1)
  • engine_setupd_path: (default: /api/setupd/1.0)
  • engine_api_listen_address: (default: 127.0.0.1)
  • ari_username: (default: xivo) B2BUA ARI username
  • ari_password: (default: Nasheow8Eag) B2BUA ARI password
  • ami_username: (default: wazo_amid) B2BUA AMI username
  • ami_password: (default: eeCho8ied3u) B2BUA AMI password
  • engine_api_configure_wizard: (default: false) run the configuration wizard. When true, engine_api_root_password must be set.
  • api_client_name: (default: api-client) client name to manage the api. Used when engine_api_configure_wizard is true.
  • api_client_password: (default: api-password) password for api_client_name. Used when engine_api_configure_wizard is true.
  • engine_api_root_password: password for engine superuser root. Used when engine_api_configure_wizard is true.
  • engine_language: (default: en_US). Used when engine_api_configure_wizard is true.
  • tenant_name: (default: my-company) first tenant to create. Used when engine_api_configure_wizard is true.

debian repo and distribution

Wazo has two difference Debian repositories: the main and archive repositories. Each repository contains multiple distributions, themselves containing multiple packages, in a certain version:

  • The main repository contains the "rolling" distributions: phoenix-buster, pelican-buster, wazo-dev-buster, etc. Packages in those distributions are updated at each release, except wazo-dev-buster which is constantly updated.
  • The archive repository contains the "frozen" distributions: wazo-19.10, wazo-19.11, etc. Packages in those distribution do not change (except for important bugfixes), each distribution is created once a new version of the Wazo engine is released, then the packages are never updated. This ensures the installation will be the same, even a few months later (except for changes in the base Debian install).

For a new Wazo engine installation, there are two distributions to consider:

  1. which distribution is used for the current installation (defined by the repo and distribution wazo_debian_repo and wazo_distribution)
  2. which distribution will be used for future upgrades (defined by the repo and distribution wazo_debian_repo_upgrade and wazo_distribution_upgrade)
  • wazo_debian_repo: (default: main) wazo repository from where packages are installed. Valid values: main and archive
  • wazo_distribution: (default: wazo-dev-buster) wazo distribution from where packages are installed
  • wazo_debian_repo_upgrade: (default: main) wazo repository for later upgrades. This repo is not used during installation, only set up at the end for later upgrades. Valid values: main and archive
  • wazo_distribution_upgrade: (default: wazo-dev-buster) wazo distribution for later upgrades. This distribution is not used during installation, only set up at the end for later upgrades.
  • wazo_meta_package: (default wazo-platform) meta package to install an all in one setup.
  • debian_repo_wazo__key_url: URL for the package verification key
  • debian_repo_wazo__key_id: ID of the package verification key
  • debian_repo_wazo__custom_repo: debian repository to replace the default Wazo repository
  • debian_repo_wazo__custom_repo_filename: filename for the debian repository to replace the default Wazo repository
  • debian_repo_wazo__custom_repo_upgrade: debian repository to replace the custom repository for later upgrades

runtime

  • runtime: (default: true) set to true when services are running while Ansible is executing. Set to false when Ansible must only make file modifications and no services are running (e.g. at docker build time)

wazo-ansible's People

Contributors

fredericlepied avatar wazo-zuul[bot] avatar sduthil avatar fblackburn1 avatar mwolff44 avatar tranchitella avatar bloom1 avatar sboily avatar pc-m avatar dependabot[bot] avatar rgarrigue avatar lebauce avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.