Skip to content

Commit

Permalink
doc: configure cloud-init from a file
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Pons <[email protected]>
  • Loading branch information
elenapons committed May 7, 2024
1 parent 04e0483 commit f7d0330
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/cloud-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,21 @@ Then send the following request:
}
}'

### Configure `cloud-init` through the CLI

If you are using the CLI to configure your instance, write the configuration to a file and include that in your request.
For example, create `cloud-init.yml` with the following content:

#cloud-config
package_upgrade: true
packages:
- package1
- package2

Then send the following request:

lxc config set <instance_name> cloud-init.user-data - < ~cloud-init.yml

## How to check the `cloud-init` status

`cloud-init` runs automatically on the first start of an instance.
Expand Down

0 comments on commit f7d0330

Please sign in to comment.