首页 > 其他分享 >实现cobbler安装

实现cobbler安装

时间:2023-07-14 19:35:44浏览次数:36  
标签:x86 CentOS 实现 -- cobbler 64 安装 name

 

1 安装包
yum install cobbler(EPEL) dhcp
systemctl enable cobblerd dhcpd httpd tftp
systemctl start cobblerd httpd tftp

2 cobbler check

3 vim /etc/cobbler/settings
server:cobberserverip
next_server:cobberserverip
defaut_password_cryptd: "xxxxxxxxxx" #openssl passwd -1 生成口令
manage_dhcp:1

4 cobber get-loaders 联网
cobbler sync

5 vim /etc/cobbler/dhcp.template
subnet 192.168.30.0 netmask 255.255.255.0
range dynamic-bootp 192.168.30.10 192.168.30.200;


cobbler sync

systemctl restart dhcpd

6
/dev/sr0 8490330 8490330 0 100% /mnt/cdrom0
/dev/sr1 6049912 6049912 0 100% /mnt/cdrom1

cobbler import --path=/mnt/cdrom0 --name=CentOS_7.4-x86_64 --arch=x86_64
cobbler import --path=/mnt/cdrom1 --name=CentOS_6.9-x86_64 --arch=x86_64
cobbler distro list

7
#cat ks6_mini.cfg
url --url=$tree

cp ks7_desktop.cfg ks6_mini.cfg /var/lib/cobbler/kicstarts/

cobbler profile add --name=CentOS_7.4-x86_64_Desktop --distro=CentOS_7.4-x86_64 --kickstart=/var/lib/cobbler/kicstarts/ks7_desktop.cfg
cobbler profile add --name=CentOS_6.9-x86_64_Mini --distro=CentOS_6.9-x86_64 --kickstart=/var/lib/cobbler/kicstarts/ks6_mini.cfg

删除自带的配置
cobbler profile remove --name=CentOS_7.4-x86_64
cobbler profile remove --name=CentOS_6.9-x86_64

8 web实现

yum install cobbler-web
systemctl restart httpd

htdigest -c /etc/cobbler/users.digest Cobbler test1

https://cobberserverip/cobbler_web/

ansible module
ansible -s module
ping
command
shell
script
copy
fetch
file
hostname
cron
yum
service
user
group

标签:x86,CentOS,实现,--,cobbler,64,安装,name
From: https://www.cnblogs.com/xuxuxu-2022/p/17554804.html

相关文章

  • 实现智能DNS
    1vim/etc/named.confaclbeijingnet{192.168.30.0/24;};aclshanghainet{172.20.0.0/16;};aclothernet{any;};options{listen-onport53{localhost;};listen-on-v6port53{::1;};directory"/v......
  • centos7.4二进制安装mariadb-10.2.15-linux-x86_64.tar.gz
    1检查环境iptablesselinuxmariadb-server2下载二进制包3useradd-r-d/data/mysqldb-s/sbin/nologinmysql4tarxvfmariadb-10.2.15-linux-x86_64.tar.gz-C/usr/local/cd/usr/localln-smariadb-10.2.15-linux-x86_64/mysqlchown-Rroot:rootmysql/5e......
  • centos7.4 yum 安装包的实现多实例
    1yuminstallmariadb-server2mkdir/mysqldb/{3306,3307,3308}/{etc,socket,pid,log,data}-pvchown-Rmysql.mysql/mysqldb/3mysql_install_db--datadir=/mysqldb/3306/data--user=mysqlmysql_install_db--datadir=/mysqldb/3307/data--user=mysqlmysql_inst......
  • 实现LVM的备份还原,结合binlog恢复最新状态
    -备份过程1实现LVMmkdir/data/{mysql,binlog}vim/etc/fstabmount/dev/vg0/lv_mysql/data/mysqlmount/dev/vg0/lv_binlog/data/binlogchown-Rmysql.mysql/data/vim/etc/my.cnfdatadir=/data/mysqllog_bin=/data/binlog/mysql-binsystemctlrestartmariadb2mysq......
  • 三台主机实现基于key验证
    Assh-keygenssh-copy-idAscp-rp/root/.ssh B:/root/scp-rp/root/.sshC:/root/ [root@centos6~]#catssh_key.sh<<EOF#!/bin/bashrpm-qexpect&>/dev/null||yuminstallexpect-yssh-keygen-P""-f"/root/.ssh/id_r......
  • Docker学习路线5:在 Docker 中实现数据持久化
    Docker可以运行隔离的容器,包括应用程序和其依赖项,与主机操作系统分离。默认情况下,容器是临时的,这意味着容器中存储的任何数据在终止后都将丢失。为了解决这个问题并在容器生命周期内保留数据,Docker提供了各种数据持久化方法。Docker卷绑定挂载Dockertmpfs挂载Docker卷......
  • 实现CENTOS7 PXE安装
    0selinux,firewall关闭1安装包yuminstalldhcptftp-serverhttpdsyslinuxsystemctlenabledhcpdhttpdtftp.socketsystemctlstarthttpd2准备YUM源mkdir/var/www/html/centos/{6,7}/-pvvim/etc/fstab加下面行/dev/sr0/var/www/html/centos/7iso96......
  • 如何在win10系统主机中安装win10系统虚拟机(附win10镜像和VMware Station 15 Pro安装包
    win10虚拟机镜像:链接:https://pan.baidu.com/s/1duHTmR9ZHfRqwretY2IvHg提取码:6hi4VmwareStation15Pro安装包:链接:https://pan.baidu.com/s/1CiL8HcEAlYo-iyCrbkflpA提取码:ka9m 下载完后,安装VMwareStation。需要永久激活码的童鞋请参考:VMwareWorkstation15中文破解......
  • android实现沉浸式状态栏
    Android实现沉浸式状态栏1.概述沉浸式状态栏是指将状态栏与界面融为一体,使得应用界面能够占据整个屏幕,提升用户体验。在Android中,我们可以通过设置系统UI标志和使用透明状态栏来实现沉浸式状态栏。2.实现步骤步骤操作1在AndroidManifest.xml文件中添加以下权限:<br>......
  • 在vm-17版本上安装centos 7.9 版本的linux系统
    1、构建虚拟机 2、自定义安装 3、默认兼容性 4、操作系统安装方式 5、选择centos7的版本 6、虚拟机命名和安装位置 7、处理器的分配 8、默认内存分配 9、网络模式,采用桥梁模式 10、控制器的选择 11、磁盘类型的选择 12、创建新磁盘 13、......