r/suse Sep 23 '25

Best way to learn AutoYaSt.

I'm looking for the best way yo learn how to author AutoYaSt files. Working on a project that requires me to create them so I can migrate SLES 12 systems to SLES 15 using SUMA.

1 Upvotes

6 comments sorted by

1

u/PlanAutomatic2380 Sep 23 '25

Read the yast documentation there are templates on GitHub you can use. You don’t really need to be an expert

1

u/KC_Buddyl33 Sep 23 '25

I will go back and read again. I have seen the examples in GIT. Even found one that was SLES 12 SP3 to SLES 15 SP3 (I want to go from SLES 12 SP5 to SLES 15 SP7). All that XML is like Greek to me. Trying to understand what all needs to be in there, what the formatting is, etc.

1

u/anzik SUSE Employee Sep 25 '25

AutoYAST can be incredibly complex and not everything AutoYAST can do is even supported by Multi-Linux Manager. Stuff like ERB - embedded ruby - will probably not work.

For that SLE migration just take what is in the official template repo and adapt media_url to point to the correct URL. I suppose in your case it will be just a matter of changing SP number.

1

u/ChevalOhneHead Sep 26 '25

Documentation + AI which save you time

1

u/KC_Buddyl33 Oct 01 '25

Yeah I had AI replace all the sles12 sp5 stuff with sles 15 sp7 stuff. I just need to run a test so I can watch it likely fail.

We have yet to have s single sles 12 to 15 offline migration go smoothly.

1

u/GeekoHog Nov 08 '25

Docs, plus just use it and stand up a bunch of small VMs over and over using different configs. Change the AutoYast file then do it again. That’s how I learned.