Skip to content

Commit

Permalink
Add unattended installation with ext4 and xfs
Browse files Browse the repository at this point in the history
Add unattended installation with ext4 and xfs.
  • Loading branch information
chcao committed Jan 20, 2025
1 parent 59328dd commit 18c775f
Show file tree
Hide file tree
Showing 11 changed files with 236 additions and 0 deletions.
38 changes: 38 additions & 0 deletions data/yam/agama/auto/sle_root_filesystem_ext4.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
product: {
id: '{{AGAMA_PRODUCT_ID}}',
registrationCode: '{{SCC_REGCODE}}'
},
user: {
fullName: 'Bernhard M. Wiedemann',
password: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',
hashedPassword: true,
userName: 'bernhard'
},
root: {
password: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',
hashedPassword: true
},
storage: {
drives: [
{
partitions: [
{ generate: 'default' },
{ filesystem: { path: '/', type: 'ext4' } }
]
}
]
},
scripts: {
post: [
{
name: 'enable root login',
chroot: true,
body: |||
#!/usr/bin/env bash
echo 'PermitRootLogin yes' > /etc/ssh/sshd_config.d/root.conf
|||
}
]
}
}
38 changes: 38 additions & 0 deletions data/yam/agama/auto/sle_root_filesystem_xfs.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
product: {
id: '{{AGAMA_PRODUCT_ID}}',
registrationCode: '{{SCC_REGCODE}}'
},
user: {
fullName: 'Bernhard M. Wiedemann',
password: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',
hashedPassword: true,
userName: 'bernhard'
},
root: {
password: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',
hashedPassword: true
},
storage: {
drives: [
{
partitions: [
{ generate: 'default' },
{ filesystem: { path: '/', type: 'xfs' } }
]
}
]
},
scripts: {
post: [
{
name: 'enable root login',
chroot: true,
body: |||
#!/usr/bin/env bash
echo 'PermitRootLogin yes' > /etc/ssh/sshd_config.d/root.conf
|||
}
]
}
}
13 changes: 13 additions & 0 deletions schedule/yam/agama_non_default_root_filesystem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: agama unattended installation with non default root filesystem
description: >
Perform agama unattended installation with non default root filesystem.
schedule:
- yam/agama/boot_agama
- yam/agama/agama_auto
- installation/grub_test
- installation/first_boot
- console/validate_partition_table
- console/validate_blockdevices
- console/validate_free_space
- console/validate_read_write
14 changes: 14 additions & 0 deletions schedule/yam/agama_non_default_root_filesystem_ppc64le.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: agama unattended installation with non default root filesystem
description: >
Perform agama unattended installation with non default root filesystem.
schedule:
- yam/agama/boot_agama
- yam/agama/patch_agama_tests
- yam/agama/agama
- installation/grub_test
- installation/first_boot
- console/validate_partition_table
- console/validate_blockdevices
- console/validate_free_space
- console/validate_read_write
15 changes: 15 additions & 0 deletions schedule/yam/agama_non_default_root_filesystem_s390x.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: agama unattended installation with non default root filesystem
description: >
Perform agama unattended installation with non default root filesystem.
schedule:
- yam/agama/boot_agama
- yam/agama/patch_agama_tests
- yam/agama/agama
- boot/reconnect_mgmt_console
- installation/grub_test
- installation/first_boot
- console/validate_partition_table
- console/validate_blockdevices
- console/validate_free_space
- console/validate_read_write
17 changes: 17 additions & 0 deletions test_data/yam/agama_ext4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
disks:
- name: vda
table_type: gpt
allowed_unpartitioned: 0.00GB
partitions:
- name: vda2
formatting_options:
filesystem: swap
mounting_options:
mount_point: SWAP
- name: vda3
formatting_options:
filesystem: ext4
mounting_options:
should_mount: 1
mount_point: /
17 changes: 17 additions & 0 deletions test_data/yam/agama_ext4_s390x.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
disks:
- name: vda
table_type: gpt
allowed_unpartitioned: 0.00GB
partitions:
- name: vda1
formatting_options:
filesystem: swap
mounting_options:
mount_point: SWAP
- name: vda2
formatting_options:
filesystem: ext4
mounting_options:
should_mount: 1
mount_point: /
17 changes: 17 additions & 0 deletions test_data/yam/agama_ext4_spvm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
disks:
- name: sda
table_type: gpt
allowed_unpartitioned: 0.00GB
partitions:
- name: sda2
formatting_options:
filesystem: swap
mounting_options:
mount_point: SWAP
- name: sda3
formatting_options:
filesystem: ext4
mounting_options:
should_mount: 1
mount_point: /
24 changes: 24 additions & 0 deletions test_data/yam/agama_xfs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
disks:
- name: vda
table_type: gpt
allowed_unpartitioned: 0.00GB
partitions:
- name: vda2
role: swap
partition_type: primary
formatting_options:
should_format: 1
filesystem: swap
mounting_options:
should_mount: 1
mount_point: SWAP
- name: vda3
role: operating-system
partition_type: primary
formatting_options:
should_format: 1
filesystem: xfs
mounting_options:
should_mount: 1
mount_point: /
24 changes: 24 additions & 0 deletions test_data/yam/agama_xfs_s390x.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
disks:
- name: vda
table_type: gpt
allowed_unpartitioned: 0.00GB
partitions:
- name: vda1
role: swap
partition_type: primary
formatting_options:
should_format: 1
filesystem: swap
mounting_options:
should_mount: 1
mount_point: SWAP
- name: vda2
role: operating-system
partition_type: primary
formatting_options:
should_format: 1
filesystem: xfs
mounting_options:
should_mount: 1
mount_point: /
19 changes: 19 additions & 0 deletions test_data/yam/agama_xfs_spvm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
guided_partitioning:
filesystem_options:
root_filesystem_type: xfs
disks:
- name: sda
table_type: gpt
allowed_unpartitioned: 0.00GB
partitions:
- name: sda2
formatting_options:
filesystem: swap
mounting_options:
mount_point: SWAP
- name: sda3
formatting_options:
filesystem: xfs
mounting_options:
mount_point: /

0 comments on commit 18c775f

Please sign in to comment.