This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| spacewalk_centos6 [2015/03/05 09:44] – created herwarth | spacewalk_centos6 [2015/03/05 10:05] (current) – herwarth | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Spacewalk server with own default organization on CentOS 6====== | ||
| + | =====Installation===== | ||
| + | ====Repositories==== | ||
| + | rpm -Uvh http:// | ||
| + | rpm -Uvh http:// | ||
| + | <code - / | ||
| + | [jpackage-generic] | ||
| + | name=JPackage generic | ||
| + | # | ||
| + | mirrorlist=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=http:// | ||
| + | </ | ||
| + | |||
| + | ====Installation of the packages==== | ||
| + | < | ||
| + | yum install spacewalk-setup-embedded-postgresql | ||
| + | yum install spacewalk-postgresql | ||
| + | yum install perl-TermReadKey | ||
| + | </ | ||
| + | |||
| + | =====Configuration===== | ||
| + | ====Iptables==== | ||
| + | <code - / | ||
| + | . | ||
| + | . | ||
| + | -A INPUT -m state --state NEW -m tcp -p tcp --dport 69 -j ACCEPT | ||
| + | -A INPUT -m state --state NEW -m udp -p udp --dport 69 -j ACCEPT | ||
| + | -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT | ||
| + | -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT | ||
| + | -A INPUT -m state --state NEW -m tcp -p tcp --dport 5222 -j ACCEPT | ||
| + | -A INPUT -m state --state NEW -m tcp -p tcp --dport 5432 -j ACCEPT | ||
| + | -A INPUT -m state --state NEW -m tcp -p tcp --dport 25150 -j ACCEPT | ||
| + | -A INPUT -m state --state NEW -m udp -p udp --dport 25150 -j ACCEPT | ||
| + | -A INPUT -m state --state NEW -m tcp -p tcp --dport 25151 -j ACCEPT | ||
| + | . | ||
| + | . | ||
| + | </ | ||
| + | |||
| + | service iptables restart | ||
| + | ====GPG==== | ||
| + | gpg --gen-key | ||
| + | |||
| + | gpg --list-keys | ||
| + | < | ||
| + | / | ||
| + | ------------------------ | ||
| + | pub | ||
| + | uid Helux < | ||
| + | sub | ||
| + | </ | ||
| + | gpg --list-secret-keys | ||
| + | < | ||
| + | / | ||
| + | ------------------------ | ||
| + | sec | ||
| + | uid Helux < | ||
| + | ssb | ||
| + | </ | ||
| + | |||
| + | gpg --export -a B06EB1AF > / | ||
| + | gpg --export-secret-keys -a B06EB1AF > / | ||
| + | |||
| + | Only when the keys are not on the system anymore | ||
| + | gpg --import / | ||
| + | gpg --allow-secret-key-import --import / | ||
| + | |||
| + | Change organization name | ||
| + | vi / | ||
| + | |||
| + | ====First setup run==== | ||
| + | spacewalk-setup --disconnected | ||
| + | You will get the following error: | ||
| + | < | ||
| + | . | ||
| + | . | ||
| + | There was a problem activating the satellite: Could not parse certificate file. | ||
| + | </ | ||
| + | |||
| + | ====Create a new certificate signed by our own key==== | ||
| + | gpg --list-keys | ||
| + | < | ||
| + | / | ||
| + | ------------------------ | ||
| + | pub | ||
| + | uid Helux < | ||
| + | sub | ||
| + | |||
| + | pub | ||
| + | uid Red Hat, Inc (Red Hat Network) < | ||
| + | </ | ||
| + | |||
| + | Download the magic script {{: | ||
| + | |||
| + | ./ | ||
| + | |||
| + | ====Second setup run==== | ||
| + | spacewalk-setup --disconnected --skip-db-install | ||
| + | |||
| + | ====PAM authentication==== | ||
| + | <code - / | ||
| + | #%PAM-1.0 | ||
| + | auth required / | ||
| + | auth sufficient / | ||
| + | auth required / | ||
| + | account required / | ||
| + | </ | ||
| + | <code - / | ||
| + | pam_auth_service = rhn-satellite | ||
| + | </ | ||
| + | |||
| + | ====Cobbler/ | ||
| + | cobbler get-loaders | ||
| + | cd / | ||
| + | cp * / | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| {{tag> | {{tag> | ||