Skip to content

Commit 5fc3eff

Browse files
author
Kevin Aloysius
committed
Facter Example
1 parent be32d57 commit 5fc3eff

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

docs/scenarios/admin.rst

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,20 +248,33 @@ physical and virtual machines.
248248
Puppet is available both as an Open Source and an Enterprise variant. Modules are
249249
small,shareable units of code written to automate or define the state of a system.
250250
`Puppet Forge <https://forge.puppetlabs.com/>`_ is a repository for modules written
251-
by the community for Open Source
252-
and Enterprise Puppet.
251+
by the community for Open Source and Enterprise Puppet.
253252

254253
Puppet Agents are installed on nodes whose state needs to be monitored or changed.
255254
A desginated server known as the Puppet Master is responsible for orchastrating the
256255
agent nodes.
257256

258-
Agent nodes send basic facts about the system such as to the Operating System, Kernel,
259-
Architecture, IP Address, Hostname etc. to the Puppet Master.
257+
Agent nodes send basic facts about the system such as to the operating system, kernel,
258+
architecture, ip address, hostname etc. to the Puppet Master.
260259
The Puppet Master then compiles a catalog with information provided by the agents on
261260
how each node should be configured and sends it to the agent. The agent enforces the
262261
change as prescribed in the catalog and sends a report back to the Puppet Master.
263262

264-
`Puppet Labs Documentation <http://docs.puppetlabs.com>`_
263+
Facter is an interesting tool that ships with Puppet that pulls basic facts about
264+
the System. These facts can be referenced as a variable while writing your
265+
Puppet modules.
266+
267+
.. code-block:: console
268+
269+
$ facter kernel
270+
Linux
271+
.. code-block:: console
272+
273+
$ facter operatingsystem
274+
Ubuntu
275+
276+
277+
`Puppet Labs Documentation <http://docs.puppetlabs.com>`_
265278

266279
Blueprint
267280
---------

0 commit comments

Comments
 (0)