Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1564  / 1 Year ago, sun, december 18, 2022, 3:12:34

I would like to modify the images that are included in MAAS so that I can install laptops and desktops with it instead of the normal cloud images.


More From » server

 Answers
3

I'm by no means an expert on this but it appears that you can configure the preseed to add late_commands. For example, you can configure the preseed to install a package based on the hostname, and after the installation has been completed:



late_commands:
{{if node.hostname == 'node01'}}
package_install: ["curtin", "in-target", "--", "apt-get", "-y", "install", "mysql"]
{{endif}}


Note the following:



Warning



Do not try to alter the preseed files if you don’t have a good understanding of what you are doing. Altering the installed version of Ubuntu can prevent MAAS from working as intended, and may have security and stability consequences.



Source: https://maas.ubuntu.com/docs/configure.html#altering-the-preseed-file



Further reading:



http://maas.io/docs/en/installconfig-images-mirror



http://maas.io/docs/en/manage-cli-images#select-images


[#38964] Monday, December 19, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ttarum

Total Points: 417
Total Questions: 101
Total Answers: 115

Location: Maldives
Member since Wed, Nov 4, 2020
4 Years ago
ttarum questions
Sat, Aug 20, 22, 12:42, 2 Years ago
Wed, Sep 28, 22, 18:07, 2 Years ago
Mon, Feb 7, 22, 20:23, 2 Years ago
;