ara/roles/ara_frontend_nginx
Jeffrey van Pelt 2e367aff9e
Updated docs, updated vars files for ara_web and ara_frontend_nginx to support Debian 10
Change-Id: I39827c0113a4b4fd5e74e06df60cd9145352fc95
2020-05-08 12:03:39 +02:00
..
handlers Rename the ara role to ara_api and move nginx out to it's own role 2019-03-07 19:53:00 -05:00
tasks Ensure default nginx vhost configuration is set up if none is provided 2019-03-18 17:12:46 -04:00
templates Import role for deploying ara-web 2019-03-08 17:16:39 -05:00
vars Updated docs, updated vars files for ara_web and ara_frontend_nginx to support Debian 10 2020-05-08 12:03:39 +02:00
README.rst Import role for deploying ara-web 2019-03-08 17:16:39 -05:00

ansible-role-ara-frontend-nginx

A role for deploying a minimal installation of nginx for ara-api and ara-web.

This role is not meant to be used on it's own, it should be included by the ara_api and ara_web roles in order to have the necessary variables available.

It is currently tested and supported against Ubuntu 18.04 and Fedora 29.

Role Variables

  • ara_api_frontend_vhost: Path to a custom nginx vhost configuration file for ara-api.
  • ara_web_frontend_vhost: Path to a custom nginx vhost configuration file for ara-web.

Example playbooks

Install ARA and set up the API to be served by nginx with a custom vhost configuration in front of gunicorn:

# The API will be reachable at http://api.ara.example.org
# The web interface will be reachable at http://web.ara.example.org
# The web interface will be set up to query api.ara.example.org.
- name: Deploy ARA API server and web interface
  hosts: all
  gather_facts: yes
  vars:
    # ara_api
    ara_api_frontend_server: nginx
    ara_api_wsgi_server: gunicorn
    ara_api_fqdn: api.ara.example.org
    ara_api_allowed_hosts:
      - api.ara.example.org
    ara_api_frontend_vhost: custom_api_vhost.conf.j2
    # ara_web
    ara_web_fqdn: web.ara.example.org
    ara_web_api_endpoint: "http://api.ara.example.org"
    ara_web_frontend_server: nginx
    ara_web_frontend_vhost: custom_web_vhost.conf.j2
  roles:
    - ara_api
    - ara_web
Copyright (c) 2019 Red Hat, Inc.

ARA Records Ansible is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ARA Records Ansible is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with ARA Records Ansible. If not, see <http://www.gnu.org/licenses/>.