Skip to content

Commit

Permalink
Merge pull request #13455 from elenapons/main-doc-issue-63
Browse files Browse the repository at this point in the history
doc: configure cloud-init from a file
  • Loading branch information
tomponline committed May 17, 2024
2 parents a564550 + 03972a2 commit d7b8a9f
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 run the following command:

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 d7b8a9f

Please sign in to comment.