Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Salt Cookbook
  • Table Of Contents Toc
Salt Cookbook

Salt Cookbook

By : Anirban Saha
3.5 (2)
close
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
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...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Salt Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon