Ask Your Question
2

Find all machines that connect to puppet master?

asked 2015-04-09 09:36:45 -0500

maynero gravatar image

Is there a way to find all machine that connects (or previously connects) to puppet master including data like operating system?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2015-04-09 10:26:46 -0500

csharpsteen gravatar image

updated 2015-04-09 12:13:29 -0500

In general, this functionality is provided by PuppetDB which stores information including facts and last check in time for agents. PuppetDB also provides sophisticated methods for querying and retrieving this data.

Additionally, most masters are configured to cache fact data as YAML in the vardir:

ls $(puppet config print --section master vardir)/yaml/facts

This cache may provide a simple way to get the data you are looking for.

edit flag offensive delete link more
1

answered 2015-04-10 11:18:04 -0500

Chris gravatar image

You could also use mco commands if you have that configured/available.

mco ping - find all instances attached mco find - find all instances - can provide additional criteria to find specify instances using facts or what have you.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-04-09 09:36:45 -0500

Seen: 118 times

Last updated: Apr 09 '15