A Puppet manifest is a file that contains code written in the Puppet language. It is used to define the desired state of a system, such as the packages, services, and configuration files that should be installed and running on a node.
A simple manifest might look like this:
# Example manifest
# Install the Apache web server package { ‘apache2’: ensure => present, }
# Configure the Apache web server service { ‘apache2’: ensure => running, enable => true, }
# Create a directory for our website file { ‘/var/www/html’: ensure => directory, }
# Copy the website files into the directory file { ‘/var/www/html/index.html’: source => ‘puppet:///modules/website/index.html’, }