目前的环境基于
centos 7 部署的,有需要的朋友可以直接按我下面的方式跑,foreman跟katello的版本可以去官方文档翻一翻,客户换成较新的版本
- 防火墙、selinux关闭
systemctl stop firewalld
setenforce 0
- foreman、katello、puppet、epel-release rpm下载
yum localinstall https://yum.theforeman.org/katello/4.4/katello/el7/x86_64/katello-repos-latest.rpm
yum localinstall https://yum.theforeman.org/releases/3.2/el7/x86_64/foreman-release.rpm
yum localinstall https://yum.puppet.com/puppet7-release-el-7.noarch.rpm
yum install epel-release
- 修改Sclo repo:
vim /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo.
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/rh/
- 更新源后安装fk
yum update
yum install foreman-installer-katello
- 修改本机域名
hostnamectl set-hostname cjb.theforeman.com
hostname -f
echo “192.168.2.171 cjb.theforeman.com“ >> /etc/hosts
- 运行foreman-install
foreman-installer --scenario katello
- 用返回的账号密码信息进行登录后web配置