foreman 批量部署服务
2019-04-19 本文已影响0人
bjmingyang
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