Christian Boltz e4be47
include:
Christian Boltz e4be47
  - role.common.nginx
Christian Boltz e4be47
  {% if salt['grains.get']('include_secrets', True) %}
Christian Boltz 6162b8
  - secrets.role.web_elections
Christian Boltz e4be47
  {% endif %}
Christian Boltz e4be47
Christian Boltz e4be47
nginx:
a20cbc
  servers:
a20cbc
    managed:
a20cbc
      elections.opensuse.org.conf:
a20cbc
        config:
a20cbc
          - upstream helios:
775ed9
            - server: unix:/srv/www/vhosts/helios-server/tmp/sockets/helios.sock fail_timeout=0
a20cbc
          - server:
68e999
            - listen: '[::]:80'
a20cbc
            - location /:
a20cbc
              - include: /etc/nginx/uwsgi_params
a20cbc
              - uwsgi_pass: helios
a20cbc
            - server_name: elections.opensuse.org
a20cbc
            - try_files: $uri/index.html $uri.html $uri @helios
a20cbc
            - access_log: /var/log/nginx/elections.access.log combined
a20cbc
            - error_log: /var/log/nginx/elections.error.log
a20cbc
        enabled: True
Christian Boltz e4be47
Christian Boltz 6162b8
# postgres:users:helios:password included from pillar/secrets/role/web_elections.sls
Christian Boltz e4be47
Christian Boltz e4be47
profile:
Christian Boltz e4be47
  helios:
Christian Boltz 860794
    allowed_hosts:
Christian Boltz 860794
      - elections.opensuse.org
Christian Boltz 860794
      - localhost
Christian Boltz e4be47
    database_host: postgresql.infra.opensuse.org
Christian Boltz e4be47
    database_name: helios
Christian Boltz e4be47
    database_user: helios
Christian Boltz 6ac95b
    database_sslmode: True
Christian Boltz e4be47
    default_from_email: election-officials@opensuse.org
Christian Boltz e4be47
    default_from_name: openSUSE Election Officials
Christian Boltz e4be47
    election_creators:
Christian Boltz e4be47
      # admins
Christian Boltz 9c0b2d
      - cboltz
Christian Boltz 6ac95b
      # election officials
Christian Boltz 96b732
      - AJV
Christian Boltz f1b763
      - Ishwon
Christian Boltz d63247
      - medwin
Christian Boltz e4be47
    help_email_address: election-officials@opensuse.org
Christian Boltz 6162b8
    # secret_key included from pillar/secrets/role/web_elections.sls
Christian Boltz e4be47
    url_host: https://elections.opensuse.org
Christian Boltz e4be47
Christian Boltz e4be47
zypper:
Christian Boltz e4be47
  repositories:
Christian Boltz e4be47
    openSUSE:infrastructure:elections.opensuse.org:
Christian Boltz e15791
      baseurl: http://download.infra.opensuse.org/repositories/openSUSE:/infrastructure:/elections.opensuse.org/$releasever/
Christian Boltz e4be47
      priority: 100
Christian Boltz e4be47
      refresh: True