Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Puppet for Windows Server

You're reading from   Learning Puppet for Windows Server Organize your Windows environment using Puppet tools to unload administrative burdens in a short time!

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher Packt
ISBN-13 9781785281877
Length 234 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Fuat Ulugay Fuat Ulugay
Author Profile Icon Fuat Ulugay
Fuat Ulugay
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Installing Puppet Server and Foreman FREE CHAPTER 2. Installing Puppet Agents 3. Your First Modules 4. Puppet Forge Modules for Windows 5. Puppet Facts, Functions, and Templates 6. Using Puppet for Windows Security 7. Reporting and Monitoring 8. Installing Software and Updates Index

Checking the statuses of hosts from the terminal


We checked the features of the Foreman interface. Now, it is time to check the details from the terminal. You may not need these details, as Foreman is enough for your daily management. However, sometimes Foreman may not be enough and you may need to troubleshoot. In this section, we will see the details of hosts as they are recognized correctly by Puppet via node.rb. In this, there are the node definitions, facts files for hosts, and signed certificates.

node.rb

node.rb under /etc/puppet/node.rb is one of the tools that we can use to check whether the related host is accurately defined and has no problems. node.rb is Foreman-specific and will only work with it. You need to run it with root rights. The command usage is as follows:

$ sudo -i
# /etc/puppet/node.rb hostname

If the preceding command gives error in your environment, because Ruby was not added at the beginning, the following command will work:

# ruby /etc/puppet/node.rb hostname

The...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image