Automated Archlinux installs with Foreman - Part 2
Operating System setupFirstly we need the Operation System. If you already have some Archlinux clients, this might already be done, but head over to the Operating System page:
TemplatesWe're going to need a total of 5 files to finish setting up our Arch installer - a PXElinux file, an install script, an AIF profile, a partition table, and a finish script . Be *very* careful with backslashes - AIF uses a lot of shell variables, and we need to be sure that Foreman doesn't try to interpret them.
For all five of these files, you'll need to go to the Association tab and tick "Archlinux 1.0" to associate the template with Archlinux. You can call them what you like, but if you don't use my suggested names, be sure to update the templates where it's referenced.
Firstly, we'll add a partition table to More -> Partition Tables:
As per the Troubleshooting notes, this is all set up for a machine installing to /dev/sda - you can find more examples on the Arch Wiki
Then we'll go to More -> Provisioning Templates and create the following four files:
Be sure to check through those files for IP addresses that need to be altered for your environment - there are quite a few. In the PXELinux template, change the ONTIMEOUT parameter to arch_http if you're using the HTTP boot method from page 1.
Now go back to the Operating System page, and edit "Archlinux 1.0". Ensure the correct Partition Table and Installation Mirror is ticked on the first page. Now go to the Templates tab, and assign the templates to the OS:
Build a Host
Troubleshooting / Notes
Any issues, please do report them in the comments and I'll update accordingly.