Skip to main content

AutoYaST support

Agama offers a mechanism to perform unattended installations. However, we would like AutoYaST users to be able to use their profiles in Agama. This document describes how Agama could support, to some extent, such profiles.

Bear in mind that it is a living document and our plans could change as we progress.

What to support

We want to point out that Agama and AutoYaST have different features. Agama is focused on the installation and delegates further configuration to other tools. From this point of view, it is clear that many of the sections you can find in an AutoYaST profile will not have an Agama counterpart.

Nevertheless, we want to cover:

  • Dynamic profiles, including rules/classes, ERB templates, pre-installation scripts and even "ask lists". See Dynamic profiles.
  • Compatibility (partial or full) for the following sections: networking, partitioning, language, timezone, keyboard, software, scripts, users, iscsi-client, proxy and suse_register. See Supported sections.

We still need to decide how to handle other sections like firewall, bootloader, report, general or even some elements from security or kdump.

Finally, we plan to "ignore" many other sections (e.g., all *-server elements) and sysconfig-like elements. See Unsupported sections.

Dynamic profiles

Many AutoYaST users rely on its dynamic capabilities to build adaptable profiles that they can use to install different systems. For that reason, we need Agama to support these features:

The most realistic way to support those features in the mid-term is to use the AutoYaST code with some adaptations. The import-autoyast-profiles branch contains a proof-of-concept that supports rules/classes, ERB and pre-installation scripts. If you are interested, you can give it a try:

cd service
sudo bundle exec bin/agama-autoyast \
file:///$PWD/test/fixtures/profiles/invalid.xml /tmp/output
cat /tmp/output/autoinst.json

You can even use the agama-cli:

cd rust
cargo build
sudo PATH=$PWD/../service/bin:$PATH ./target/debug/agama profile download \
file:///$PWD/../service/test/fixtures/profiles/pre-scripts.xml

About "ask lists", there might need more work. Fortunately, the code to parse and run the process are there but we need to adapt the user interface, which is not trivial.

Supported sections

Let's describe which sections and elements from an AutoYaST profile are (or will be) supported in Agama. In some cases, you might find a table with the following columns:

  • AutoYaST: name of the AutoYaST element.
  • Supported: whether it is (or will be) supported. The meaning of each value is:
    • Yes: fully supported.
    • Planned: not supported yet, but there are plans to support it.
    • Undecided: no decision about whether it should be supported.
    • No: there are not plans for supporting that element.
  • Agama: name of the Agama element.
  • Comment: any comment or reason about the element.

dasd and iscsi-client

Support for iSCSI and DASD devices is missing in Agama profiles. Let's work on that when adding the partitioning section equivalent.

general

AutoYaST general section contains a set of elements that, for some reason, did not find a better place. Most of those options will be ignored by Agama (e.g., cio_ignore, mode, proposals, etc.). However, we might need to add support for a handful of them.

Agama should process the ask-list section (see Supported sections), signature-handling (to deal with packages signatures) and, most probably, storage too (e.g., affects the proposal).

groups and users

Regarding users, Agama only allows defining the first user and setting the root authentication mechanism (password and/or SSH public key). However, AutoYaST allows to specify a list of users and groups plus some authentication settings. We have at least two options here:

  • Extract the root authentication data from the profile and try to infer which is the first user. This behavior is already implemented.
  • Import these sections as given because they are handled by the YaST code in Agama.
AutoYaSTSupportedAgamaComment
groupsNoIt is not planned, but we should consider
usersNoIt is not planned, but we should consider
rootRoot user (only password and SSH public key)
userFirst non-system user from "users"

For the first user, the following elements are supported:

AutoYaSTSupportedAgamaComment
authorized_keysPlannedOnly for the root user
encryptedPlanned
forenameNo
fullnameYesfullName
gidNo
groupNo
groupsNo
homeNo
home_btrfs_subvolumeNo
password_settingsNo
shellNo
surnameNo
uidNo
user_passwordYespassword
usernameYesuserName

keyboard

Only the keymap element is translated. The rest of options are ignored in YaST and they are not even documented in the AutoYaST handbook.

AutoYaSTSupportedAgamaComment
keymapYesl10n.keyboardShould we rename it to keymap?
capslockNoDeprecated
delayNoDeprecated
discapsNoDeprecated
numlockNoDeprecated
rateNoDeprecated
scrlockNoDeprecated
ttyNoDeprecated

language

AutoYaSTSupportedAgamaComment
languageYesl10n.languagesFirst element of the list
languagesYesl10n.languages

networking

The networking section in AutoYaST is composed of several sections: dns, interfaces, net-udev, routing and s390-devices. At this point, Agama only supports defining a list of connections that could correspond with the AutoYaST interfaces list. We might need to extend Agama to support dns, net-udev, etc.

AutoYaSTSupportedAgamaComment
backendNoNo plan for additional backends
dhcp_optionsNo
dnsPartialIncluded in connections
interfacesPartialconnectionsCheck the connections table below
ipv6YesIt affects method4 and method6
keep_install_networkNo
managedNo
modulesNo
net-udevNo
routingPlanned
s390-devicesPlanned
setup_before_proposalNo
strict_IP_check_timeoutNo
virt_brige_proposalNo

As seen in the table above, AutoYaST interfaces corresponds with Agama connections, but the format is not exactly the same.

AutoYaSTSupportedAgamaComment
deviceYesinterface
nameYesid
descriptionNo
bootprotoPartialmethod6Different set of values
startmodeNoDo not set up connections you won't use
lladdrYesmacAddress
ifplugd_priorityNoNot relevant (no ifplugd support)
usercontrolNo
dhclient_set_hostnameNo
ipaddrYesaddresses
prefixlenYesaddressesPart of addresses
remote_ipaddrUndecided
netmaskYesaddressesPart of addresses
bonding_*YesbondUse a different format to define bonds
aliasesYesPart of addresses
broadcastNoPart of addresses
networkNoPart of addresses
mtuUndecided
ethtool_optionsUndecided
wirelessYeswirelessIt uses a different format
wifi_settingsPartialwirelessIt uses a different format
bridge_settingsPlanned
vlan_settingsPlanned
dhclient_set_down_linkNo
dhclient_set_default_routeNo
zoneNo
firewallNo

Wireless connections

Setting up a wireless connection in AutoYaST is not even documented, although it is possible. In Agama, the options are placed under a wireless key.

AutoYaSTSupportedAgamaComment
wireless_auth_modePartialsecurityDifferent set of values
wireless_apUndecided
wireless_bitrateUndecided
wireless_ca_certUndecided
wireless_channelUndecided
wireless_client_certUndecided
wireless_client_keyUndecided
wireless_client_key_passwordUndecided
wireless_default_keyUndecided
wireless_eap_authUndecided
wireless_eap_modeUndecided
wireless_essidYesssid
wireless_frequencyUndecided
wireless_keyUndecided
wireless_key_0Undecided
wireless_key_1Undecided
wireless_key_2Undecided
wireless_key_3Undecided
wireless_key_lengthUndecided
wireless_modePartialmodeDifferent set of values
wireless_nickNo
wireless_nwidNo
wireless_peap_versionNo
wireless_powerNo
wireless_wpa_anonidNo
wireless_wpa_identityNo
wireless_wpa_passwordYespassword
wireless_wpa_pskYespassword

Bonding connections

The AutoYaST bonding* elements allow setting up a bonding interface. In Agama, those settings are placed under a bond key in the connection structure.

AutoYaSTSupportedAgamaComment
bonding_masterYesThe master defines the bond
bonding_slaveXYesports
bonding_module_optsYesoptions
-modeSpecific key to set the mode

Agama includes an specific mode options to set the mode, instead of abusing the bonding_module_opts.

Bridge connections

warning

Bridge support is not implemented yet although we have support at model level.

The AutoYaST bridge* elements allow setting up a bridge. In Agama, those settings are placed under a bridge key in the connection structure.

AutoYaSTSupportedAgamaComment
bridgePlannedAn existing bridge key means the same
bridge_portsPlannedports
bridge_stpPlannedstp
bridge_forward_delayPlannedforward_delay
bridge_forwarddelayPlannedforward_delayCompatibility bsc#1180944

VLAN

warning

VLAN support is not implemented yet although we have support at model level.

The AutoYaST vlan_settings elements allow setting up a bridge. In Agama, those settings are placed under a vlan key in the connection structure.

AutoYaSTSupportedAgamaComment
vlan_idPlannedid
etherdevicePlannedparent
-Plannedprotocol

partitioning

By far, the most complex part of an AutoYaST profile. We can import the AutoYaST partitioning section as it is because the partitioning is handled by the same code in Agama and AutoyaST.

However, we must implement a mechanism to convert to/from both profile types.

proxy

To use a proxy in Agama, you set the proxy in the kernel's command line. In AutoYaST, you can specify the proxy in the profile apart from the command line.

Although we need to support the same use case, we should avoid introducing a proxy section unless it is strictly required.

report

The AutoYaST report section defines which kind of messages to report (errors, warnings, information and yes/no messages) and whether the installation should stop on any of them. Agama does not have an equivalent mechanism. Moreover, it is arguable whether it is a good idea to base on the type of message to stop the installation. A more fine-grained control over the situations that should stop the installation would be better. As an example, consider the signature-handling section.

scripts

The only way to use scripts in Agama is to write your own autoinstallation script. Unlike AutoYaST, you cannot embed the script within the Jsonnet-based profile. This is relevant from the implementation point of view because we might need to extract AutoYaST scripts and put them in some place for Agama to run them.

Apart from that, AutoYaST considers five kind of scripts: pre, post-partitioning, chroot, post, and init. The last two are expected to run after the first boot, where Agama is not present anymore.

If we want to support post or init scripts, we need to copy them to the installed system and run them through a systemd service.

software

The software section is composed of several lists:

  • A list of products to install, although a single value is expected.
  • A list of patterns to install, a list of patterns to install in the 2nd stage and a list of patterns to remove.
  • A list of packages to install, a list of packages to install in the 2nd stage and a list of packages to remove.

Additionally, it is possible to force the installation of a specific kernel (kernel), perform an online update at the end of the installation (do_online_update) or enable/disable the installation of recommended packages (install_recommended).

Only the product and the list of products or patterns are available for Agama. We might consider adding support for the packages list and the install_recommended setting, although none are in the web UI.

AutoYaSTSupportedAgamaComment
do_online_updateNoNo 2nd stage
install_recommendedNo
instsourceNo
kernelNo
packagesNo
patternsPartialsoftware.patternsNo support for regular expresions
post-packagesNoNo 2nd stage
post-patternsNoNo 2nd stage
productsYessoftware.id
remove-packagesNoNo upgrade
remove-patternsNoNo upgrade
remove-productsNoNo upgrade

suse_register

Basic support for registering in the SUSE Customer Center is already in place, although there is no way to select the list of add-ons.

It is arguable whether we should offer a install_updates element instead of just installing them (which is the use case for not installing them?).

About the slp_discoverty element, Agama does not support SLP at all?

AutoYaSTSupportedAgamaComment
do_registrationYesThe section is ignored if false
emailYesproduct.registrationEmail
install_updatesNever
reg_codeYesproduct.registrationCode
reg_serverPlanned
reg_server_certPlanned
reg_server_cert_fingerprintPlanned
reg_server_cert_fingerprint_typePlanned
addonsUndecidedIt is not clear how addons will work
slp_discoveryNo

timezone

AutoYaSTSupportedAgamaComment
timezoneYesl10n.timezone
hwclockNo

Unsupported sections

  • FCoE
  • add-on
  • audit-laf
  • auth-client
  • configuration_management
  • deploy_image
  • dhcp-server
  • dns-server
  • files
  • firstboot
  • ftp-server
  • groups
  • host
  • http-server
  • mail
  • nfs
  • nfs_server
  • nis
  • nis_server
  • ntp-client
  • printer
  • samba-client
  • services-manager
  • sound
  • squid
  • ssh_import
  • sysconfig
  • tftp-server
  • upgrade