Page MenuHomeDevCentral

Refactor and consolidate Zemke-Rhyne unit
ClosedPublic

Authored by dereckson on Sep 8 2018, 17:57.
Tags
None
Referenced Files
F2832618: D1689.id4301.diff
Sat, Apr 20, 10:49
Unknown Object (File)
Fri, Apr 19, 09:05
Unknown Object (File)
Fri, Apr 19, 07:05
Unknown Object (File)
Fri, Apr 19, 07:05
Unknown Object (File)
Thu, Apr 18, 17:58
Unknown Object (File)
Mon, Apr 15, 02:40
Unknown Object (File)
Mon, Apr 15, 01:39
Unknown Object (File)
Mon, Apr 15, 01:39
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 Not Applicable
Unit
Tests Not Applicable

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.