SUSE Manager/Register RedHat minions
In order to register RedHat-based clients, the following steps allow you access to necessary packages.
Apply the latest updates to SUSE Manager 3, minimum update from October 2016.
- Latest RHEL release
- Fully patched
- RHEL 7.3 or later for Salt
- RHEL < 7.3 will work with 'traditional' only
RES products and channels
Make sure you have the corresponding RES product enabled and the channels synced:
- RHEL 7.x
- - Product: RES 7
- - Mandatory channels: rhel-x86_64-server-7, res7-suse-manager-tools-x86_64, res7-x86_64
- RHEL 6.x
- - Product: RES 6
- - Mandatory channels: rhel-x86_64-server-6, res6-suse-manager-tools-x86_64, res6-x86_64
In order to check if the channels have finished syncing either:
- go to "Admin -> Setup Wizard" and look under tab "SUSE Products"
- or check the sync log file under /var/log/rhn/reposync/<channel-label>.log
Bootstrap repository creation - Both Expanded Support and Native RH clients
SUSE Manager subscriptions entitle everyone to the tools channel for the res (Expanded Support) distributions. Any RH or CentOS 6 or 7 system should use these to create the proper bootstrap repository for either traditional or salt-minion connectivity.
1. Add the corresponding res SUSE Manager tools channel and allow it to sync from SCC. You will need the 0-package parent channel and the tools. Here is an example command to add it for res6 x86_64:
mgr-sync add channels rhel-x86_64-server-6 res6-suse-manager-tools-x86_64
2. Follow the instructions to sync your base media as a child repository for your RH distribution. The wiki explains it here:
3. Create a bootstrap repo for your RH clients with
This will use the base media channel to capture needed dependencies. Ensure that it completes without error.
On the client machine(s) perform the following:
Registration using a bootstrap script (recommended)
- If needed, regenerate the bootstrap script with the Salt option enabled
mgr-bootstrap --salt --script=bootstrap-salt.sh
- Download and run the appropriately edited bootstrap script after adding correct activation key, etc. This will install the necessary Salt packages, set the proper activation key, and start the salt-minion service.
curl -Sks http://<server>/pub/bootstrap/bootstrap-salt.sh | /bin/bash
- Go to the Server web UI to Salt -> Onboarding and accept the minion's key. After a few minutes, the new minion will appear in your list of systems with the channels assigned in the activation key you specified in the bootstrap process.
- Change the Salt configuration to point to the Suse Manager server:
echo "master: <server fqdn>" > /etc/salt/minion.d/susemanager.conf
- Edit the /etc/salt/minion.c/susemanager.conf file to add the appropriate activation key:
master: <server fqdn> grains: susemanager: activation_key: "1-<activation-key>"
3. Start the minion:
systemctl start salt-minion
4. Go to the server UI: Salt -> Onboarding and accept the key of the minion.