DevOps Tools/Configuration/SpaceWalk

From r00tedvw.com wiki
Jump to: navigation, search

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 --reload

Configuration

Using the default postgres db with an answerfile

~$ sudo 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 [spacewalk server name]/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

To find the activation key, Goto System >> Activation Keys on the spacewalk server.

~$ sudo rhnreg_ks --activationkey [activation key] --serverUrl [spacewalk server name]/XMLRPC
~$ sudo rhnreg_ks --activationkey 1-fkkde2n89fh923dfnu9endfu92n --serverUrl https://ncwv-spacewalk01.r00tedvw.local/XMLRPC
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox