DevOps Tools/Configuration/SpaceWalk
From r00tedvw.com wiki
(Difference between revisions)
Line 48: | Line 48: | ||
Easily manage all spacewalk services at the same time | Easily manage all spacewalk services at the same time | ||
<nowiki>~$ /usr/sbin/spacewalk-service [stop|start|restart].</nowiki> | <nowiki>~$ /usr/sbin/spacewalk-service [stop|start|restart].</nowiki> | ||
+ | |||
+ | |||
+ | =Client Registration= | ||
+ | Done on each system added to spacewalk | ||
+ | ==Dependencies= | ||
+ | <nowiki>~$ sudo yum install -y epel-release | ||
+ | ~$ sudo yum -y install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin</nowiki> | ||
+ | ==Install local SSL certificate== | ||
+ | <pre>~$ sudo rpm -Uvh <i><b>spacewalk server name</i></b>/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm</pre> | ||
+ | <nowiki>~$ sudo rpm -Uvh http://ncwv-spacewalk01.r00tedvw.local/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm</nowiki> | ||
+ | ==Activate== | ||
+ | <nowiki>~$ sudo rhnreg_ks --activationkey 1-fkkde2n89fh923dfnu9endfu92n --serverUrl https://ncwv-spacewalk01.r00tedvw.local/XMLRPC</nowiki> |
Revision as of 14:44, 4 August 2020
Spacewalk
Contents |
Overview
Package Maintainer/Installer for bulk management.
Installation of Spacewalk on CentOS7.
Instructions from here
Installation
Dependencies
~$ sudo yum install -y epel-release ~$ sudo yum install -y yum-plugin-tmprepo ~$ sudo yum install -y spacewalk-repo --tmprepo=https://copr-be.cloud.fedoraproject.org/results/%40spacewalkproject/spacewalk-2.10/epel-7-x86_64/repodata/repomd.xml --nogpg
Postgres
~$ sudo yum -y install spacewalk-setup-postgresql
Spacewalk
~$ sudo yum -y install spacewalk-postgresql
Firewall
~$ sudo firewall-cmd --zone=public --permanent --add-service=http ~$ sudo firewall-cmd --zone=public --permanent --add-service=https ~$ sudo firewall-cmd --runtime-to-perm ~$ sudo firewall-cmd --reload
Configuration
Using the default postgres db with an answerfile
~$ spacewalk-setup --answer-file=<FILENAME>
Example Answer file:
admin-email = root@localhost ssl-set-cnames = spacewalk2 ssl-set-org = Spacewalk Org ssl-set-org-unit = spacewalk ssl-set-city = My City ssl-set-state = My State ssl-set-country = US ssl-password = spacewalk ssl-set-email = root@localhost ssl-config-sslvhost = Y db-backend=postgresql db-name=spaceschema db-user=spaceuser db-password=spacepw db-host=localhost db-port=5432 enable-tftp=Y
Management
Easily manage all spacewalk services at the same time
~$ /usr/sbin/spacewalk-service [stop|start|restart].
Client Registration
Done on each system added to spacewalk
=Dependencies
~$ sudo yum install -y epel-release ~$ sudo yum -y install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin
Install local SSL certificate
~$ sudo rpm -Uvh <i><b>spacewalk server name</i></b>/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
~$ sudo rpm -Uvh http://ncwv-spacewalk01.r00tedvw.local/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
Activate
~$ sudo rhnreg_ks --activationkey 1-fkkde2n89fh923dfnu9endfu92n --serverUrl https://ncwv-spacewalk01.r00tedvw.local/XMLRPC