Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Salt Cookbook
  • Toc
  • feedback
Salt Cookbook

Salt Cookbook

By : Anirban Saha
3.5 (2)
close
Salt Cookbook

Salt Cookbook

3.5 (2)
By: Anirban Saha

Overview of this book

If you are a professional associated with system and infrastructure management, looking at automated infrastructure and deployments, then this book is for you. No prior experience of Salt is required.
Table of Contents (13 chapters)
close
12
Index

Connectivity, DNS, and ports

In this recipe, you will learn about the network and network-service-related problems, which can affect both master and minions in Salt.

How to do it...

  1. When communication between the Salt master and the minion fails, the log file on the minion tells us about the suspected problem:
    2015-02-20 03:46:32,765 [salt.utils       ][ERROR   ] DNS lookup of 'salt-master' failed.
    2015-02-20 03:46:32,765 [salt.minion      ][ERROR   ] Master hostname: 'salt-master' not found. Retrying in 30 seconds
    
  2. Try to reach the Salt master:
    [root@salt-minion ~]# ping salt-master
    ping: unknown host salt-master
    
  3. Add a DNS entry for the Salt master. If it is already present, check the /etc/resolv.conf file to see if the DNS servers are properly set. Also, the problem can be solved with an entry in the /etc/hosts file as follows:
    192.168.0.2 salt-master
    
  4. If the Salt server is reachable, check the ports on the server as to whether or not they are up and listening:
    [root@salt...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete