DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1

Infra. A large variety of nodes are supported by Chef
Infra, including virtual and physical servers; cloud-based
nodes running in public and private clouds; network
devices from vendors such as Cisco, Arista, F5, and
others; and container environments. The main roles of
Chef Infra Client are to register the node and
authenticate to Chef Infra Server using RSA public key
pairs, synchronize cookbooks, configure the node to
match the desired state specified in the cookbooks, and
report back to Infra Server with status reports. Chef has a
tool built in to the Infra Client called ohai that is used to
collect system information such as the operating system,
network, memory, disk, CPU, and other data; ohai is
similar to facter in Puppet.


Much like the Puppet Forge, Chef Supermarket is a
community-maintained central location where
cookbooks are created and shared between the members
of the community.


The following is a sample Chef cookbook used for
configuring an interface on a Cisco Nexus switch:


Click here to view code image


cisco_interface 'Ethernet1/3' do
action :create
ipv4_address '10.1.1.1'
ipv4_netmask_length 24
ipv4_proxy_arp true
ipv4_redirects true
shutdown false
switchport_mode 'disabled'
end
Free download pdf