action #57326
closed[SLE][Migration][SLE12SP5][Improvement]: using setting instead of fix value in AY file
100%
Description
Base rodion's comments, we can using setting instead of fix value in AY file.
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8479
We can using 390 file for first try.
Updated by tinawang123 almost 4 years ago
- Status changed from New to Workable
- % Done changed from 0 to 70
It can be used like:
/usr/share/openqa/script/clone_job.pl --from http://openqa.suse.de --host http://openqa.suse.de 3452846 --skip-download --apikey 027124EEEF43FE4A --apisecret EDBA926F3182D8BF AY_EXPAND_VARS=SCC_URL,LOADER_TYPE SCC_URL=http://migration-smt.suse.de _GROUP=0
autoyast profile:
https://openqa.suse.de/tests/3471371/file/autoyast_profile.xml
Updated by tinawang123 almost 4 years ago
- Status changed from Workable to In Progress
Updated by tinawang123 almost 4 years ago
Add Rodin's comments:
yutao wang Now I think I got it, the only trick you could do is trying to set some urls to empty string
yutao wang But I'm not sure if that's going to work. Alternative would be to inject whole section, so your injected variable will contain xml tags too, e.g.
URL_PART1='url1url2'' and URL_PART2='url3
but that will be less transparent
Updated by tinawang123 almost 4 years ago
I have tested the profile like:
"""
{{URL1}}
{{URL2}}
"""
AY_EXPAND_VARS=URL1,URL2
URL1=http://dist.suse.de/install/SLP/SLE-12-SP5-Live-Patching-LATEST/x86_64/DVD1/
URL2=http://dist.suse.de/install/SLP/SLE-12-SP5-WE-LATEST/x86_64/DVD1/
And:
AY_EXPAND_VARS=URL1,URL2
URL1=http://dist.suse.de/install/SLP/SLE-12-SP5-Live-Patching-LATEST/x86_64/DVD1/
URL2=
https://openqa.suse.de/tests/3482015/file/autoyast_profile.xml
It can work.
I think we can use this method to reuse our autoyast profile
Updated by tinawang123 almost 4 years ago
- Status changed from In Progress to Resolved
- % Done changed from 70 to 100
As finished research, close this ticket