/iac-automation-skills:chef-puppet-saltstack-legacy-config-managementfrom iac-automation-skills
Compares Chef, Puppet, and SaltStack for teams maintaining legacy agent-based config management estates. Covers DSL/resource models, agent architecture, and migration decisions vs. Ansible.
Ships in iac-automation-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Chef, Puppet, and SaltStack were the dominant configuration-management tools before Ansible's agentless, push-based model took over most new projects. All three are still running in production at plenty of large enterprises — often on systems that predate anyone currently on the team — and the honest operational reality is that most of them are in maintenance mode, not active greenfield adoption: teams keep them running because a full migration is expensive and risky, not because they're the tool a team would choose today. This skill is deliberately scoped to that reality — how to safely operate and extend an existing Chef/Puppet/Salt estate, how the three differ from each other and from Ansible, and how to reason about whether/when migrating off one of them is actually worth it. It is not a pitch for greenfield adoption of any of the three; for that, see ansible-playbook-and-role-design, which is the tool most new configuration-management work in this space should default to today unless a specific existing estate says otherwise.
chef-client, puppet agent,
salt-minion) that applied an unexpected change, drifted from the last
known-good state, or failed a periodic scheduled run silently.chef-client installed on managed nodes; cookbooks written in a
Ruby-based DSL, tested with cookstyle (linting) and Test Kitchen (kitchen converge) against a driver (Docker, Vagrant). Chef's ecosystem has
consolidated significantly — confirm whether an estate is on the
original Chef Infra product or has moved to Progress Chef's current
packaging before assuming tooling/support availability.puppet apply masterless mode) and
puppet agent on managed nodes, running on a pull schedule (default a
periodic interval, commonly around every 30 minutes) rather than an
on-demand push; manifests written in Puppet's own declarative DSL,
organized into modules with a defined class/parameter interface.
puppet-lint for static checks.salt-minion on managed nodes (or
masterless salt-call --local), using YAML state files (SLS) rendered
through Jinja templating by default, with pillar data for
environment/host-specific variables kept separate from state logic —
conceptually close to Ansible's group_vars/host_vars split. Salt
also supports an event-driven reactor system and fast parallel
execution over its own ZeroMQ/message-bus transport, which is genuinely
differentiated from the other two for very large, low-latency fleets.Identify which of the three (if more than one) an estate actually uses, and its architecture mode (agent+server vs. masterless) before touching anything — this determines how a change actually reaches nodes and on what schedule:
/etc/chef/client.rb
on a node, or solo/zero mode with no server at all.puppet config print server on a node; masterless
estates instead schedule puppet apply via cron/systemd timer./etc/salt/minion for a configured master: — a
masterless estate instead schedules salt-call --local runs.Read the resource/state model before writing new code in an unfamiliar DSL — the three model desired state differently enough that copy-pasting patterns between them doesn't work cleanly:
# Chef cookbook resource (Ruby DSL)
package 'nginx' do
action :install
end
template '/etc/nginx/sites-available/app.conf' do
source 'nginx.conf.erb'
variables(client_max_body_size: node['app']['max_body_size'])
notifies :reload, 'service[nginx]', :delayed
end
service 'nginx' do
action [:enable, :start]
end
# Puppet manifest (Puppet DSL)
package { 'nginx':
ensure => installed,
}
file { '/etc/nginx/sites-available/app.conf':
ensure => file,
content => template('app/nginx.conf.erb'),
notify => Service['nginx'],
}
service { 'nginx':
ensure => running,
enable => true,
}
# Salt state (SLS, YAML + Jinja)
nginx-package:
pkg.installed:
- name: nginx
/etc/nginx/sites-available/app.conf:
file.managed:
- source: salt://app/nginx.conf.jinja
- template: jinja
- context:
client_max_body_size: {{ pillar['app']['max_body_size'] }}
- watch_in:
- service: nginx-service
nginx-service:
service.running:
- name: nginx
- enable: True
All three converge toward the same idempotent end state as the Ansible equivalent in ansible-playbook-and-role-design — the difference is the pull/agent architecture and DSL, not the underlying idempotency goal.
Test changes against a disposable target before a real run, using each tool's own convergence-testing pattern rather than editing directly against production nodes:
# Chef: Test Kitchen against a Docker/Vagrant driver
kitchen converge
kitchen verify # runs InSpec/Serverspec assertions
# Puppet: puppet apply --noop for a dry-run against a real/test node
puppet apply --noop site.pp
# Salt: test=True dry-run
salt 'web-*' state.apply app test=True
puppet apply --noop and Salt's test=True are the closest
equivalents to Ansible's --check --diff — review what would
change before letting a scheduled agent run apply it for real.
Understand each tool's run/convergence schedule, since none of these push changes on-demand by default the way an Ansible playbook run does:
chef-client/puppet agent -t
triggered manually).salt '*' state.apply), giving it a push-like option
the other two lack without extra tooling — confirm which mode a
given estate actually relies on before assuming a change is "live."Diagnose an unexpected applied change by reading the catalog/state compilation, not just the run log, since the actual decision of what to apply happens at compile time before the agent executes anything:
# Puppet: view the compiled catalog for a node without applying it
puppet catalog compile <node-name>
# Chef: run in why-run mode (best-effort dry-run; not all resources
# support it accurately, similar caveat to Ansible --check)
chef-client --why-run
# Salt: show the compiled low-state without applying
salt 'web-01' state.show_sls app
An unexpected change is often traceable to a Hiera/data-binding (Puppet), a role/environment cookbook version pin (Chef), or a pillar override (Salt) that changed upstream of the specific manifest/recipe/ state file that appeared to be the direct cause.
Decide migration-vs-maintain deliberately, per estate, not as a blanket policy. A small, stable, rarely-touched Puppet estate managing a handful of legacy hosts is often cheaper to leave alone than to migrate; a large, actively-changing Chef estate with frequent cookbook churn and a team that already knows Ansible better is a stronger migration candidate. Weigh:
notifies/subscribes, Salt's require/watch/onchanges)
are each their own model and behave subtly differently under the same-
looking code.requirements.yml pins Ansible roles/collections
(metadata.rb's depends, a Puppetfile's module refs, a Salt
fileserver/GitFS pinned ref) so an upstream dependency doesn't
silently change behavior on the next agent run.group_vars/host_vars, and for
the same reason: the same code should run unmodified across
environments with only the data differing.--noop, test=True,
--why-run) before any change lands on a schedule that will apply it
automatically and unattended.Symptom: A scheduled Puppet/Chef agent run applies a change nobody intended, hours after a seemingly unrelated commit merged elsewhere in the repo. Fix: Check for a shared data source (Hiera hierarchy, a role cookbook, a common pillar file) that the seemingly unrelated commit actually touched — in all three tools, data/role layers are frequently shared across many manifests/recipes/states, so a change to shared data can silently ripple into many nodes' next scheduled run. Compile the catalog/state for the affected node (step 5) to see the actual resolved change before assuming the run log's stated resource is the full story.
Symptom: A team inherits a Puppet/Chef/Salt estate with no one left
who wrote the original manifests/cookbooks/states, and small changes
take far longer than expected because the DSL and module structure are
unfamiliar.
Fix: This is exactly the maintenance-cost side of the
migrate-vs-maintain tradeoff in step 6 — don't default to a full
rewrite reflexively; first invest in understanding the existing
dependency graph (puppet catalog compile, Chef's cookbook dependency
tree, Salt's state.show_sls) enough to make small, safe changes, and
make the migration decision deliberately with real cost estimates
rather than out of unfamiliarity-driven frustration.
Symptom: Two configuration-management tools (e.g. a legacy Puppet estate and a newer Ansible rollout) both manage the same node, and changes made by one get silently reverted by the other's next scheduled/triggered run. Fix: Assign exactly one tool ownership per node/resource, the same single-owner principle as the Terraform/Ansible split in ansible-playbook-and-role-design — during a migration, move a node's ownership atomically (disable the old agent on that node before Ansible starts managing it), rather than running both indefinitely against the same host.
Symptom: An agent on a managed node hasn't successfully checked in
for months, and nobody noticed because there's no alerting on stale
runs.
Fix: A silently-stopped agent means that node has been drifting
unmanaged (and unpatched via the config-management path) for as long as
it's been broken. Alert on run-report staleness (Puppet's
puppet-agent --test report timestamps via PuppetDB, Chef's reporting
via Chef Automate/Data Collector, Salt's minion return tracking) the
same way any other critical scheduled job would be monitored for
silent failure.
Symptom: A puppet apply --noop/salt ... test=True dry-run shows
no changes, but the same run applied for real changes something
unexpected.
Fix: Similar to Ansible's --check limitation, no-op/test modes
can't always accurately predict resources whose behavior depends on
runtime state produced earlier in the same run, or on external systems
the dry-run doesn't query identically to a real run. Treat dry-run
output as a strong signal, not a guarantee, and roll out to a small
canary set of nodes for anything with meaningfully broad blast radius
before a fleet-wide scheduled run picks it up.
Scenario: A team inherits a Puppet estate managing 40 legacy hosts.
They need to add a new nginx client_max_body_size setting (mirroring
the Ansible worked example in
ansible-playbook-and-role-design)
without disrupting the existing agent-based rollout, and they want to
confirm the change before letting the fleet's next scheduled run apply
it everywhere.
hieradata/common.yaml (environment data, analogous to Ansible's
group_vars):
app::nginx_client_max_body_size: "10m"
hieradata/nodes/web-prod.yaml (node-specific override):
app::nginx_client_max_body_size: "25m"
manifests/nginx.pp:
class app::nginx (
String $nginx_client_max_body_size = lookup('app::nginx_client_max_body_size'),
) {
package { 'nginx':
ensure => installed,
}
file { '/etc/nginx/conf.d/app.conf':
ensure => file,
content => template('app/nginx_app.conf.erb'),
require => Package['nginx'],
notify => Service['nginx'],
}
service { 'nginx':
ensure => running,
enable => true,
}
}
Dry-run against the compiled catalog for one node before the change is merged fleet-wide:
puppet catalog compile web-prod-01
puppet apply --noop --modulepath=/etc/puppetlabs/code/environments/production/modules manifests/site.pp
# Notice: /Stage[main]/App::Nginx/File[/etc/nginx/conf.d/app.conf]/content:
# --- current content
# +++ new content
# - client_max_body_size 10m;
# + client_max_body_size 25m;
# Notice: Class[App::Nginx]: Would have triggered 'refresh' from 1 event
Reviewing that no-op diff confirms only the intended node-specific
override changes, the same "review before it's live" discipline as
ansible-playbook --check --diff, before the change is merged and
picked up by web-prod-01's next scheduled Puppet agent run (and
propagated to the rest of the web-prod node group on their own
schedules, batch-verified via PuppetDB report staleness rather than a
single fleet-wide push).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin iac-automation-skills14 skills in this plugin
/ansible-playbook-and-role-designDesigns and safely runs Ansible playbooks, roles, and inventories for configuration management, including idempotent task design, Ansible Vault for secrets, and choosing config-management (Ansible) versus provisioning (Terraform/CloudFormation) for a given change. Use when the user asks to "write an Ansible playbook/role for X," "structure an Ansible inventory across environments," "make this task idempotent," "encrypt secrets with Ansible Vault," "dry-run a playbook before production," or "should this be Ansible or Terraform."
/aws-cloudformation-templatesAuthors and safely operates AWS CloudFormation templates (YAML/JSON), including stacks, change sets, nested and cross-stack references, StackSets for multi-account/multi-region deployment, and drift detection. Use when the user asks to "write a CloudFormation template for X," "structure nested CloudFormation stacks," "deploy the same stack across AWS accounts/regions," "review a CloudFormation change set before applying," "detect/reconcile drift on a stack," or "migrate/compare CloudFormation with Terraform" for an AWS-native IaC choice.
Other plugins' skills for the same job