Cobbler web界面是一个很好的前端,非常容易管理很多Cobbler操作
可以添加和删除 system distro profile
可以用它列出和编辑distros, profiles, subprofiles, systems, repos and kickstart文件
可以执行 cobbler sync
编辑 kickstart文件(必须在/etc/cobbler and /var/lib/cobbler/kickstarts)
1、安装cobbler web
- yum -y install cobbler-web
2、/etc/httpd/conf.d/cobbler_web.conf 文件应该是这个样子
- # This configuration file enables the cobbler web interface (django version)
- # Force everything to go to https
- RewriteEngine on
- RewriteCond %{HTTPS} off
- RewriteCond %{REQUEST_URI} ^/cobbler_web
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
- WSGIScriptAlias /cobbler_web /usr/share/cobbler/web/cobbler.wsgi
- # The following Directory Entry in Apache Configs solves 403 Forbidden errors.
- <Directory "/usr/share/cobbler/web">
- Order allow,deny
- Allow from all
- </Directory>
- # Display Cobbler Themes + Logo graphics.
- <Directory "/var/www/cobbler_webui_content">
- Order allow,deny
- Allow from all
- </Directory>
3、/etc/cobbler/modules.conf 文件应该是这个样子
- [authentication]
- #module = authn_denyall
- module = authn_configfile
- [authorization]
- module = authz_allowall
4、创建用户&修改以有的用户密码
cobbler 默认用户 cobbler 密码 cobbler
- 添加用户;若用户以存在则是 修改密码
- htdigest /etc/cobbler/users.digest "Cobbler" 用户名
- Adding user a123 in realm Cobbler
- New password:
- Re-type new password:
5、重启cobbler 服务
- service cobblerd restart
- service httpd restart
6、如果你使用SELinux,你可能还需要设置以下
- setsebool -P httpd_can_network_connect true
7、访问地址
- https://IP/cobbler_web
8、日志存放点
- /var/log/httpd/error_log
- /var/log/cobbler/cobbler.log
9、To redirect access to the WebUI via https on an Apache webserver, you can use the following rewrite rule, probably at the end of Apache's ssl.conf
:
/etc/httpd/conf.d/ssl.conf
- ### Force SSL only on the WebUI
- <VirtualHost *:80>
- <LocationMatch "^/cobbler_web/*">
- RewriteEngine on
- RewriteRule ^(.*) https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
- </LocationMatch>
- </VirtualHost>
------------------------------------------------------------------------
访问:http://IP/cobbler_web