Page MenuHomeDevCentral

Create ZFS datasets for /var/home-wwwroot
ClosedPublic

Authored by dereckson on Sep 30 2024, 17:46.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 15:55
Unknown Object (File)
Fri, Dec 6, 13:23
Unknown Object (File)
Mon, Dec 2, 12:51
Unknown Object (File)
Thu, Nov 28, 06:50
Unknown Object (File)
Wed, Nov 27, 04:06
Unknown Object (File)
Mon, Nov 25, 11:43
Unknown Object (File)
Mon, Nov 25, 11:39
Unknown Object (File)
Mon, Nov 25, 11:33
Subscribers
None

Details

Summary

UNIX server convention is to serve on HTTP /~<username>
from /home/<username>/public_html directories.

On the devserver role, to allow to use chmod 700 in /home, nginx is configured
to serve user directories from the /var/home-wwwroot directory.

That creates a difference:

  • home directories are ZFS datasets, with automatic snapshots
  • web directories were regular all in the arcology/var ZFS dataset

This change creates arcology/var/home-wwwroot/<username> datasets with the same
permissions than user directories. Users can so create and manage snapshots.

The automatic provisionning of public_html in /home allows also to directly
use the public_html folder, without any root configuration.

This is a follow-up for e85e5bbf14ee.

Test Plan

Deployed on WindRiver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Errorroles/devserver/webserver-home/files/setup-web-home.py:55E501flake8 E501
Unit
No Test Coverage
Branch
var-home-wwwroot-zfs
Build Status
Buildable 5527
Build 5808: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Sep 30 2024, 17:50
This revision was landed with ongoing or failed builds.Sep 30 2024, 17:51
This revision was automatically updated to reflect the committed changes.