zoukankan      html  css  js  c++  java
  • cobbler部署

    • 关闭防火墙和selinux
    sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config 
    setenforce 0 
    systemctl stop firewalld.service
    systemctl disable firewalld.service
    
    • 安装epel源和cobbler,启动相关服务
    yum -y install http://mirrors.163.com/centos/7/extras/x86_64/Packages/epel-release-7-9.noarch.rpm 
    yum install cobbler cobbler-web dhcp tftp-server pykickstart httpd xinetd -y
    systemctl start httpd
    systemctl enable httpd
    systemctl start cobblerd
    systemctl enable cobblerd
    systemctl start xinetd.service 
    systemctl enable xinetd.service
    
    • 检查cobbler
    cobbler check
    
    • 动态修改配置
    sed -ri '/allow_dynamic_settings:/callow_dynamic_settings: 1' /etc/cobbler/settings
    systemctl restart cobblerd 
    
    • 修改server和next_server
    cobbler setting edit --name=server --value=192.168.1.30
    cobbler setting edit --name=next_server --value=192.168.1.30
    
    • 配置tftp
    sed -ri '/disable/cdisable = no' /etc/xinetd.d/tftp
    systemctl enable xinetd 
    systemctl restart xinetd
    
    • 下载cobbler相关的包
    cobbler get-loaders 
    
    • 启动rsyscd服务
    systemctl start rsyncd 
    systemctl enable rsyncd
    
    • kickstart
    yum install pykickstart -y
    
    • default密码:系统登录密码
    [root@localhost ~]# openssl passwd -1 -salt `openssl rand -hex 4` 'redhat'
    $1$ebeb198a$psvA.N7JrPpsGTs33OI2Q0
    [root@localhost ~]# cobbler setting edit --name=default_password_crypted --value='$1$ebeb198a$psvA.N7JrPpsGTs33OI2Q0
    
    • 安装电源管理
    yum install fence-agents -y
    
    • 配置dhcp
    #cobbler setting edit --name=manage_dhcp --value=1
    #vi /etc/cobbler/dhcp.template
    subnet 192.168.1.0 netmask 255.255.255.0 {                          #子网
     option routers             192.168.1.1;                        #网关
     option domain-name-servers 114.114.114.114;                    #dns
     option subnet-mask         255.255.255.0;                      #子网掩码
     range dynamic-bootp        192.168.1.100 192.168.1.254;        #dhcp池      
     default-lease-time         21600;                          
     max-lease-time             43200;
     next-server                $next_server;
    
    • 重启cobbler和同步
    systemctl restart cobblerd 
    cobbler sync
    
    • 验证端口
    ss -anltup | egrep ':80|:67|:69'
    

    • 正常启动页面
  • 相关阅读:
    easyUI之tree
    MSSQL索引优化
    MongoDB学习笔记(一) MongoDB介绍及安装
    项目经理必备的11种人际关系技能
    http协议详细介绍
    ERP存储过程
    UVA1339 UVALive3213 POJ2159 ZOJ2658 Ancient Cipher【密码】
    UVA1588 UVALive3712 POJ3158 Kickdown
    UVA1588 UVALive3712 POJ3158 Kickdown
    UVA10340 POJ1936 ZOJ1970 All in All【字符串匹配】
  • 原文地址:https://www.cnblogs.com/lovelinux199075/p/9009550.html
Copyright © 2011-2022 走看看