agentleFS
Microsoft AzureKnown publisherAzure/sap-automation/skills/sdaf-sap-system/SKILL.md

sdaf-sap-system

Skill145 starsChanged 3 months agoMITView on GitHub

Deploy SDAF SAP system infrastructure (VMs, disks, load balancers, HA inputs) after the workload zone exists. Drives `installer.sh --type sap_system` per `docs/local/05-00-sap-system.md § Run`, reviews replacement risk, and validates the generated `<SID>_hosts.yaml` / `sap-parameters.yaml`. Use when a user says "deploy an SAP system", "run installer.sh sap_system", "SAP system infrastructure", "generate the SAP system inventory". Do NOT use for OS/DB/SAP install (`sdaf-sap-installation`), workload zone (see sdaf-workload-zone), or software download (`sdaf-media-acquisition`).

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do NOT trigger on: control plane, workload zone, software download, install, removal.

    line 27
  2. Very specific:

    Do not delete .progress markers to force a rerun (docs/local/06-00-software-and-installation.md § Safe retry).

    line 88
  3. Distinctive:

    Do not deploy before the workload zone exists.

    line 94
  4. Very specific:

    Do not pass --auto-approve (docs/local/05-00-sap-system.md § Review before execution).

    line 95
  5. Distinctive:

    Does not run OS / DB / SAP installation playbooks.

    line 103
  6. Distinctive:

    Does not download SAP media.

    line 104
  7. Distinctive:

    Does not tear down or repair state.

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SDAF SAP System

Action-loop skill. Deploys the SAP-system infrastructure strictly per docs/local/05-00-sap-system.md. Installation of OS + DB + SAP is a separate concern owned by sdaf-sap-installation.

When to invoke

Trigger on: "deploy an SAP system", "run installer.sh sap_system", "SAP system infra", "generated hosts.yaml", "generated sap-parameters.yaml".

Do NOT trigger on: control plane, workload zone, software download, install, removal.

Preconditions

  • Workload zone deployed (docs/local/05-00-sap-system.md § Before you begin; SAP system reads deployer + landscape remote state per § What the automation does).
  • SYSTEM tfvars prepared under the documented WORKSPACES layout — see sdaf-workspace-and-tfvars.
  • Host quota / image / topology reviewed (docs/local/05-00-sap-system.md § Before you begin, § Inputs).

Recipe

Step 1 — Review replacement risk

Re-read the SYSTEM tfvars once, checking for anything that will cause a resource replacement (docs/local/05-00-sap-system.md § Review before execution; see also docs/local/troubleshooting.md § Terraform proposes unexpected replacement).

Step 2 — Run the documented installer

From the system parameter directory, exactly per docs/local/05-00-sap-system.md § Run:

set -e
cd "$CONFIG_REPO_PATH/WORKSPACES/SYSTEM/<SAP_SYSTEM>"
ARM_SUBSCRIPTION_ID="<WORKLOAD_SUBSCRIPTION_ID>" \
"$SAP_AUTOMATION_REPO_PATH/deploy/scripts/installer.sh" \
    --type sap_system \
    --parameterfile "<SAP_SYSTEM>.tfvars" \
    --control_plane_name "<CONTROL_PLANE>" \
    --deployer_tfstate_key "<DEPLOYER_STATE_KEY>" \
    --landscape_tfstate_key "<LANDSCAPE_STATE_KEY>" \
    --storageaccountname "<STATE_STORAGE_ACCOUNT>" \
    --state_subscription "<STATE_SUBSCRIPTION_ID>" || {
  rc=$?
  echo "SAP system exit=$rc — route to sdaf-failure-triage"
  exit "$rc"
}

Step 3 — Validate

docs/local/05-00-sap-system.md § Validate and § Outcome:

  • SAP-system infra deployed.
  • Generated <SID>_hosts.yaml and sap-parameters.yaml exist (docs/local/05-00-sap-system.md § Validate, § Outcome).
  • Config and metadata uploaded to the state account's tfvars container (§ What the automation does).

If the run fails

Route to sdaf-failure-triage. Stage-owned preventive checks (kept here rather than in triage):

  • Filename / directory / basename mismatch — fix before rerun (docs/local/troubleshooting.md § A parameter file is not found).
  • Do not delete .progress markers to force a rerun (docs/local/06-00-software-and-installation.md § Safe retry).

Hard rules

  • Documented behaviour only (D19).
  • Do not deploy before the workload zone exists.
  • Do not pass --auto-approve (docs/local/05-00-sap-system.md § Review before execution).
  • Repo-wide rules apply: do not run terraform fmt and follow the Terraform / Ansible / Python guidance in .github/copilot-instructions.md.

What this skill does NOT do

  • Does not run OS / DB / SAP installation playbooks.
  • Does not download SAP media.
  • Does not tear down or repair state.

See also

  • sdaf-workload-zone, sdaf-workspace-and-tfvars, sdaf-bom-selection, sdaf-media-acquisition, sdaf-sap-installation, sdaf-state-management, sdaf-plan-and-test-semantics, sdaf-failure-triage.
  • docs/local/05-00-sap-system.md, docs/local/troubleshooting.md, .github/copilot-instructions.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.