Skip to content

Commit 52cbd89

Browse files
authored
Merge pull request os-autoinst#23679 from rfan1/sle16_mu_gnome
Create dynamic agama profile to support pattern=gnome
2 parents c2d8f5d + 5420190 commit 52cbd89

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
local repo = '{{INCIDENT_REPO}}';
2+
local urls = std.split(repo, ',');
3+
{
4+
product: {
5+
id: '{{AGAMA_PRODUCT_ID}}',
6+
registrationCode: '{{SCC_REGCODE}}',
7+
addons: [
8+
{
9+
id: 'PackageHub',
10+
}
11+
]
12+
},
13+
bootloader: {
14+
stopOnBootMenu: true,
15+
},
16+
user: {
17+
fullName: 'Bernhard M. Wiedemann',
18+
password: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',
19+
hashedPassword: true,
20+
userName: 'bernhard'
21+
},
22+
root: {
23+
password: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',
24+
hashedPassword: true
25+
},
26+
software: {
27+
packages: [],
28+
patterns: {
29+
add: ['gnome']
30+
},
31+
extraRepositories:
32+
if repo != '' then
33+
[
34+
{
35+
alias: 'TEST_' + std.toString(i),
36+
url: urls[i],
37+
allowUnsigned: true
38+
}
39+
for i in std.range(0, std.length(urls) -1)
40+
]
41+
else
42+
[],
43+
onlyRequired: false
44+
},
45+
questions: {
46+
policy: 'auto',
47+
answers: [
48+
{
49+
answer: 'Trust',
50+
class: 'software.import_gpg'
51+
}
52+
]
53+
},
54+
scripts: {
55+
post: [
56+
{
57+
name: 'enable sshd',
58+
chroot: true,
59+
content: |||
60+
#!/usr/bin/env bash
61+
systemctl enable sshd
62+
|||
63+
}
64+
]
65+
}
66+
}

lib/autoyast.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,8 @@ sub expand_variables {
715715
AGAMA_PRODUCT_ID OSDISK SUT_NETDEVICE
716716
REPO_SLE_MODULE_DEVELOPMENT_TOOLS SCC_REGCODE_LIVE MIRROR_HTTP);
717717
if (is_agama && get_var('STAGING', '')) {
718-
record_info 'Add extra repo for staging incident';
718+
# For sle16+ MU tests, we use dynamic agama file to fit different repos
719+
# see poo#188319
719720
push @vars, 'INCIDENT_REPO';
720721
}
721722
# Push more variables to expand from the job setting

0 commit comments

Comments
 (0)