Page MenuHomeDevCentral

Refactor and consolidate Zemke-Rhyne unit
ClosedPublic

Authored by dereckson on Sep 8 2018, 17:57.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 10:57
Unknown Object (File)
Thu, Nov 7, 12:39
Unknown Object (File)
Wed, Nov 6, 06:04
Unknown Object (File)
Wed, Nov 6, 06:01
Unknown Object (File)
Wed, Nov 6, 05:38
Unknown Object (File)
Wed, Nov 6, 03:16
Unknown Object (File)
Tue, Nov 5, 05:13
Unknown Object (File)
Mon, Nov 4, 06:19
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.