Skip to content

Instantly share code, notes, and snippets.

@tkuennen
Last active April 4, 2017 19:56
Show Gist options
  • Save tkuennen/2357a3598f35fe368328472a421917e1 to your computer and use it in GitHub Desktop.
Save tkuennen/2357a3598f35fe368328472a421917e1 to your computer and use it in GitHub Desktop.
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://yum.spacewalkproject.org/2.5/RHEL/7/x86_64/spacewalk-repo-2.5-3.el7.noarch.rpm
cat > /etc/yum.repos.d/jpackage-generic.repo << EOF
[jpackage-generic]
name=JPackage generic
#baseurl=http://mirrors.dotsrc.org/pub/jpackage/5.0/generic/free/
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0
enabled=1
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
EOF
yum -y install spacewalk-setup-postgresql
yum -y install spacewalk-postgresql
cat > /tmp/spacewalk.answer << EOF
admin-email = root@localhost
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=oracle
db-name=spaceschema
db-user=spaceuser
db-password=spacepw
db-host=localhost
db-port=1521
enable-tftp=Y
spacewalk-setup --answer-file=/tmp/spacewalk.answer
/usr/sbin/spacewalk-service start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment