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
- Compare agent-based (pull) and agentless (push) models.
- Describe Puppet (manifests, master/agent, Ruby DSL) and Chef (cookbooks, recipes, Ruby).
- Describe Ansible (playbooks in YAML, inventory, modules, SSH/NETCONF) and SaltStack (master/minion, or salt-ssh).
- Explain why agentless tools dominate network automation.
Agent-based versus agentless
| Agent-based | Agentless | |
|---|---|---|
| Model | Pull: agents check in with the server on a schedule | Push: the control node connects when a job runs |
| On the device | An agent process must run there | Only SSH, NETCONF or an API |
| Tools | Puppet (manifests), Chef (cookbooks and recipes), SaltStack (minions) | Ansible (playbooks), salt-ssh, Terraform for APIs |
| Language | Ruby-based DSLs | YAML (Ansible), HCL (Terraform) |
| Strength | Continuous enforcement of state on servers | Nothing 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 --check | Dry run: show what would change. |
puppet agent --test | Run the Puppet agent once on a node. |
salt '*' test.ping | SaltStack: check which minions respond. |
Exam traps
- Puppet and Chef need agents; Ansible does not.
- Ansible uses YAML playbooks; Puppet uses manifests; Chef uses recipes in cookbooks.
- Pull models enforce state continuously; push models change state when a job runs.
- Puppet agents talk to the server on TCP 8140.
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.