HomeDevCentral

Consolidate web content units into webserver-content role

Authored by dereckson on Nov 24 2017, 06:58.

Description

Consolidate web content units into webserver-content role

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

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1325

Differential Revision: https://devcentral.nasqueron.org/D1259

Details

Committed
derecksonNov 24 2017, 06:58
Pushed
derecksonNov 24 2017, 06:58
Reviewer
dereckson
Differential Revision
D1259: Consolidate web content units into webserver-content role
Parents
rOPSb1393a9b045c: Require salt for unit tests
Branches
Unknown
Tags
Unknown
Tasks
T1325: Consolidate webserver roles