From 5fc3eff097137ae8be7aaf3b29f56bffee1c6dd9 Mon Sep 17 00:00:00 2001 From: Kevin Aloysius Date: Sat, 4 Oct 2014 21:47:39 -0700 Subject: [PATCH] Facter Example --- docs/scenarios/admin.rst | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/docs/scenarios/admin.rst b/docs/scenarios/admin.rst index a4079c9..92a199c 100644 --- a/docs/scenarios/admin.rst +++ b/docs/scenarios/admin.rst @@ -248,20 +248,33 @@ physical and virtual machines. Puppet is available both as an Open Source and an Enterprise variant. Modules are small,shareable units of code written to automate or define the state of a system. `Puppet Forge `_ is a repository for modules written -by the community for Open Source -and Enterprise Puppet. +by the community for Open Source and Enterprise Puppet. Puppet Agents are installed on nodes whose state needs to be monitored or changed. A desginated server known as the Puppet Master is responsible for orchastrating the agent nodes. -Agent nodes send basic facts about the system such as to the Operating System, Kernel, -Architecture, IP Address, Hostname etc. to the Puppet Master. +Agent nodes send basic facts about the system such as to the operating system, kernel, +architecture, ip address, hostname etc. to the Puppet Master. The Puppet Master then compiles a catalog with information provided by the agents on how each node should be configured and sends it to the agent. The agent enforces the change as prescribed in the catalog and sends a report back to the Puppet Master. - `Puppet Labs Documentation `_ +Facter is an interesting tool that ships with Puppet that pulls basic facts about +the System. These facts can be referenced as a variable while writing your +Puppet modules. + +.. code-block:: console + + $ facter kernel + Linux +.. code-block:: console + + $ facter operatingsystem + Ubuntu + + +`Puppet Labs Documentation `_ Blueprint ---------