6.7 Compare agent-based and agentless orchestration tools

ENCOR 350-401 v1.2 · 6.0 Automation and Artificial Intelligence

Orchestration tools manage many devices from one place. They split into agent-based tools (Puppet, Chef), where software on each node pulls its configuration from a server, and agentless tools (Ansible, also SaltStack in agentless mode), which push changes over SSH or APIs. ENCOR expects you to compare them and say which fits network devices.

What you must know

Agent-based versus agentless

Agent-basedAgentless
ModelPull: agents check in with the server on a schedulePush: the control node connects when a job runs
On the deviceAn agent process must run thereOnly SSH, NETCONF or an API
ToolsPuppet (manifests), Chef (cookbooks and recipes), SaltStack (minions)Ansible (playbooks), salt-ssh, Terraform for APIs
LanguageRuby-based DSLsYAML (Ansible), HCL (Terraform)
StrengthContinuous enforcement of state on serversNothing to install; ideal for network gear

Ansible reaches the switch only when a job runs (1); the Puppet agent asks its server for its configuration on a schedule (2). Most network devices cannot run arbitrary agents, which is why Ansible (and controllers' APIs) lead in network automation.

Commands

ansible-playbook -i hosts site.yml --checkDry run: show what would change.
puppet agent --testRun the Puppet agent once on a node.
salt '*' test.pingSaltStack: check which minions respond.

Exam traps

Check yourself

Which tool uses cookbooks and recipes?
Chef.
Why is Ansible popular for network devices?
It is agentless: it uses SSH or APIs that devices already support.
Pull or push: which model does Puppet use?
Pull: agents check in with the Puppet server.

More topics in 6.0 Automation and Artificial Intelligence