Page MenuHomeDevCentral

Core: set hostname
ClosedPublic

Authored by dereckson on Jun 15 2016, 13:54.
Tags
None
Referenced Files
F10322282: D404.diff
Sat, Jun 28, 12:44
Unknown Object (File)
Thu, Jun 26, 13:39
Unknown Object (File)
Tue, Jun 24, 11:29
Unknown Object (File)
Tue, Jun 17, 08:30
Unknown Object (File)
Tue, Jun 17, 01:25
Unknown Object (File)
Mon, Jun 16, 04:39
Unknown Object (File)
Fri, Jun 13, 02:26
Unknown Object (File)
Thu, Jun 12, 23:52
Subscribers
None

Details

Summary

We always and for all OS set hostname to /etc/hostname.

When this file is modified, we run hostname, then
other OS specific commands.

Fixes T794.

Test Plan

Tested on Eglide with the following:

  • remove /etc/hostname, apply Salt state, read /etc/hostname
  • apply Salt state when file won't be modified, see commands don't run

Diff Detail

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

Event Timeline

dereckson retitled this revision from to Core: set hostname.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: Sandlayth.
Sandlayth edited edge metadata.
This revision is now accepted and ready to land.Jun 15 2016, 14:03
This revision was automatically updated to reflect the committed changes.