

Then run the 'cat' command again to print the file: Notice: Finished catalog run in 0.02 seconds Info: Applying configuration version '1442187876' We can either wait until the agent checks in with the master automatically, or we can run the following on the agent:Ĭat: /tmp/example-ip: No such file or directory This will make ensure that all agent nodes will have a file at /tmp/example-ip, with -rw-r-r- permissions, and text that contains the node's public IP address. Now add the following lines to describe a file resource:įile. This cycle will continue as long as the Puppet master is running and communicating with the agent nodes. The agent node will then attempt to make the appropriate changes to achieve its desired state. During this time, it will send facts about itself to the master, and pull a current catalog-a compiled list of resources and their desired states that are relevant to the agent, determined by the main manifest. The puppet agent periodically checks in with the puppet master (typically every 30 minutes). This main starting point is called the main manifest or site manifest. Puppet always starts compiling with either a single manifest file or a directory of manifests that get treated like a single file. Puppet programs are called manifests, and they use the. It discovers and reports per-node facts, which are available in our Puppet manifests as variables.įilesystems => ext2,ext3,ext4,iso9660,vfat

It is possible to add custom facts if we need other facts to perform our configurations.įacter is Puppet's cross-platform system profiling library. "Puppet discovers the system information via a utility called Facter, and compiles the Puppet manifests into a system-specific catalog containing resources and resource dependency, which are applied against the target systems." - wiki These facts are then made available in our Puppet manifests as variables.
#PUPPETRY BASICS MAC#
Facter gathers basic facts about nodes (systems) such as hardware details, network settings, OS type and version, IP addresses, MAC addresses, SSH keys and more. Puppet gathers facts about each of its nodes with a tool called Facter.
#PUPPETRY BASICS INSTALL#
EC2 Puppet - Install lamp with a module.EC2 Puppet - Install lamp with a manifest ('puppet apply').Setting up puppet master and agent with simple scripts on EC2 / remote install from desktop.EC2 Puppet master/agent basic tasks - main manifest with a file resource/module and immediate execution on an agent node.Puppet agent post install tasks - configure agent, hostnames, and sign request.Puppet master post install tasks - master's names and certificates setup,.Puppet master /agent ubuntu 14.04 install on EC2 nodes.Puppet with Amazon AWS on CentOS 7 (II) - Configuring a Puppet Master Server with Passenger and Apache.Puppet with Amazon AWS on CentOS 7 (I) - Master setup on EC2.Puppet with Amazon AWS III - Puppet running Hello World.Puppet with Amazon AWS II (ssh & puppetmaster/puppet install).Puppet with Amazon AWS I - Puppet accounts.
