DevOps Tools/Configuration/SpaceWalk
From r00tedvw.com wiki
(Difference between revisions)
(Created page with "Spacewalk") |
(→Configuration) |
||
(13 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | [[DevOps_Tools/Configuration/SpaceWalk|Spacewalk]] |
+ | |||
+ | =Overview= | ||
+ | Package Maintainer/Installer for bulk management.<br> | ||
+ | Installation of Spacewalk on CentOS7.<br> | ||
+ | Instructions from [https://github.com/spacewalkproject/spacewalk/wiki/HowToInstall here] | ||
+ | |||
+ | =Installation= | ||
+ | ==Dependencies== | ||
+ | <nowiki>~$ 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 | ||
+ | </nowiki> | ||
+ | |||
+ | ==Postgres== | ||
+ | <nowiki>~$ sudo yum -y install spacewalk-setup-postgresql </nowiki> | ||
+ | ==Spacewalk== | ||
+ | <nowiki>~$ sudo yum -y install spacewalk-postgresql </nowiki> | ||
+ | ==Firewall== | ||
+ | <nowiki>~$ sudo firewall-cmd --zone=public --permanent --add-service=http | ||
+ | ~$ sudo firewall-cmd --zone=public --permanent --add-service=https | ||
+ | ~$ sudo firewall-cmd --reload</nowiki> | ||
+ | |||
+ | =Configuration= | ||
+ | Using the default postgres db with an answerfile | ||
+ | <nowiki>~$ sudo spacewalk-setup --answer-file=<FILENAME></nowiki> | ||
+ | Example Answer file: | ||
+ | <nowiki>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</nowiki> | ||
+ | |||
+ | =Management= | ||
+ | Easily manage all spacewalk services at the same time | ||
+ | <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 [spacewalk server name]/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== | ||
+ | To find the activation key, Goto System >> Activation Keys on the spacewalk server. | ||
+ | <pre>~$ sudo rhnreg_ks --activationkey [activation key] --serverUrl [spacewalk server name]/XMLRPC</pre> | ||
+ | <nowiki>~$ sudo rhnreg_ks --activationkey 1-fkkde2n89fh923dfnu9endfu92n --serverUrl https://ncwv-spacewalk01.r00tedvw.local/XMLRPC</nowiki> |
Latest revision as of 13:16, 7 August 2020
Spacewalk
Contents |
[edit] Overview
Package Maintainer/Installer for bulk management.
Installation of Spacewalk on CentOS7.
Instructions from here
[edit] Installation
[edit] 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
[edit] Postgres
~$ sudo yum -y install spacewalk-setup-postgresql
[edit] Spacewalk
~$ sudo yum -y install spacewalk-postgresql
[edit] Firewall
~$ sudo firewall-cmd --zone=public --permanent --add-service=http ~$ sudo firewall-cmd --zone=public --permanent --add-service=https ~$ sudo firewall-cmd --reload
[edit] 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
[edit] Management
Easily manage all spacewalk services at the same time
~$ /usr/sbin/spacewalk-service [stop|start|restart].
[edit] Client Registration
Done on each system added to spacewalk
[edit] Dependencies
~$ sudo yum install -y epel-release ~$ sudo yum -y install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin
[edit] 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
[edit] 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