Skip to content

Commit

Permalink
docs: off1 hardware upgrade (#278)
Browse files Browse the repository at this point in the history
off1 hardware upgrade, server re-install, mongodb setup, backup setup, stunnel install
  • Loading branch information
alexgarel authored Feb 12, 2024
1 parent e39a041 commit 6a96478
Show file tree
Hide file tree
Showing 21 changed files with 1,229 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/discourse.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Mail is very important as a lot of notifications are sent by the forum.

Mail can be tested at https://forum.openfoodfacts.org/admin/email

We use [Promox mail gateway](./mail.md).
We use [Proxomox mail gateway](./mail.md).

**⚠ Warning:** the sender email [have to be on main domain](./mail.md#only-domain), NOT forum.openfoodfacts.org.

Expand Down
10 changes: 10 additions & 0 deletions docs/proxmox.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ We use proxmox firewall on host. **FIXME** to be completed.

We have a masquerading rule for 10.1.0.1/24.

## Users and groups

We have a minimal set of users and groups.

*admin* group is for proxmox admins (*Administrator Role*). *ro_users* gives a read only access to the interface (*PVEAuditor* Role)

We put users (see users in proxmox interface) in groups (see groups in proxmox interface),
and give roles to users (see permissions in proxmox interface).

## Some Proxmox post-install thing

Remove enterprise repository and add the no-subscription one
Expand Down Expand Up @@ -245,6 +254,7 @@ Using the web interface:
* Target: ovh3
* Schedule: */5 if you want every 5 minutes (takes less than 10 seconds, thanks to ZFS)

Also think about [configuring email](./mail.md#postfix-configuration) in the container

## Logging in to a container or VM

Expand Down
2 changes: 1 addition & 1 deletion docs/reports/2022-02-proxmox-mail-gateway-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Prepared:

```
root@proxy:/etc/nginx/conf.d# cat pmg.openfoodfacts.org.conf
# PMG stands for Promox Mail Gateway
# PMG stands for Proxmox Mail Gateway
# We need to redirect port 80, for letsencrypt's certificate management
server {
Expand Down
4 changes: 2 additions & 2 deletions docs/reports/2023-02-17-off2-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ We set some properties and rename it from off-zfs to zfs-nvme and create the zfs
**EDIT:** on 2023-06-13, I re-created the zpool (it was lost in between, until we changed nvme disks).
```bash
$ zpool destroy testnvme
$ zpool create -o ashift=12 testnvme mirror nvme1n1 nvme0n1
$ zpool create -o ashift=12 zfs-nvme mirror nvme1n1 nvme0n1
$ zpool add zfs-nvme log nvme2n1
zpool status zfs-nvme
pool: zfs-nvme
Expand All @@ -308,7 +308,7 @@ we also receive the data from rpool2 back here:

### zfs-hdd pool

First we create partitions for those rpool.
First we create partitions for this new pool.
For each sda/sdb/sdc/sdd:
```bash
parted /dev/sdX mkpart zfs-hdd zfs 70g 100%
Expand Down
1 change: 1 addition & 0 deletions docs/reports/2023-03-14-off2-opff-reinstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ cd sanoid
# checkout latest stable release or stay on master for bleeding edge stuff (but expect bugs!)
git checkout $(git tag | grep "^v" | tail -n 1)
ln -s packages/debian .
apt install debhelper libcapture-tiny-perl libconfig-inifiles-perl pv lzop mbuffer build-essential git
dpkg-buildpackage -uc -us
sudo apt install ../sanoid_*_all.deb
```
Expand Down
Loading

0 comments on commit 6a96478

Please sign in to comment.