mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Facter Example
This commit is contained in:
@@ -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 <https://forge.puppetlabs.com/>`_ 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 <http://docs.puppetlabs.com>`_
|
||||
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 <http://docs.puppetlabs.com>`_
|
||||
|
||||
Blueprint
|
||||
---------
|
||||
|
||||
Reference in New Issue
Block a user