Skip to content

Commit 9f6f3a1

Browse files
committed
2024-09-18 various fixes
1 parent 4f1d8df commit 9f6f3a1

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

defaults/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,11 @@ mailman3_distribute_maps_virtualenv_dir: "{{ mailman3_core_var_dir }}/distribute
358358
# Base set of Python packages
359359
__mailman3_pip_packages:
360360
# - django-allauth==0.54.0
361-
- django-mailman3==1.3.13
361+
- django-mailman3==1.3.15
362362
- importlib-resources==5.13.0
363363
- mailman
364364
- mailman-web==0.0.9
365-
- HyperKitty==1.3.10
365+
- HyperKitty==1.3.9
366366
- django-allauth==0.63.3
367367
- mailman-hyperkitty # ??
368368
- elasticsearch==7.17.9
@@ -393,6 +393,8 @@ __mailman3_system_dependency_packages:
393393
- python3-setuptools
394394
# - memcached
395395
# - libmemcached-tools
396+
- libmemcached-dev
397+
- zlib1g-dev
396398
- redis
397399
redhat-7:
398400
- rh-python38 # requires EL7+ and CentOS SCL
@@ -477,8 +479,10 @@ elasticsearch_version: '7.x'
477479
elasticsearch_network_host: "0.0.0.0"
478480
elasticsearch_http_port: 9200
479481
elasticsearch_extra_options: ''
480-
elasticsearch_heap_size_min: 1g
481-
elasticsearch_heap_size_max: 2g
482+
# elasticsearch_heap_size_min: 1g
483+
# elasticsearch_heap_size_max: 1g
484+
elasticsearch_heap_size_min: 500m
485+
elasticsearch_heap_size_max: 500m
482486
# used by Django, not necessarily by elasticsearch itself:
483487
elasticsearch_index_name: mailman
484488
elasticsearch_url: "http://127.0.0.1:9200/"

tasks/swap.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
ansible.builtin.stat:
99
path: "{{ swap_file_path }}"
1010
get_checksum: false
11-
get_md5: false
1211
get_mime: false
1312
get_attributes: false
1413
register: swap_file_check
@@ -92,6 +91,22 @@
9291
dump: 0
9392
state: present
9493

94+
- name: Check if swap is already defined in fstab
95+
ansible.builtin.lineinfile:
96+
state: absent
97+
path: "/etc/fstab"
98+
regexp: "{{ swap_file_path }} none swap defaults 0 0"
99+
check_mode: true
100+
changed_when: false # This just makes things look prettier in the logs
101+
register: check
102+
103+
- name: Define swap in fstab
104+
ansible.builtin.lineinfile:
105+
state: present
106+
path: "/etc/fstab"
107+
line: "{{ swap_file_path }} none swap defaults 0 0"
108+
when: check.found == 0
109+
95110
- name: Turn on swap
96111
ansible.builtin.command: swapon -a
97112
when: swap_enable

templates/settings.py.j2

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,12 @@ if env("ADD_REMOTE_ADDR_MIDDLEWARE", None):
204204

205205
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
206206

207-
STATICFILES_DIRS = [
208-
os.path.join(BASE_DIR, 'static_custom')
209-
]
210-
211-
TEMPLATES[0]['DIRS'] = [
212-
os.path.join(BASE_DIR, 'templates')
213-
]
207+
# 2024-09. Temporarily removing customizations. Can be returned later.
208+
209+
# STATICFILES_DIRS = [
210+
# os.path.join(BASE_DIR, 'static_custom')
211+
# ]
212+
#
213+
# TEMPLATES[0]['DIRS'] = [
214+
# os.path.join(BASE_DIR, 'templates')
215+
# ]

0 commit comments

Comments
 (0)