nimble-streamer
ansible-nimble-streamer
- Рекомендуется Ansible 2.1+
- В настоящее время совместим с CentOS 7.x
Содержание
Установка
$ ansible-galaxy install fpm-git.nimble-streamer
Начало работы
Эта роль должна выполняться от имени root или пользователя с правами sudo.
Вот пример плейбука с задачами для настройки брандмауэра для Nimble Streamer:
---
- name: настроить nimble streamers
hosts: edge_server
become: yes # Стать root
vars:
- nimble_auto_update: true
- nimble_transcoder: true
- nimble_wmspanel_username: <Ваше имя пользователя WMSPanel>
- nimble_wmspanel_password: <Ваш пароль WMSPanel>
roles:
- fpm-git.nimble-streamer
tasks:
# ETH0 (Интернет)
- firewalld:
zone: public
interface: eth0
permanent: true
immediate: true
state: enabled
- firewalld:
zone: public
service: ssh
permanent: true
immediate: true
state: disabled
# Порт HTTP для Nimble
- firewalld:
zone: public
port: "{{ nimble_port }}/tcp"
permanent: true
immediate: true
state: enabled
# Порт HTTPS для Nimble
- firewalld:
zone: public
port: "{{ nimble_ssl_port }}/tcp"
permanent: true
immediate: true
state: enabled
when: nimble_ssl
# ETH1 (Частная сеть)
- firewalld:
zone: internal
interface: eth1
permanent: true
immediate: true
state: enabled
- firewalld:
zone: internal
service: ssh
permanent: true
immediate: true
state: enabled
# Порт HTTP для Nimble
- firewalld:
zone: internal
port: "{{ nimble_port }}/tcp"
permanent: true
immediate: true
state: enabled
# Порт HTTPS для Nimble
- firewalld:
zone: internal
port: "{{ nimble_ssl_port }}/tcp"
permanent: true
immediate: true
state: enabled
when: nimble_ssl
Переменные роли
Вот список всех переменных по умолчанию для этой роли, которые также доступны в defaults/main.yml.
---
###################################
# Опции задач Ansible
###################################
nimble_streamer_version:
nimble_force_service_restart: false
nimble_auto_update: false
nimble_transcoder: false
nimble_run_as_root: false
nimble_user: nimble
nimble_management_api: false
nimble_ssl: false
nimble_ssl_local_certificate:
nimble_ssl_local_certificate_key:
###################################
# Конфигурация Nimble Streamer
#
# doc: http://blog.wmspanel.com/p/nimble-streamer-configuration.html
###################################
nimble_port: 80
nimble_worker_threads: 1
nimble_transmuxer_threads:
nimble_listen_interfaces: "*"
nimble_enable_ipv6: false
nimble_restrict_session_ip: false
nimble_cdn_origin:
nimble_user_agent:
nimble_session_timeout:
nimble_pass_headers:
nimble_passed_header_prefix:
nimble_absolute_path:
nimble_update_geoip_database:
nimble_custom_pd_exts:
nimble_enable_pd_for_remote_vod:
nimble_vod_subtitle_default_language_id:
nimble_mpegts_for_audio_vod:
nimble_vod_transmuxing_buffer:
nimble_mpegts_inactivity_check_interval:
nimble_udp_so_receive_buffer:
nimble_video_index:
nimble_audio_index:
# Конфигурация логирования
nimble_logging: info
nimble_log_access:
nimble_log_sessions:
nimble_max_log_file_size:
nimble_max_log_files_to_keep:
# Конфигурация CORS
nimble_access_control_allow_origin:
nimble_access_control_allow_credentials:
nimble_access_control_expose_headers:
nimble_access_control_allow_headers:
nimble_crossdomain_xml_allow_access_from_domain:
nimble_crossdomain_xml:
# Конфигурация для HLS
nimble_hls_add_program_date_time:
nimble_hls_add_closed_caption_none:
# Конфигурация для RTMP
nimble_rtmp_max_viewers:
nimble_rtmp_working_thread:
nimble_rtmp_buffer_items:
# Конфигурация для Websocket
nimble_websocket_live_max_viewers:
nimble_websocket_live_worker_threads:
# Конфигурация кэша
nimble_cache_path: "/var/cache/nimble"
nimble_max_cache_size: 512
nimble_max_disk_cache_size: 4096
nimble_vod_cache_timeout:
nimble_vod_cache_min_storage_time:
nimble_vod_chunk_duration:
nimble_vod_to_ram_cache_first:
nimble_ram_cache_for_vod_threshold:
nimble_playlist_cache_control:
nimble_chunk_cache_control:
# Конфигурация управленческого API
nimble_management_port: 8090
nimble_management_listen_interfaces: "*"
nimble_management_token:
# Конфигурация SSL для Nimble Streamer
nimble_ssl_port: 443
nimble_ssl_certificate:
nimble_ssl_certificate_key:
# Конфигурация WMSPanel для Nimble Streamer
nimble_wmspanel_username:
nimble_wmspanel_password:
nimble_recovery_id:
Установить
ansible-galaxy install fpm-git/ansible-nimble-streamer
Лицензия
mit
Загрузки
94031
Владелец