ansible-role-uwsgi/defaults/main.yml

58 lines
1.8 KiB
YAML

---
# Copyright 2019, VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
uwsgi_system_user_name: uwsgi
uwsgi_system_group_name: uwsgi
# Set installation method. Valid options: source, distro
uwsgi_install_method: source
# Virtual env suffix to deploy into
uwsgi_venv_tag: "{{ venv_tag | default('untagged') }}"
uwsgi_pip_install_args: "{{ pip_install_options | default('') }}"
uwsgi_python_executable: "python3"
uwsgi_package_state: "latest"
# Default environment variables to set for uwsgi process
uwsgi_env: "{{ _uwsgi_env }}"
# Define uwsgi_services for deployment of uwsgi. You should provide
# at least wsgi_path and uwsgi_port. wsgi_venv should be defined for
# services installed inside virtualenv.
# Example structure:
# uwsgi_services:
# service:
# service_name: service-api
# wsgi_path: /openstack/venvs/api/bin/wsgi-api
# wsgi_venv: /openstack/venvs/api
# init_config_overrides: {}
# uwsgi_uid: root
# uwsgi_guid: root
# uwsgi_overrides: {}
# uwsgi_processes: [ansible_facts['processor_vcpus'] | default(1), 1] | max * 2
# uwsgi_threads: 1
# uwsgi_bind_address: 0.0.0.0
# uwsgi_port: 8080
# uwsgi_env: "FOO=bar"
uwsgi_services: {}
# Override can be used to apply config change to all uwsgi services
# instead of adjusting each service separately
uwsgi_ini_overrides: {}
uwsgi_init_config_overrides: {}