Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ansible-pretalx

https://travis-ci.org/pretalx/ansible-pretalx.svg?branch=master

ansible-pretalx is an ansible role to install pretalx in a production environment.

To use it in your ansible playbook, either clone this git repository next to your other roles or install it with ansible-galaxy.

You can find the variables you can set here, along with their default values. Please refer to the pretalx configuration documentation for further details.

Quick Start

You will need an Ansible playbook that uses this role, a database for Pretalx to connect to, and Nginx to front the Python server.

You can configure variables in that playbook, overriding anything in the defaults.

The following steps were tested on Debian 10, Ansible 2.7.7, and Pretalx 1.0.4:

  1. First, make sure Ansible is installed

  2. Clone this repo somewhere, such as your home directory

  3. Install a role to manage the database. For this quick start we'll use ANXS' Postgres role in Ansible Galaxy:

    $ ansible-galaxy install anxs.postgresql
    
  4. Write a playbook that uses both ansible-pretalx and anxs.postgresql, installs Nginx, and configures everything by setting variables.

Give this file any name, such as pretalx.yml. Save this file in the parent dir containing ansible-pretalx/. That is, if you cloned this repo in your homedir, put pretalx.yml in your homedir.

Please don't use this verbatim in production. The secret key should be a random string, and the Postgres user password should be a different random string.

---
- hosts: localhost
  become: true
  tasks:
    - name: Install dependencies
      package:
        name:
          - acl
          - nginx
          - python3-pip
        state: latest
    - name: Remove nginx default site
      file:
        name: "/etc/nginx/sites-enabled/default"
        state: absent
- hosts: localhost
  become: true
  roles:
    - anxs.postgresql
    - ansible-pretalx
  vars:
    postgresql_databases:
      - name: "{{ pretalx_database_name }}"
        owner: "{{ pretalx_database_user }}"
    postgresql_users:
      - name: "{{ pretalx_database_user }}"
        pass: "{{ pretalx_database_password }}"
    postgresql_locale: "C.UTF-8"
    postgresql_ctype: "C.UTF-8"
    pretalx_database_password: "secret1"
    pretalx_secret_key: "secret2"
    pretalx_redis: false
    pretalx_nginx: true
    pretalx_nginx_path: "/etc/nginx/sites-enabled/"
    pretalx_nginx_force_https: true
  1. Run Ansible!

    $ ansible-playbook pretalx.yml
    

If anything goes wrong, check:

  • Ansible's output
  • journalctl -u 'pretalx*'
  • /usr/share/webapps/pretalxevent/data/logs/pretalx.log
  1. Finally, set up your Pretalx instance:

    $ sudo -u pretalx_event python3 -m pretalx init
    

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published