skip to content

How do you choose between a configuration agent and agentless SSH delivery for a host group, including hosts often off when changes ship?

level: middleimportance: should knowfreq 50%

answer

  1. read the group's constraints first
  2. outbound only or inbound port
  3. what can the device actually run
  4. off during a change: missed or fetched later
  5. current configuration, not a replay

basics

~20 s

Choose from what the group can do. Agents suit hosts with only outbound reach or irregular uptime; agentless suits always-on hosts that accept inbound logins or cannot run an agent. A host that was off needs a later run either way.

solid answer

~40 s

I start from what each group can do rather than from a preferred tool. An agent needs a daemon installed, upgraded and monitored on every host, plus an enrolled identity, but only outbound reach to the configuration server. That fits laptops and hosts in networks that refuse inbound connections. Agentless needs an open inbound port, a credential the controller holds and the host being up during a run, which fits always-on servers and devices that cannot run an agent, such as many network switches. A host that was off misses a push until a later run reaches it, while an agent fetches the current configuration when it returns, without replaying the revisions it missed. New hosts differ too: an agent has to be bootstrapped, while agentless needs the host listed and the credential trusted.

go deeper

for a junior

Recall the short lists: an agent needs installed software, an identity and an outbound route; agentless needs an inbound port, a trusted credential and a host that is on during the run.

for a middle

Explain the choice group by group, reasoning from network direction, uptime and device capability. Walk through what a host that was off sees under each model, including that an agent fetches the current configuration, not a replay.

for a senior

Show the later costs you have lived with: agent upgrades delivered through the same channel, expired certificates on long-absent hosts, a silent agent that looks fine, and a controller credential that logs in everywhere.

for a principal

Weigh running two models against forcing one. Ask whether the constraint is real or a preference, what the second model costs a small team, and how to keep reporting consistent across both.

## Start from the host group, not the tool A **host group** is a set of hosts that share constraints: network position, uptime and what software they can run. Here, an **agent** is a background service on each host that pulls from a configuration server on an interval, and **agentless** means a controller logs in over SSH or WinRM when a run starts. Choosing between them for a group is mostly a matter of reading those constraints, because each model asks different things of a host. ## What each model asks of a host | Requirement | Agent pulling | Agentless push | |---|---|---| | Software on the host | A daemon, installed and upgraded on every host | Nothing permanent; a shell, sometimes an interpreter | | Network | Outbound route to the configuration server | Inbound port reachable from the controller | | Identity | Per-host identity, commonly a certificate | A credential every host trusts, held by the controller | | Uptime | On at some point; it catches up then | On during a run that includes it | | A new host | Install the agent and enrol it | Add it to the host list and trust the credential | | How a broken host shows | The agent goes silent, so a missing report is often the first sign | It appears as unreachable in the run's result | ## Hosts that are off when a change ships This is where the two models feel most different. Take a host that is off while a new revision ships. Under agentless push, in its usual shape: 1. The controller tries the host, cannot connect and marks it unreachable. 2. The run carries on with the other hosts. 3. The host comes back on its old configuration, and nothing changes until a later run includes it. Under an agent pulling, also in its usual shape: 1. Nothing happens on the host while it is off. 2. When it returns, the agent's next run asks the server what is desired now. 3. It applies the current configuration, not a replay of each revision it missed. Three consequences are worth saying out loud: - **Intermediate revisions are skipped.** If one revision carried a one-time step that a later revision no longer mentions, a returning host never performs it. - **Stale until the next run.** A returning host runs its old configuration until the agent runs, so an agent set to run soon after start narrows the gap. Under push the gap lasts until someone or a schedule starts another run. - **Long absences have their own failures.** A host off for months can return with an expired certificate or an agent too old for the server, and then it stays silent instead of catching up. ## Working through example groups - **Always-on Linux servers on a routable network.** Either model works. The deciding factors are whether inbound SSH from a central point is acceptable and whether the team would rather own daemon upgrades or a credential that logs in everywhere. - **Network devices.** Many cannot install third-party software, so a controller session over SSH or a device API is often the only practical choice. - **Laptops.** They are often off, roam between networks and are rarely reachable inbound, so an agent fits, provided its server is reachable from wherever they are. That can mean exposing a server to the internet or depending on a VPN. - **Restricted network zones.** A zone that refuses inbound connections favours agents. A zone that refuses outbound connections favours a controller placed inside it. ## Costs that show up later - **Agent upgrades.** Upgrading a fleet's agents is itself a fleet-wide change, often delivered by those same agents, and a bad upgrade can cut hosts off from any fix. - **Agent footprint.** Every host spends memory and CPU on the agent, and the configuration server has to carry the fleet's requests. - **Controller credential.** One secret that logs in everywhere raises the stakes of compromise, and rotating it means changing what every host trusts. - **Controller capacity.** A run's duration depends on how many connections the controller holds open, so large groups take time unless runs are split. - **Bootstrapping.** Either way, a new host needs something before its first run: an installed and enrolled agent, or a listing and a trusted credential. A mixed answer is normal. Saying which group gets which model, and which constraint decided it, is stronger than naming one winner.

  • What can fail for an agent on a host that has been off for months?
    Its certificate may have expired, or its version may be too old for the configuration server to accept. Either way the agent fails to fetch anything, and the host looks silent instead of catching up. Track the last report time per host and treat a long silence as a host needing attention, not as a healthy one.
  • If agents only connect outbound, does pull delivery remove the network exposure problem?
    It moves it. Hosts no longer need an inbound port, but every host must reach the configuration server, which may now have to be reachable across sites or from the internet for laptops. That server also matters more, because whoever controls what it serves controls what the fleet applies.

  • Agentless has no ongoing cost on the host, so it wins on operations every time.
  • An agent returning from being off replays each missed revision in the order they shipped.
  • Outbound-only agents remove all network exposure, so the configuration server needs no special protection.
  • Any device in an estate can run an agent if someone simply installs one.
  • A push run that finishes means every host on the list received the change.