dparv
(Diko Parvanov)
13 March 2024 14:46
1
As stated in the official documents Juju | Command 'bootstrap' --config cloudinit-userdata is a valid option when bootstrapping a controller, however trying to do so, results in this:
juju bootstrap cloudinit-userdata=cloudinit-userdata.yaml
ERROR cloudinit-userdata: must be valid YAML: yaml: unmarshal errors:
line 1: cannot unmarshal !!str `cloudin...` into map[string]interface {}
File cloudinit-userdata.yaml
contains:
cloudinit-userdata: |
postruncmd:
- curl -fsSL https://tailscale.com/install.sh | sh
dparv
(Diko Parvanov)
13 March 2024 19:47
2
For anyone interested, how it works is:
--config ./cloudinit-userdata.yaml
rather than:
--config cloudinit-userdata=cloudinit-userdata.yaml
hmlanigan
(Heather Lanigan)
13 March 2024 19:53
3
Additional detail about cloudinit-userdata
model config can be found here:
Configuration > List of model configuration keys > cloudinit-userdata
This document describes the cloudinit-userdata model configuration key.
Key
Type
Default
Valid values
Purpose
cloudinit-userdata
string
“”
Cloud-init user-data (in yaml format) to be added to userdata for new machines created in this model.
This is a sharp knife feature - be careful with it.
The cloudinit-userdata allows the user to provide additional cloudinit data to be included in the cloudinit data…