Skip to content

Commit

Permalink
provisioning-gcp: Mention user-data
Browse files Browse the repository at this point in the history
This was not obvious to me.
  • Loading branch information
cgwalters authored and jlebon committed Mar 15, 2023
1 parent 1d30ca7 commit d33f40e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/ROOT/pages/provisioning-gcp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ You now should be able to SSH into the instance using the associated IP address.
ssh core@<ip address>
----

In order to launch a customized FCOS instance, a valid Ignition configuration must be passed as user-data at creation time:

In order to launch a customized FCOS instance, a valid Ignition configuration must be passed as metadata under the
`user-data` key at creation time. In the web console, this is available under the Management section.
From the command-line, use `--metadata-from-file`:

.Launching and customizing a new instance
[source, bash]
Expand All @@ -71,3 +74,4 @@ gcloud compute instances create --metadata-from-file "user-data=${CONFIG}" --ima
----

NOTE: By design, https://cloud.google.com/compute/docs/startupscript[startup scripts] are not supported on FCOS. Instead, it is recommended to encode any startup logic as systemd service units in the Ignition configuration.
Again, note you need to use the `user-data` key for Ignition; it will also not work to paste Ignition into this field in the web console.

0 comments on commit d33f40e

Please sign in to comment.