Folowed the instructions on the github, installed pre-reqs, then make install, and make webstest. After that mediated all items in cobber check,
Here are all the instructions I created for myself, and followed them to the letter
###Start wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm sudo rpm -Uvh epel-release-6-7.noarch.rpm yum update yum install createrepo httpd mkisofs mod_wsgi python-cheetah python-netaddr python-simplejson python-urlgrabber PyYAML rsync tftp-server yum-utils Django git make python-devel python-setuptools python-simplejson mod_python
git clone https://github.com/cobbler/cobbler.git cd cobbler git checkout release24
make install make webtest
[root@cobbler cobbler]# cobbler check The following are potential configuration items that you may want to fix:
*1 : The 'server' field in /etc/cobbler/settings must be set to something other t han localhost, or kickstarting features will not work. This should be a resolva ble hostname or IP for the boot server as reachable by all machines that will us e it. *2 : For PXE to be functional, the 'next_server' field in /etc/cobbler/settings m ust be set to something other than 127.0.0.1, and should match the IP of the boo t server on the PXE network. 3 : some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/ x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in t his directory, should you want to support all architectures, should include pxel inux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is th e easiest way to resolve these requirements. *4 : change 'disable' to 'no' in /etc/xinetd.d/rsync *5 : since iptables may be running, ensure 69, 80/443, and 25151 are unblocked *6 : debmirror package is not installed, it will be required to manage debian dep loyments and repositories *7 : The default password used by the sample templates for newly installed machin es (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your -password-here'" to generate new one *8 : fencing tools were not found, and are required to use the (optional) power m anagement features. install cman or fence-agents to use them
Restart cobblerd and then run 'cobbler sync' to apply changes.
sed -i 's/authn_denyall/authn_configfile/g' /etc/cobbler/modules.conf sed -i 's/server: 127.0.0.1/server: cobbler.my_domain.com/g' /etc/cobbler/settings sed -i 's/pxe_just_once: 0/pxe_just_once: 1/g' /etc/cobbler/settings sed -i 's/anamon_enabled: 0/anamon_enabled: 1/g' /etc/cobbler/settings sed -i 's/next_server: cobbler.my_domain.com/next_server: 192.168.1.1/g' /etc/cobbler/settings
#change 'disable' to 'no' vi /etc/xinetd.d/rsync
yum install syslinux fence-agents debmirror cman
iptables -A INPUT -p tcp --dport 80 -m state --state NEW -s 192.168.1.0/24-j ACCEPT iptables -A INPUT -p udp -m udp --dport 25151 -s 192.168.1.0/24 -j ACCEPT iptables -A INPUT -p udp -m udp --dport 69 -s 192.168.1.0/24 -j ACCEPT service iptables save
openssl passwd -1 -salt 'RANDOM' 'PASSW0RD' copy that string to default_password_crypted:in /etc/cobbler/settings
sed -i -e 's|@dists=.*|#@dists=|' /etc/debmirror.conf sed -i -e 's|@arches=.*|#@arches=|' /etc/debmirror.conf
cobbler get-loaders
mkdir /tftpboot
chkconfig cobblerd on chkconfig xinetd on chkconfig httpd on
/etc/init.d/cobblerd restart /etc/init.d/httpd restart /etc/init.d/xinetd restart
cobbler sync
cobbler check ###end
However when I try to reach cobbler.my_domain.com/cobbler_web I get a 109.
Error 109 (net::ERR_ADDRESS_UNREACHABLE): Unable to reach the server.
Yes I can reach the coblbler.my_domain.com/ it gives me the apache page.
I tried to hard code the cobbler_web.conf file,
cat <<EOF > /etc/httpd/conf.d/cobbler_web.conf <VirtualHost *:80> ServerName cobbler.my_domain.com ServerAlias cobbler SetEnvIf Request_URI ".*/op/events/user/.*" dontlog CustomLog logs/access_log combined env=!dontlog <Location "/cobbler_web"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings # PythonOption django.root /cobbler_web PythonDebug On PythonPath "['/usr/share/cobbler/web/'] + sys.path" AuthBasicAuthoritative Off AuthType basic AuthName "Cobbler" Require valid-user PythonAuthenHandler cobbler_web.views </Location> </VirtualHost> EOF
that too gives me an error MOD_PYTHON ERROR
ProcessId: 2984 Interpreter: 'cobbler.my_domain.com'
ServerName: 'cobbler.my_domain.com' DocumentRoot: '/var/www/html'
URI: '/cobbler_web' Location: '/cobbler_web' Directory: None Filename: '/var/www/html/cobbler_web' PathInfo: ''
Phase: 'PythonAuthenHandler' Handler: 'cobbler_web.views'
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 1202, in _process_target module = import_module(module_name, path=path)
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 304, in import_module return __import__(module_name, {}, {}, ['*'])
File "/usr/share/cobbler/web/cobbler_web/views.py", line 6, in <module> from django.shortcuts import render_to_response
File "/usr/lib/python2.6/site-packages/django/shortcuts/__init__.py", line 10, in <module> from django.db.models.manager import Manager
File "/usr/lib/python2.6/site-packages/django/db/__init__.py", line 14, in <module> if not settings.DATABASES:
File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 276, in __getattr__ self._setup()
File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 40, in _setup raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
I have got it to run before, but not sure what i'm not doing right this time. any help will be much appreciated.
Best, Kenneth M