Skip to content
This repository was archived by the owner on Feb 12, 2021. It is now read-only.

Commit 62957d0

Browse files
committed
ignition,os: add info string to a few code fences
1 parent 6666cd8 commit 62957d0

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

ignition/metadata.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Each of these examples is written in version 2.0.0 of the config. Ensure that an
88

99
This config will write a systemd drop-in (shown below) for the etcd2.service. The drop-in modifies the ExecStart option, adding a few flags to etcd2's invocation. These flags use variables defined by coreos-metadata.service to change the interfaces on which etcd2 listens. coreos-metadata is provided by Container Linux and will read the appropriate metadata for the cloud environment (AWS in this example) and write the results to `/run/metadata/coreos`. For more information on the supported platforms and environment variables, refer to the [coreos-metadata README][metadata-readme].
1010

11-
```json
11+
```json ignition-config
1212
{
1313
"ignition": { "version": "2.0.0" },
1414
"systemd": {
@@ -26,7 +26,7 @@ This config will write a systemd drop-in (shown below) for the etcd2.service. Th
2626

2727
### metadata.conf
2828

29-
```
29+
```ini
3030
[Unit]
3131
Requires=coreos-metadata.service
3232
After=coreos-metadata.service
@@ -48,7 +48,7 @@ When Container Linux is used outside of a supported cloud environment (for examp
4848

4949
This config will write a single service unit with the contents of a metadata agent service (shown below). This unit will not start on its own, because it is not enabled and is not a dependency of any other units. This metadata agent will fetch instance metadata from EC2 and save it to an ephemeral file.
5050

51-
```json
51+
```json ignition-config
5252
{
5353
"ignition": { "version": "2.0.0" },
5454
"systemd": {
@@ -62,7 +62,7 @@ This config will write a single service unit with the contents of a metadata age
6262

6363
### metadata.service
6464

65-
```
65+
```ini
6666
[Unit]
6767
Description=EC2 metadata agent
6868

ignition/network-configuration.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Each of these examples is written in version 2.0.0 of the config. Ensure that an
88

99
In this example, the network interface with the name "eth0" will be given the IP address 10.0.1.7. A typical interface will need more configuration and may use all of the options of a [network unit][network].
1010

11-
```json
11+
```json ignition-config
1212
{
1313
"ignition": { "version": "2.0.0" },
1414
"networkd": {
@@ -22,7 +22,7 @@ In this example, the network interface with the name "eth0" will be given the IP
2222

2323
This configuration will instruct Ignition to create a single network unit named "00-eth0.network" with the contents:
2424

25-
```
25+
```ini
2626
[Match]
2727
Name=eth0
2828

@@ -51,7 +51,7 @@ This format can be specified multiple times to apply unique static configuration
5151

5252
In this example, all of the network interfaces whose names begin with "eth" will be bonded together to form "bond0". This new interface will then be configured to use DHCP.
5353

54-
```json
54+
```json ignition-config
5555
{
5656
"ignition": { "version": "2.0.0" },
5757
"networkd": {

os/booting-on-vmware.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ guestinfo.coreos.config.data.encoding = "base64"
142142
143143
This example will be decoded into:
144144
145-
```json
145+
```json ignition-config
146146
{
147147
"ignition": { "version": "2.0.0" }
148148
}

os/provisioning.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $ ct --platform=ec2 < example.yml
8383

8484
This time, `ct` successfully runs and produces the following Ignition Config:
8585

86-
```ignition-config
86+
```json ignition-config
8787
{
8888
"ignition": { "version": "2.0.0" },
8989
"systemd": {

0 commit comments

Comments
 (0)