if i trap the ephemeral boot image (ubuntu). cd into /curtin and run /var/lib/cloud/instance/scripts/part-001 it outputs:
```
./bin/curtin --install-deps install --config=configs/config-000.cfg --config=configs/config-001.cfg --config=configs/config-002.cfg --config=configs/config-003.cfg --config=configs/config-004.cfg --config=configs/config-005.cfg --config=configs/config-006.cfg http://192.168.50.10:5248/images/custom/amd64/generic/debian1080/uploaded/root-tgz
```
In the /curtin/config/* files i can see the config from get-curtin-config.
how can i confirm cloudinit.postinstall exists in the target image?
i believe the maas config is sent to the image. here is the output from the maas server:
``` sources_ list: false 192.168. 50.10:8000/ deb.debian. org/debian buster main
#maas admin machine get-curtin-config ykfy3r
Success.
Machine-readable output follows:
apt:
preserve_
proxy: http://
sources_list: 'deb http://
deb-src http:// deb.debian. org/debian buster main
deb http:// security. debian. org/debian- security buster/updates main
deb-src http:// security. debian. org/debian- security buster/updates main
' cloud-config: config\ ndatasource: \n MAAS:\n consumer_key: X7HqXFtzruufCcf jnF\n\ localhost: 5240/MAAS/ metadata/\n token_key: M7VUBVr5KQwgVH3 QZZ\n\ tMwA8YyYtFzhpkG HL\n" cloud.cfg. d/90_maas_ cloud_config. cfg cloud.cfg. d/90_maas_ datasource. cfg config\ nreporting: \n maas:\n consumer_key: X7HqXFtzruufCcf jnF\n\ localhost: 5240/MAAS/ metadata/ status/ ykfy3r\n token_key:\ QZZ\n token_secret: 8tJ8wUJNp6HxKSE tMwA8YyYtFzhpkG HL\n \ cloud.cfg. d/90_maas_ cloud_init_ reporting. cfg config\ nsnappy: \n email: <email address hidden>\n" cloud.cfg. d/90_maas_ ubuntu_ sso.cfg datasources multiselect MAAS
cloudconfig:
maas-
content: "#cloud-
\ metadata_url: http://
\ token_secret: 8tJ8wUJNp6HxKSE
path: /etc/cloud/
maas-datasource:
content: 'datasource_list: [ MAAS ]'
path: /etc/cloud/
maas-reporting:
content: "#cloud-
\ endpoint: http://
\ M7VUBVr5KQwgVH3
\ type: webhook\n"
path: /etc/cloud/
maas-ubuntu-sso:
content: "#cloud-
path: /etc/cloud/
debconf_selections:
grub2: grub2 grub2/update_nvram boolean false
maas: 'cloud-init cloud-init/
cloud-init cloud-init/ maas-metadata- url string http:// localhost: 5240/MAAS/ metadata/
cloud-init cloud-init/ maas-metadata- credentials string oauth_consumer_ key=X7HqXFtzruu fCcfjnF& oauth_token_ key=M7VUBVr5KQw gVH3QZZ& oauth_token_ secret= 8tJ8wUJNp6HxKSE tMwA8YyYtFzhpkG HL
cloud-init cloud-init/ local-cloud- config string manage_etc_hosts: true\nmanual_ cache_clean: nreporting: \n maas:\n consumer_key: X7HqXFtzruufCcf jnF\n endpoint: localhost: 5240/MAAS/ metadata/ status/ ykfy3r\n token_key: M7VUBVr5KQwgVH3 QZZ\n token_secret: xKSEtMwA8YyYtFz hpkGHL\ n type: webhook\n
true\
http://
8tJ8wUJNp6H
' logs.tar logs.tar cloud.cfg. d/90_dpkg. cfg' localhost: 5240/MAAS/ metadata/ latest/ by-id/ykfy3r/ nameservers: commands: localhost: 5240/MAAS/ metadata/ status/ ykfy3r tMwA8YyYtFzhpkG HL 1706-415d- 9c5e-b0b4aafdfe 8f 4fed-44d5- a7b0-9494e11c4e cb 50db-4345- b07d-6d3024e29a 43 d7a9-455a- a167-40845148af 3c keys:\n - ecdsa-sha2- nistp521\ oYTItbmlzdHA1Mj EAAAAIbmlzdHA1M jEAAACFBADGl/ XFwwwDam1MoyQ3v mfJxaJVRx8ut7uO liGeUt/ WzPytO2sx2QRsKx Lt/tPnRbj4gJIMH 2vhM0QwB1FEsrib SAGOwd0bQuCGSpN 9Vh+wPsp7xVoiOB 5MWDgQGagmSY6Xu bnWP0pVfUd+ 78dJLg9ZDAHXOJl VzGHJX8jeslpJo3 MIbw==\ C02XC3C7JG5L\ n" cloud.cfg. d/00-users. cfg
install:
error_tarfile: /tmp/curtin-
log_file: /tmp/install.log
post_files:
- /tmp/install.log
- /tmp/curtin-
kernel:
fallback-package: linux-image-amd64
package: linux-image-amd64
late_commands:
datasource:
- curtin
- in-target
- --
- sh
- -c
- 'echo "datasource_list: [ MAAS ]" > /etc/cloud/
maas:
- wget
- --no-proxy
- http://
- --post-data
- op=netboot_off
- -O
- /dev/null
network:
config:
- id: ens33
mac_address: 00:0c:29:d7:99:89
mtu: 1500
name: ens33
subnets:
- address: 192.168.50.34/24
dns_
- 192.168.50.10
- 8.8.8.8
dns_search: &id001
- maas
type: static
type: physical
- address:
- 192.168.50.10
search: *id001
type: nameserver
version: 1
network_commands:
builtin:
- curtin
- net-meta
- custom
partitioning_
builtin:
- curtin
- block-meta
- custom
reporting:
maas:
consumer_key: X7HqXFtzruufCcfjnF
endpoint: http://
token_key: M7VUBVr5KQwgVH3QZZ
token_secret: 8tJ8wUJNp6HxKSE
type: webhook
showtrace: true
storage:
config:
- grub_device: true
id: sda
name: sda
path: /dev/sda
ptable: gpt
type: disk
wipe: superblock
- device: sda
flag: bios_grub
id: sda-part1
number: 1
offset: 4194304B
size: 1048576B
type: partition
wipe: zero
- device: sda
flag: boot
id: sda-part2
name: sda-part2
number: 2
size: 536870912B
type: partition
uuid: 09527817-
wipe: superblock
- device: sda
id: sda-part3
name: sda-part3
number: 3
size: 20929576960B
type: partition
uuid: 6408531a-
wipe: superblock
- fstype: fat32
id: sda-part2_format
label: efi
type: format
uuid: c57cc8ab-
volume: sda-part2
- fstype: ext4
id: sda-part3_format
label: root
type: format
uuid: 06244900-
volume: sda-part3
- device: sda-part3_format
id: sda-part3_mount
path: /
type: mount
- device: sda-part2_format
id: sda-part2_mount
path: /boot/efi
type: mount
version: 1
verbosity: 3
write_files:
userconfig:
content: "groups:\n - docker\nusers:\n - default\n - name: buster\n gecos:\
\ Service Operator\n primary_group: myuser\n groups: [docker,sudo]\n \
\ lock_passwd: false\n sudo: ALL=(ALL) NOPASSWD:ALL\n plain_text_passwd:\
\ buster\n shell: /bin/bash\n ssh_authorized_
\ AAAAE2VjZHNhLXN
\ chrisnorman@
path: /etc/cloud/
```
if i trap the ephemeral boot image (ubuntu). cd into /curtin and run /var/lib/ cloud/instance/ scripts/ part-001 it outputs: configs/ config- 000.cfg --config= configs/ config- 001.cfg --config= configs/ config- 002.cfg --config= configs/ config- 003.cfg --config= configs/ config- 004.cfg --config= configs/ config- 005.cfg --config= configs/ config- 006.cfg http:// 192.168. 50.10:5248/ images/ custom/ amd64/generic/ debian1080/ uploaded/ root-tgz
```
./bin/curtin --install-deps install --config=
```
In the /curtin/config/* files i can see the config from get-curtin-config.
how can i confirm cloudinit. postinstall exists in the target image?