Registering Ubuntu 20.04 Clients
This section contains information about registering Salt clients running Ubuntu 20.04 LTS operating systems.
SUSE Manager supports Ubuntu 16.04 LTS, 18.04 LTS, and 20.04 LTS clients using Salt. For information about registering Salt clients running Ubuntu 16.04 LTS and 18.04 LTS, see client-configuration:clients-ubuntu-old.adoc.
Canonical does not endorse or support SUSE Manager. |
Ubuntu is supported for Salt clients only. Traditional clients are not supported. |
Bootstrapping is supported for starting Ubuntu clients and performing initial state runs such as setting repositories and performing profile updates.
However, the root user on Ubuntu is disabled by default, so to use bootstrapping, you require an existing user with sudo
privileges for Python.
Add Software Channels
Before you register Ubuntu clients to your SUSE Manager Server, check that you have the Ubuntu product enabled, and the required channels are fully synchronized.
The products you need for this procedure are:
OS Version | Product Name |
---|---|
Ubuntu 20.04 |
Ubuntu 20.04 |
-
In the SUSE Manager Web UI, navigate to
. -
Locate the appropriate products for your client operating system and architecture using the search bar, and check the appropriate product. This automatically checks all required channels. Click the arrow to see the complete list of related products, and ensure that any extra products you require are checked.
-
Click Add Products and wait until the products have finished synchronizing.
Check Synchronization Status
-
In the SUSE Manager Web UI, navigate to
and select theProducts
tab. This dialog displays a completion bar for each product when they are being synchronized. -
Alternatively, you can navigate to
, then click the channel associated to the repository. Navigate to theRepositories
tab, then clickSync
and checkSync Status
.
-
At the command prompt on the SUSE Manager Server, as root, use the
tail
command to check the synchronization log file:tail -f /var/log/rhn/reposync/<channel-label>.log
-
Each child channel generates its own log during the synchronization progress. You need to check all the base and child channel log files to be sure that the synchronization is complete.
Ubuntu channels can be very large. Synchronization can sometimes take several hours. |
Root Access
The root user on Ubuntu is disabled by default.
You can enable it by editing the sudoers
file.
-
On the client, edit the
sudoers
file:sudo visudo
Grant
sudo
access to the user by adding this line at the end of thesudoers
file. Replace<user>
with the name of the user that is bootstrapping the client in the Web UI:<user> ALL=NOPASSWD: /usr/bin/python, /usr/bin/python2, /usr/bin/python3
This procedure grants root access without requiring a password, which is required for registering the client.
When the client is successfully installed it runs with root privileges, so the access is no longer required.
We recommend that you remove the line from the |
Register Clients
To register your Ubuntu clients, you need a bootstrap repository. By default, bootstrap repositories are automatically created, and regenerated daily for all synchronized products. You can manually create the bootstrap repository from the command prompt, using this command:
mgr-create-bootstrap-repo
For more information on registering your clients, see client-configuration:registration-overview.adoc.