diff --git a/deployment/playbook/roles/fosdem_volunteers/tasks/main.yml b/deployment/playbook/roles/fosdem_volunteers/tasks/main.yml index 7a4de69..3a9e319 100644 --- a/deployment/playbook/roles/fosdem_volunteers/tasks/main.yml +++ b/deployment/playbook/roles/fosdem_volunteers/tasks/main.yml @@ -3,9 +3,8 @@ name: "{{item}}" state: present with_items: - - python - nginx - - virtualenv + - python3-venv - name: "Create system user {{app_user}}" user: name: "{{app_user}}" @@ -20,15 +19,13 @@ repo: https://github.com/FOSDEM/volunteers.git dest: "{{base_dir}}/tool" version: master - become: yes - become_user: "{{app_user}}" register: app_updated notify: Restart fosdem_volunteers - name: Install dependencies inside a virtual environment pip: virtualenv: "{{base_dir}}/venv3" virtualenv_python: python3 - requirements: "{{base_dir}}/tool/requirements.txt" + requirements: "{{base_dir}}/tool/requirements-frozen.txt" become: yes become_user: "{{app_user}}" - name: Add gunicorn to venv @@ -62,6 +59,16 @@ - migrate - collectstatic when: app_updated.changed +- name: install the tmpfiles.d conf + become: true + copy: + content: d /run/volunteers 0755 {{ app_user }} {{ app_user }} - - + dest: /usr/lib/tmpfiles.d/fosdem_volunteers.conf + +- name: configure tmpfiles.d + become: true + command: systemd-tmpfiles --create + - name: Create systemd service file template: dest: /etc/systemd/system/fosdem_volunteers.service diff --git a/volunteers/models.py b/volunteers/models.py index 755f5be..648f8f6 100644 --- a/volunteers/models.py +++ b/volunteers/models.py @@ -144,37 +144,24 @@ def sync_with_penta(cls): rooms = day.findall('room') for room in rooms: room_name = room.get('name') - if edition.digital_edition: - needs_hosting = False - if room_name.startswith('S'): - # skip import of stands - continue - if room_name[0] in ['L', 'M'] or room_name in ["D.blockchain"]: - needs_hosting = True - events = room.findall('event') - for event in events: - talk = Talk.penta_create_or_update(event, edition, day_date) - if needs_hosting: - Task.create_or_update_from_talk(edition, talk, 'Hosting', [1, 2, 3]) - else: - # Lightning talks are done manually since the time slots are so small. - needs_heralding = False - needs_video = False - - if room_name in ['Janson', 'K.1.105 (La Fontaine)']: - needs_heralding = True - needs_video = getattr(settings, 'IMPORT_VIDEO_TASKS', True) - - events = room.findall('event') - for event in events: - talk = Talk.penta_create_or_update(event, edition, day_date) - ###################### - # Tasks, if required # - ###################### - if needs_heralding: - Task.create_or_update_from_talk(edition, talk, 'Heralding', [3, 2, 5]) - if needs_video: - Task.create_or_update_from_talk(edition, talk, 'Video', [1, 1, 1]) + # Lightning talks are done manually since the time slots are so small. + needs_heralding = False + needs_video = False + + if room_name in ['Janson', 'K.1.105 (La Fontaine)']: + needs_heralding = True + needs_video = getattr(settings, 'IMPORT_VIDEO_TASKS', True) + + events = room.findall('event') + for event in events: + talk = Talk.penta_create_or_update(event, edition, day_date) + ###################### + # Tasks, if required # + ###################### + if needs_heralding: + Task.create_or_update_from_talk(edition, talk, 'Heralding', [3, 2, 5]) + if needs_video: + Task.create_or_update_from_talk(edition, talk, 'Video', [1, 1, 1]) """ diff --git a/volunteers/templates/static/promo.html b/volunteers/templates/static/promo.html index 4befc7e..7017ded 100644 --- a/volunteers/templates/static/promo.html +++ b/volunteers/templates/static/promo.html @@ -17,7 +17,7 @@

FOSDEM
Volunteering

  • Location

    -

    FOSDEM 2023 will be returning to the ULB in Brussels, Belgium, while continuing to offer an online presence.

    +

    FOSDEM 2024 will be returning to the ULB in Brussels, Belgium, while continuing to offer an online presence.

  • Volunteering

    @@ -36,16 +36,17 @@

    FOSDEM
    Volunteering

    Real time chat is bridged between matrix and irc:

  • Real People

    Pieter De Praetere

    -

    pieter@fosdem.org

    +

    Send Pieter an email

    Kristian Schuhmacher

    -

    kristian@fosdem.org

    +

    Send Kristian an email

    +

    Dan Clark

    +

    Send Dan an email

  • {% endblock %} diff --git a/volunteers/templates/volunteers/tasks.html b/volunteers/templates/volunteers/tasks.html index 75c8665..b9b42ae 100644 --- a/volunteers/templates/volunteers/tasks.html +++ b/volunteers/templates/volunteers/tasks.html @@ -6,15 +6,6 @@ {% block content %} -{#{% if user.is_authenticated and not user_in_penta %} -

    -

    Register in pentabarf!

    - Please register an account in pentabarf and add it to your details to enable hosting talks. -
    -

    - -{% endif %} -#} {% if user.is_authenticated %}View your schedule{% endif %}
    {% csrf_token %} diff --git a/volunteers/views.py b/volunteers/views.py index e7bd20b..a98eb16 100644 --- a/volunteers/views.py +++ b/volunteers/views.py @@ -37,11 +37,6 @@ def check_profile_completeness(request, volunteer): if request.user != volunteer.user: return True - if not volunteer.penta_account_name: - messages.warning(request, _( - "Hey there! If you want to be a host for a talk, you must register on Pentabarf at https://penta.fosdem.org/submission/"), - fail_silently=True) - if not volunteer.mobile_nbr: messages.warning(request, _( "Hey there! It seems you didn't give us a phone number. Please update your profile, to make sure we can contact you if the network fails..."),