Skip to content

Commit

Permalink
Fix a few of the erronoeous examples in JSON.md
Browse files Browse the repository at this point in the history
Signed-off-by: Ole Petter <[email protected]>
  • Loading branch information
oleorhagen committed Jan 9, 2024
1 parent 9178908 commit 5ab39da
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions JSON.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,24 @@ As an example, here is a local policy file module with 3 common build steps:
"description": "Local policy file added using cfbs command line",
"tags": ["local"],
"added_by": "cfbs add",
"steps": [
"copy ./policy.cf services/cfbs/policy.cf",
"policy_files ./services/cfbs/policy.cf",
"bundles my_bundle"
]
"build": [
{
"name": "cusom policy",
"description": "Custom policy basic setup",
"tags": [],
"repo": "https://github.com/cfengine/modules",
"by": "https://github.com/cfengine",
"version": "0.0.1",
"commit": "ca637d4e6148432a90b7db598a4137956c0e0282",
"added_by": "cfbs add",
"steps": [
"copy ./policy.cf services/cfbs/policy.cf",
"policy_files ./services/cfbs/policy.cf",
"bundles my_bundle"
]
}
],
"git": false
}
```

Expand Down Expand Up @@ -123,7 +136,8 @@ Which creates a file like this:
"name": "Example",
"description": "Example description",
"type": "policy-set",
"build": []
"build": [],
"git": false
}
```

Expand Down

0 comments on commit 5ab39da

Please sign in to comment.