Page MenuHomeDevCentral

Create /var/dataroot for MediaWiki on devserver
ClosedPublic

Authored by dereckson on May 30 2023, 20:56.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 16:10
Unknown Object (File)
Sun, Nov 10, 01:29
Unknown Object (File)
Sun, Nov 10, 01:12
Unknown Object (File)
Sun, Nov 10, 00:30
Unknown Object (File)
Sat, Nov 9, 22:41
Unknown Object (File)
Oct 22 2024, 00:57
Unknown Object (File)
Oct 21 2024, 21:03
Unknown Object (File)
Oct 15 2024, 12:55
Subscribers
None

Details

Summary

On Ysul, some devserver services used directories already provisioned by other
roles like saas-mediawiki for /var/dataroot/<wiki domain>.

Yet, the mediawiki.dereckson.be instance is NOT hosted on the MediaWiki SaaS
code as it's a development instance to test changes and review commits for
MediaWiki core, skins and extensions. As such, it's handled as a standalone
service. It just need a folder to store data, outside home directory.

Ref T1536

Test Plan

Move mediawiki.dereckson.be to WindRiver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from Create /var/dataroot for MediaWiki on devserver Some services like MediaWiki are managed by Salt, but with a role not available on devserver, with some directories useful on devserver too. For example, we don't currently want on WindRiver a copy... to Create /var/dataroot for MediaWiki on devserver.May 30 2023, 21:03
dereckson edited the summary of this revision. (Show Details)
dereckson edited the test plan for this revision. (Show Details)

First run

With only /var/dataroot/mediawiki.dereckson.be defined:

$ salt-call --local state.apply roles/devserver/datacube
[…]
          ID: /var/dataroot/mediawiki.dereckson.be
    Function: file.directory
      Result: True
     Comment:
     Started: 20:51:37.696756
    Duration: 2.963 ms
     Changes:
              ----------
              /var/dataroot/mediawiki.dereckson.be:
                  ----------
                  directory:
                      new
[…]

$ ls -lah /var | grep dataroot
drwxrwx--x   3 web-be-dereckson-mw  dereckson     3B May 30 20:51 dataroot

That's why I added to set specific mode/ownership.

Second run

$ salt-call --local state.apply roles/devserver/datacube
----------
          ID: /var/dataroot
    Function: file.directory
      Result: True
     Comment: Directory /var/dataroot updated
     Started: 20:52:43.030773
    Duration: 2.042 ms
     Changes:
              ----------
              /var/dataroot:
                  ----------
                  group:
                      ops
                  mode:
                      0775
                  user:
                      root
              group:
                  ops
              mode:
                  0775
              user:
                  root
----------
          ID: /var/dataroot/mediawiki.dereckson.be
    Function: file.directory
      Result: True
     Comment: The directory /var/dataroot/mediawiki.dereckson.be is in the correct state
     Started: 20:52:43.032934
    Duration: 1.0 ms
     Changes:
[…]

$ ls -lah /var | grep dataroot
drwxrwxr-x   3 root     ops         3B May 30 20:51 dataroot
This revision is now accepted and ready to land.May 30 2023, 21:06