Skip to content

Commit 72fa207

Browse files
committed
Upgrade pip packages
1 parent ab2c9fd commit 72fa207

File tree

4 files changed

+33
-9
lines changed

4 files changed

+33
-9
lines changed

defaults/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,17 +360,19 @@ mailman3_distribute_maps_virtualenv_dir: "{{ mailman3_core_var_dir }}/distribute
360360
__mailman3_pip_packages:
361361
# - django-allauth==0.54.0
362362
- django-mailman3==1.3.15
363-
- importlib-resources==5.13.0
364-
- mailman
363+
- importlib-resources==6.5.2
364+
- mailman==3.3.10
365365
- mailman-web==0.0.9
366-
- HyperKitty==1.3.9
366+
- HyperKitty==1.3.12
367367
- django-allauth==0.63.3
368-
- mailman-hyperkitty # ??
368+
- mailman-hyperkitty==1.2.1
369369
- elasticsearch==7.17.9
370370
- environs
371371
- "{{ mailman3_python_wsgi_package }}"
372372
- django-pylibmc==0.6.1
373373
- xapian-haystack
374+
- postorius==1.3.13
375+
- mailmanclient==3.3.5
374376

375377
# Packages to install from PyPI if using the pip install method. Automatically includes libsass if mailman3_use_pysassc
376378
# is enabled.

docs/upgrade.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
## Upgrade
3+
4+
To upgrade packages, first discover the latest pip package version in another container venv.
5+
6+
```
7+
pip3 install mailman
8+
pip3 install mailman-web
9+
pip3 list
10+
11+
pip3 install mailman-hyperkitty
12+
pip3 install importlib-resources
13+
pip3 list
14+
```
15+
16+
Place the latest versions into ansible's defaults/main.md.
17+
18+
19+

tasks/database/postgres.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
vars:
8181
ansible_ssh_pipelining: true
8282
community.postgresql.postgresql_user:
83-
db: "{{ item.name }}"
83+
login_db: "{{ item.name }}"
8484
name: "{{ item.username }}"
8585
password: "{{ item.password }}"
8686
state: present
@@ -92,7 +92,7 @@
9292
vars:
9393
ansible_ssh_pipelining: true
9494
community.postgresql.postgresql_privs:
95-
db: "{{ item.name }}"
95+
login_db: "{{ item.name }}"
9696
privs: ALL
9797
type: database
9898
role: "{{ item.username }}"
@@ -104,7 +104,7 @@
104104
vars:
105105
ansible_ssh_pipelining: true
106106
community.postgresql.postgresql_privs:
107-
db: "{{ item.name }}"
107+
login_db: "{{ item.name }}"
108108
privs: ALL
109109
type: schema
110110
objs: public
@@ -118,7 +118,7 @@
118118
vars:
119119
ansible_ssh_pipelining: true
120120
community.postgresql.postgresql_privs:
121-
db: "{{ item.name }}"
121+
login_db: "{{ item.name }}"
122122
privs: SELECT
123123
type: table
124124
schema: public
@@ -134,7 +134,7 @@
134134
vars:
135135
ansible_ssh_pipelining: true
136136
community.postgresql.postgresql_privs:
137-
db: "{{ item.name }}"
137+
login_db: "{{ item.name }}"
138138
privs: SELECT
139139
type: default_privs
140140
schema: public

tasks/install_pip.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
name: "{{ mailman3_pip_packages }}"
2121
state: "{{ 'latest' if mailman3_upgrade else omit }}"
2222
virtualenv: "{{ mailman3_install_dir }}"
23+
notify:
24+
- Restart mailman3-core service
25+
- Restart mailman3-web service
2326

2427
- name: Create configuration, data, and state directories
2528
ansible.builtin.file:

0 commit comments

Comments
 (0)