Project

General

Profile

Actions

action #116689

closed

Do not rely on statically configured IPv4 addresses for the salt master in /etc/hosts size:S

Added by okurz about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Start date:
2022-09-14
Due date:
% Done:

0%

Estimated time:

Description

Motivation

In #116539 and #116563 we had the problem that we needed to add a static IPv4 address entry to /etc/hosts for hosts to be able to connect to the salt master when instead we should rely on the FQDN entry, e.g. openqa.suse.de in /etc/salt/minion which we already configure from salt but this step needs to happen initially before connecting to salt.

Acceptance criteria

  • AC1: IPv4 addresses have been replaced with FQDNs in all our salt controlled hosts

Suggestions

Actions #2

Updated by okurz about 2 years ago

  • Parent task set to #116623
Actions #3

Updated by okurz about 2 years ago

  • Subject changed from Do not rely on statically configured IPv4 addresses for the salt master in /etc/hosts to Do not rely on statically configured IPv4 addresses for the salt master in /etc/hosts size:S
  • Description updated (diff)
  • Status changed from New to Workable
  • Priority changed from Normal to High
Actions #4

Updated by okurz about 2 years ago

  • Status changed from Workable to In Progress
  • Assignee set to okurz
Actions #5

Updated by okurz about 2 years ago

  • Due date set to 2022-10-06
  • Status changed from In Progress to Feedback

On OSD I did

sudo salt \* cmd.run 'echo "master: openqa.suse.de" >> /etc/salt/minion'
sudo salt \* cmd.run "sed -i '/10.160.0.207.*salt/d' /etc/hosts"

and I tested on openqaworker13 as an example that after restarting salt-minion I can still reach the system over salt.

https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/740 for the instruction change in README.

Actions #6

Updated by okurz about 2 years ago

  • Due date deleted (2022-10-06)
  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF