Book Image

Learning Puppet for Windows Server

By : Fuat Ulugay
Book Image

Learning Puppet for Windows Server

By: Fuat Ulugay

Overview of this book

Table of Contents (15 chapters)
Learning Puppet for Windows Server
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
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...