Page MenuHomeDevCentral

Consolidate web content units into webserver-content role
ClosedPublic

Authored by dereckson on Nov 23 2017, 05:06.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 18:00
Unknown Object (File)
Thu, Oct 31, 15:42
Unknown Object (File)
Thu, Oct 31, 06:58
Unknown Object (File)
Mon, Oct 28, 16:27
Unknown Object (File)
Tue, Oct 22, 10:09
Unknown Object (File)
Tue, Oct 22, 09:48
Unknown Object (File)
Sat, Oct 19, 08:34
Unknown Object (File)
Tue, Oct 15, 23:27
Subscribers
None

Details

Summary

Roles

The webserver-content role will receive all instructions
to provision /var/wwwroot folders.

The organization follows the one defined in the first commits
for webserver-legacy/, with folders and subfolders according
the FQDN.

States

The eglide-website unit contained also nginx configuration,
moved temporarily to the shellserver/web-hosting role.
In the short to medium term, it will be consolidated into
a more generic webserver-core.

Pillar

The salt master knows what to deploy on what server through
the web_content_sls pillar entry.

The webserver pillar entries are now available to each server.

Refs

The commits a0d4bf923805 and 23815a361565 have prepared the groundwork.

Ref T1325

Test Plan

First, check Eglide and Ysul got the correct ones:

  • salt-call --local node.filter_by_role web_content_sls
  • salt eglide node.filter_by_role web_content_sls

Then, ensure salt * state.apply webserver-content is no-op.

Units tests added for node.has_web_content

Diff Detail

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

Event Timeline

So, include can't receive a list from a Salt method. We're switching to a check in role files.

Use a generator script and a Makefile to update role/webserver-content/init.sls from pillar

This revision is now accepted and ready to land.Nov 24 2017, 06:09
dereckson edited the test plan for this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.