博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Cobbler 2.x安装与配置
阅读量:6089 次
发布时间:2019-06-20

本文共 2183 字,大约阅读时间需要 7 分钟。

软件环境

Centos7.3

Cobbler 2.8.1

1、下载、编译和安装

创建自动安装脚本cobbler-install.sh

#!/bin/bash

# File Name: /data/srcipts/cobbler-install.sh

#

cd /data/scripts

LOGFILE="/data/scripts/install.log"

COBBLERSERVER=192.168.1.242

PASSWORD=$(openssl passwd -1 -salt "salt" "password")

touch $LOGFILE

# Installing the required packages

yum -y install deltarpm epel-release git \

python-cheetah python-netaddr python-simplejson python-urlgrabber PyYAML\

rsync syslinux tftp-server yum-utils \

httpd mod_wsgi mod_ssl \ 2>>$LOGFILE

   

# Downloading cobbler source code

git clone 2>>$LOGFILE

cd cobbler

git checkout release28

   

# Full new install with source code

make install >>$LOGFILE

# Installing and preserver your existing config files, snippers and kickstarts

#make devinstall

   

# Installing the cobbler web GUI (including make devinstall)

make webtest >>$LOGFILE

   

#Building RPM packages from Source

#yum -y install rpm-rpm-config rpm-build python-devel

#make rpms

   

# Create the dicrectory rpm-build and 6 rpm packages

   

# Install with PRM packages

yum -y install cobbler-2.8.1-1.el7.centos.noarch.rpm cobler-web-2.8.1-1.el7.noarch.rpm

   

#2. 配置 refer to cobbler site

#Changing the cobbler main configuration /etc/cobbler/settings

#allow dynamic settting

cp /etc/cobbler/settings /etc/cobbler/settings.init

sed \i 's/allow_dynamic_settings:0/allow_dynamic_setting:1/' /ect/cobbler/settings

   

#change the default encrypted password (root/cobbler)

PASS=$(openssl passwd -l -salt "random salt" "your new password")

cobber setting --name=default_password_crypted --value=$PASSWORD

cobber setting --name=server --value=$COBBLERSERVER

cobber setting --name=next server --value=$COBBLERSERVER

cobber setting --name= manage_dhcp

   

# Change the DHCP template file

/etc/cobbler/dhcp.template

   

# starting and enabling the cobbler service

systemctl start cobblerd

systemctl enable cobblerd

   

cobbler check

   

cobbler sync

   

#importing your first distribution

mkdir /mnt/cdrom

mount -t iso9660 -o loop,ro /dev/sr0 /mnt/cdrom

cobbler import --name=centos7.3 --arch=x86_64 --path=/mnt/cdrom

   

#verify the distro

cobbler distro list

cobbler distro report

   

cobbler profile list

cobbler profile report

转载于:https://www.cnblogs.com/samits/p/7512909.html

你可能感兴趣的文章
【机房合作】状态模式与上机
查看>>
iOS中alloc与init
查看>>
Raw Sockets programming on Linux with C
查看>>
纸上谈兵: AVL树[转]
查看>>
SpriteBuilder中粒子发射器的reset on visibility toggle选项解释
查看>>
深入浅出jackrabbit之十三 查询之AST和QT
查看>>
动态规划算法计算网络的最长路线和最短路线
查看>>
eclipse中ant build 控制台乱码解决解决方法(ant执行java)
查看>>
搭建Maven私服(使用Nexus)
查看>>
采集数据库中未绑定变量的sql
查看>>
一个统计网站访问IP的实例
查看>>
19 年 3 月 GitHub 上最流行的 34 个 JS 仓库
查看>>
C++ 模板函数
查看>>
《图解HTTP》— HTTP报文信息
查看>>
如何优雅的封装vue组件
查看>>
ANR详细介绍
查看>>
微信JS-SDK分享实践
查看>>
这款分布式配置中心,会是微服务的降维打击利器吗?
查看>>
用最简单的方式理解浏览器与node中的事件循环的区别
查看>>
Spring Cloud—加密和解密
查看>>