Page MenuHomeDevCentral

Refactor and consolidate Zemke-Rhyne unit
ClosedPublic

Authored by dereckson on Sep 8 2018, 17:57.
Tags
None
Referenced Files
F3715355: D1689.diff
Tue, Nov 5, 05:13
Unknown Object (File)
Mon, Nov 4, 06:19
Unknown Object (File)
Tue, Oct 29, 20:43
Unknown Object (File)
Tue, Oct 29, 20:22
Unknown Object (File)
Sun, Oct 27, 01:53
Unknown Object (File)
Sun, Oct 27, 01:53
Unknown Object (File)
Sun, Oct 27, 01:53
Unknown Object (File)
Fri, Oct 18, 13:27
Subscribers
None

Details

Summary

Strangely, Zemke-Rhyne was associated to the webserver-legacy role.

Actually, Zemke-Rhyne is mainly used to provision secrets
to Docker containers. So it's more logic to deploy it to
the Saltmaster role, as it's an integral part of deployment.

The .ssh/authorized_keys file will be reprovisonned each time
configuration (and so data/servers.json) changes.

Ref T1412

Test Plan

salt --local state.apply roles/saltmaster/zemke-rhyne

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
master
Build Status
Buildable 2641
Build 2889: arc lint + arc unit

Event Timeline

dereckson created this revision.

OK, but got a non repro 255 error code from PHP (ie, a PHP fatal error)

      ID: zr_authorized_keys
Function: cmd.run
    Name: make clean all
  Result: False
 Comment: Command "make clean all" run
 Started: 18:18:31.265016
Duration: 479.128 ms
 Changes:   
          ----------
          pid:
              65731
          retcode:
              1
          stderr:
          stdout:
              rm -f .ssh/authorized_keys
              mkdir -p -m 0700 .ssh
              php bin/getpublickeys > .ssh/authorized_keys
              *** Error code 255

              Stop.
              make: stopped in /usr/home/zr
This revision is now accepted and ready to land.Sep 8 2018, 19:04
This revision was automatically updated to reflect the committed changes.