PDA

View Full Version : Suse Manager & OpenSuse



rousselotma
12-Dec-2018, 17:27
Hi all

Do you know if the management of OpenSuSE systems, by Suse Manager, is documented somewhere?

Many thanks.

rogerbycek
14-Dec-2018, 17:00
I don't know if it's documented anywhere per se, here's what I've done (for openSUSE 15):
There are two ways you can do this.
For the using the Management clients, you can do the following:
Create a bootstrap script to install the appropriate packages and register your client. Below an edited version of the one I use::

#!/bin/bash
cd /etc/zypp
mv repos.d repos.d-backup
cd /tmp/
zypper ar -f -G --name openSUSE-15_0-spacewalk
“http://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/2.8/openSUSE_Leap_15.0/” openSUSE-15_0-spacewalk
zypper ref
zypper -n in osad rhn-check rhn-client-tools rhncfg rhncfg-actions rhncfg-management spacewalk-usix zypp-plugin-spacewalk rhnsd rhn-setup
wget http://susemanager.mydomain.tld/pub/RHN-ORG-TRUSTED-SSL-CERT -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
mkdir -p /usr/share/pki/trust/anchors
ln -s /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT /usr/share/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT.pem
ln -s /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT /etc/ssl/certs/RHN-ORG-TRUSTED-SSL-CERT.pem
c_rehash /etc/ssl/certs/
rhnreg_ks --serverUrl=https://susemanager.mydomain.tld/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=***REDACTED***
systemctl enable osad
systemctl start osad
rhn-actions-control --enable-all
rhn_check


You can also install the “salt-minion” package and point it to your SUSE Manager server by modifying the “master:” directive in /etc/salt/minion. If you’re using an activation key, create “/etc/salt/grains” and add the following:

susemanager:
activation_key: 1-<key>

Then enable and start the salt-minion service. Next you’ll have to accept your client’s certificate by going into the SUSE Manager web interface and going to Salt > Keys and accepting the key. You can also do this on a terminal using the “salt-key” command. “salt-key -L” will list the keys and “salt-key-A” will accept all (you’ll be prompted for each key)

marcobucci
07-Jan-2019, 17:17
Hi all

Do you know if the management of OpenSuSE systems, by Suse Manager, is documented somewhere?

Many thanks.

I didn't see anything "googling", but it's not tough add OpenSUSE to SUMA, follow the same steps used to create the channels for centos7, for sure you need to change centos7 in the correct opensuse version you want, parse the file:

/etc/rhn/spacewalk-common-channels.ini

and check the correct name to use with the command:
spacewalk-common-channels -u admin -p secret -a x86_64 '<opensuse>'
consider to add also the correct spacewalk client for your opensuse, and create the activation key