~bento/cloud-init

a763f31dfe4187dcaed967a1754135d626b45cb3 — Fabio Bento Luiz 1 year, 2 months ago e06dbc6 main
grammar
1 files changed, 7 insertions(+), 7 deletions(-)

M README.md
M README.md => README.md +7 -7
@@ 1,17 1,17 @@
# CloudInit with partition configuration for Ubuntu 22.04 LTS
It is possible to find some examples of CloudInit configuration on the documentation, but it can get hairy when it comes to configure the partitions and disk layout with `autoinstall`. 
# CloudInit autoinstall with partition configuration for Ubuntu 22.04 LTS
It is possible to find some examples of CloudInit configuration on the documentation, but it can get hairy when it comes to configuring the partitions and disk layout with `autoinstall`. 

In my scenario, I have some machines with 500 GB SSD and I'd like to have 20% for the OS and 80% as a raw partition without file system usin the `autoinstall` for a full unattended installation. 
In my scenario, I have some machines with 500 GB SSD and I'd like to have 20% for the OS and 80% as a raw partition with no file system using the `autoinstall` for a full unattended installation. 

After many tries, I've found a tip to do one installation manually (with a bootable pendrive for example) and do the all the partitioning configuration with the installation wizard. I will generate the `user-data` file necessary to replicate the same installation with CloudInit on the other machines. 
After many tries, I've found a tip to do a manual installtion (with a bootable pendrive for example) and do the all the partitioning configuration with the installation wizard. It will create the `user-data` file needed to replicate the same installation with CloudInit on the other machines. 

At the end of the manual installation, it will ask to reboot/proceed, **dont do that**. At the top right corner, you can find a `Help` menu where you can access a shell console. 
At the end of the manual installation, you will be asked to reboot/proceed, **dont do that**. At the top right corner, you can find a `Help` menu where you can access a shell console. 

The file `/var/log/installer/autoinstall-user-data` holds all your choices from the installation wizard in a CloudInit format (it is the `user-data` file). You can export it to a TMP file sharing like [file.io](https://www.file.io/about):
The file `/var/log/installer/autoinstall-user-data` contains all your choices from the install wizard in a CloudInit format (it is the `user-data` file). You can export it to a TMP file share such as [file.io](https://www.file.io/about):

```bash
curl -F "file=@/var/log/installer/autoinstall-user-data" https://file.io
{"success":true,"key":"2ojE41","link":"https://file.io/2ojE41","expiry":"14 days"}
```

Then you can use or adapt it to further installations.
You can then use or customize it for other installations.