HomeDevCentral

Core: set hostname

Description

Core: set hostname

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

Reviewers: Sandlayth

Maniphest Tasks: T794

Differential Revision: http://devcentral.nasqueron.org/D404

Details

Provenance
derecksonAuthored on Jun 15 2016, 13:49
derecksonPushed on Jun 15 2016, 14:07
Differential Revision
D404: Core: set hostname
Parents
rOPS71ac80215b1f: Salt configuration for IPv6 for Debian
Branches
Unknown
Tags
Unknown
Reverted By
rOPS336e12bd0071: Remove core.hostnames pillar
Tasks
T794: Set hostname to eglide.org