Skip to content

Commit 6aace97

Browse files
Wrapped code block's files with curly braces
Signed-off-by: Ihor Aleksandrychiev <ihor.aleksandrychiev@northern.tech>
1 parent 8bb78cc commit 6aace97

34 files changed

+61
-61
lines changed

cheatsheet.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ These two blocks will be joined into one element on the UI.
276276
You can specify file name of the code block by adding `[file=Name of the file]` in the first line.
277277
This line won't be shown in the resulting HTML (it will be converted to the heading / frame).
278278

279-
```cf3 file=policy.cf
279+
```cf3 {file="policy.cf"}
280280
bundle agent hello_world
281281
{
282282
meta:

examples.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Go back into vi by typing "vi" at the prompt. Then type ```i``` to insert
106106
__body common control__ to `hello_world.cf`. Place it above __bundle agent hello_world__, as
107107
shown in the following example:
108108

109-
```cf3 file=hello_world.cf
109+
```cf3 {file="hello_world.cf"}
110110
body common control
111111
{
112112
bundlesequence => { "hello_world" };
@@ -135,7 +135,7 @@ notice: R: Hello World!
135135
**Note:** It may be necessary to add a reference to the standard library within the body common control section, and remove the `bundlesequence` line.
136136
Example:
137137

138-
```cf3 file=hello_world.cf
138+
```cf3 {file="hello_world.cf"}
139139
body common control
140140
{
141141
inputs => {
@@ -155,7 +155,7 @@ Again type "vi" then "Enter" then ```i``` to insert the following:
155155

156156
Add it before __body common control__, as shown below:
157157

158-
```cf3 file=hello_world.cf
158+
```cf3 {file="hello_world.cf"}
159159
#!/var/cfengine/bin/cf-agent --no-lock
160160
body common control
161161
{

examples/example-snippets/promise-patterns/example_ssh_keys.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ the [Masterfiles Policy Framework][Masterfiles Policy Framework]. The
1414
you do not have a `def.json` in the root of your masterfiles directory
1515
simply create it with the following content.
1616

17-
```json file=def.json
17+
```json {file="def.json"}
1818
{
1919
"classes": {
2020
"services_autorun": [ "any" ]

examples/tutorials/custom_inventory.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ information we will write an inventory policy to report that information.
4646
Create `/var/cfengine/masterfiles/services/tutorials/inventory/owner.cf` with the
4747
following content:
4848

49-
```cf3 file=owner.cf
49+
```cf3 {file="owner.cf"}
5050
bundle agent tutorials_inventory_owner
5151
# @brief Inventory Owner information
5252
# @description Inventory owner information from `/vagrant/inventory_owner.csv`.

examples/tutorials/distribute-files-from-a-central-location.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ These variables provide path definitions for storing and deploying patches.
4747

4848
Add the following variable information to the `masterfiles/def.cf` file:
4949

50-
```cf3 file=def.cf
50+
```cf3 {file="def.cf"}
5151
"dir_patch_store"
5252
string => "/storage/patches",
5353
comment => "Define patch files source location",
@@ -74,7 +74,7 @@ promise type in a `server` bundle. The default access rules defined by the MPF (
7474

7575
There is no need to modify the vendored policy, instead define your own server bundle. For our example, add the following to `services/main.cf`:
7676

77-
```cf3 file=main.cf
77+
```cf3 {file="main.cf"}
7878
bundle server my_access_rules
7979
{
8080
access:
@@ -93,7 +93,7 @@ use is a good idea. This information is stored in a custom library.
9393

9494
Create a custom library called `lib/custom/files.cf`. Add the following content:
9595

96-
```cf3 file=files.cf
96+
```cf3 {file="files.cf"}
9797
bundle agent sync_from_policyserver(source_path, dest_path)
9898
# @brief Sync files from the policy server to the agent
9999
#
@@ -118,7 +118,7 @@ policy by services.
118118

119119
Create `services/patching.cf` with the following content:
120120

121-
```cf3 file=patching.cf
121+
```cf3 {file="patching.cf"}
122122
# Patching Policy
123123
124124
bundle agent patching

examples/tutorials/files-tutorial.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Note: The following workflow assumes the directory /home/user already exists. If
8484

8585
## Create a File
8686

87-
```cf3 file=file_create.cf
87+
```cf3 {file="file_create.cf"}
8888
bundle agent testbundle
8989
{
9090
files:
@@ -125,7 +125,7 @@ rm /home/user/test_plain.txt
125125

126126
## Delete a File
127127

128-
```cf3 file=file_delete.cf
128+
```cf3 {file="file_delete.cf"}
129129
body common control
130130
{
131131
inputs => {
@@ -191,7 +191,7 @@ ls /home/user/test_plain.txt
191191
/var/cfengine/bin/cf-agent --no-lock --file ./file_test.cf --bundlesequence list_file,list_file_2
192192
```
193193

194-
```cf3 file=file_modify.cf
194+
```cf3 {file="file_modify.cf"}
195195
body common control
196196
{
197197
inputs => {
@@ -289,7 +289,7 @@ rm /home/user/test_plain.txt
289289

290290
## Copy a file and edit its text
291291

292-
```cf3 file=file_copy.cf
292+
```cf3 {file="file_copy.cf"}
293293
body common control
294294
{
295295
inputs => {

examples/tutorials/integrating-alerts-with-pager-duty.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ touch /tmp/file-integrity
2828

2929
Insert the following policy into `/tmp/file_example.cf`
3030

31-
```cf3 file=file_example.cf
31+
```cf3 {file="file_example.cf"}
3232
bundle agent file_integrity
3333
{
3434
files:

examples/tutorials/integrating-with-sumo-logic.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ As we can see above CFEngine detected a change on `Thursday Oct 2 at 01:16:42` a
158158

159159
The policy as found in `sumologic_policy_update.cf`.
160160

161-
```cf3 file=sumo_logic_policy_update.cf
161+
```cf3 {file="sumo_logic_policy_update.cf"}
162162
bundle agent sumo_logic_policy_update
163163
{
164164
vars:

examples/tutorials/json-yaml-support-in-cfengine.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ expressions or class names.
7676

7777
Easy, right?
7878

79-
```cf3 file=json_example.cf
79+
```cf3 {file="json_example.cf"}
8080
body common control
8181
{
8282
bundlesequence => { "run" };

examples/tutorials/manage-local-users.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Create user group security and webadmin.
3030

3131
Create a file `/tmp/users.cf` with the following content:
3232

33-
```cf3 file=users.cf
33+
```cf3 {file="users.cf"}
3434
body common control
3535
{
3636
inputs => { "$(sys.libdir)/stdlib.cf" };

0 commit comments

Comments
 (0)