Setup Guide
puppet-apply
To apply any puppet manifest le, use the puppet-apply script.
puppet-apply -f file | -c command
Following are the puppet apply script options:
-h, --help show this help message and exit
-f FILENAME, --file=FILENAME Apply the given puppet manifest file
-c COMMAND, --command=COMMAND Apply the given puppet command
Building the Manifest File
Puppet consists of a custom declarative language to describe the system conguration, which can be either applied directly on the system
or compiled into a catalog and distributed to the destination system via the client-server paradigm (using REST API). The agent uses the
system–specic providers to enforce the resource specied in the manifests.
The Puppet Agent network devices are managed using the following congurations:
• Hostname Conguration
• Layer 2 interface conguration
• Link aggregation group (LAG) conguration
• Physical interface conguration
• Virtual local area network (VLAN) conguration
Hostname Conguration
Apply the hostname congurations using both the Puppet Standalone and Puppet Agent. You can read and write the hostname
conguration by using the netdev_device.
Example for conguring the Hostname.
node dell_s4810_node1
{
netdev_device { hostname: }
}
Layer 2 Interface Conguration
Apply the Layer 2 interface congurations using both the Puppet Standalone and Puppet Agent. You can read and write the Layer 2
interface congurations by using the
netdev_l2_device type.
node dell_s4810_node1
{
netdev_device { hostname: }
netdev_l2_interface
{ “name”:
ensure => (present | absent),
active => (true | false),
description => "interface-description",
tagged_vlans => (vlan | [vlan1, vlan2, vlan3, ...]),
untagged_vlan => vlan,
vlan_tagging => (enable | disable)
Puppet
67