美文网首页
foreman 批量部署服务

foreman 批量部署服务

作者: bjmingyang | 来源:发表于2019-04-19 17:12 被阅读0次

    forman是我很久以前就用过的puppet的前端,一直没怎么看批量部署这块,开始补上

    安装:

    hostnamectl set-hostname foreman01s.example.com
    yum -y install https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
    sudo yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    sudo yum -y install https://yum.theforeman.org/releases/1.19/el7/x86_64/foreman-release.rpm
    yum -y install foreman-installer
    #vi /etc/hosts
    foreman-installer -i
    mount -o,loop CentOS-7-x86_64-Everything-1804.iso /mnt/
    mkdir -p /var/www/pub/CentOS_7_x86_64
    cp -rpv /mnt/* /var/www/pub/CentOS_7_x86_64/
    yum install vsftpd -y
    systemctl start vsftpd
    systemctl enable vsftpd
    mkdir  -p /var/ftp/pub/CentOS-7.5.1804
    cp -rpv /mnt/* /var/ftp/pub/CentOS-7.5.1804
    
    

    通过foreman -i 确定要安装的模块
    然后登陆web界面,
    添加安装源
    综合考虑,选择通过ftp的方式提供安装源,这样可以allinone,通过http 容易和foreman的端口冲突,

    puppet module install puppetlabs-ntp

    相关文章

      网友评论

          本文标题:foreman 批量部署服务

          本文链接:https://www.haomeiwen.com/subject/vbcqgqtx.html