阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Ubuntu 14.04 上如何安装 Foreman

82次阅读
没有评论

共计 2449 个字符,预计需要花费 7 分钟才能阅读完成。

Foreman 是一个集成的数据中心生命周期管理工具, 提供了服务开通, 配置管理以及报告 功能, 和 Puppet Dahboard 一样,Foreman 也是一个 Ruby on Rails 程序.Foreman 和 Dashboard 不同的地方是在于,Foreman 更多的关注服务开通和管理数据中心的能力, 例如和引导工具,PXE 启动服务器,DHCP 服务器及服务 器开通工具进行集成.

Foreman 机器统一管理平台

  • Foreman 可以与 Puppet 集成使用, 通常是作为 puppet 的前端接入.
  • Foreman takes care of provisioning until the point puppet is running, allowing Puppet to do what it does best.(太难翻了 -_-!!)
  • Foreman 能够通过 Facter 组件显示系统目录信息, 并且可以从 Puppet 主机报表中提供实时信息
  • Foreman 能够准备你管理新机器的所有工作. 它的设计目标是能够自动化的完成所有手工管理的工作, 通过 Foreman 可以重新配置机器.
  • Foreman 能够管理大规模 (当然也包括小规模) 的, 企业级的的网络, 可能有很多域, 子网和很多 puppet master 节点.Foreman 也可以实现配置版本的回溯.

Foreman 可以运行在几乎所有流行的 Linux 系统上,如:

  • RHEL / CentOS / Fedora / Oracle Enterprise Linux / Scientific Linux
  • SUSE/openSUSE
  • Debian/Ubuntu
  • CoreOS
  • JunOS

也支持很多云供应商,如:

  • VMWare
  • Amazon EC2
  • Libvirt
  • OpenStack
  • oVirt and RHEV
  • Rackspace
  • Google Compute engine

如何安装
 好了,现在我们进入主题,按照以下命令输入,首先切换到 Root 账户:

sudo su

或者输入

su

启用 Puppet labs 和 Foreman 库:

apt-get -y install ca-certificates
 wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
 dpkg -i puppetlabs-release-trusty.deb
 echo “deb http://deb.theforeman.org/ trusty 1.9” > /etc/apt/sources.list.d/foreman.list
 echo “deb http://deb.theforeman.org/ plugins 1.9” >> /etc/apt/sources.list.d/foreman.list
 wget -q http://deb.theforeman.org/pubkey.gpg -O- | apt-key add –

更新源:

apt-get update

下载 Foreman-installer 安装脚本:

apt-get -y install foreman-installer

运行 Foreman 安装命令:

foreman-installer

几分钟后,你会看到下面的输出内容:

[…]

Success!
 * Foreman is running at https://server.unixmen.local
 Initial credentials are admin / jrPiWSpSBXBdzv57
 * Foreman Proxy is running at https://server.unixmen.local:8443
 * Puppetmaster is running at port 8140
 The full log is at /var/log/foreman-installer/foreman-installer.log

记下其中以粗体显示的用户名和密码。后面我们需要用来访问 Foreman 面板。

配置 Foreman

首先,我们需要启用“diffs”,这将有助于你看到 Foreman 的报表。

编辑 /etc/puppet/puppet.conf 文件:

vi /etc/puppet/puppet.conf

找到以下行并修改为 ture:

[…]

show_diff = true

[…]

保存并关闭文件。

接下来,我们需要将 Foreman 主机添加到 Foreman 的数据库。运行:

puppet agent –test

输出内容:

Warning: Unable to fetch my node definition, but the agent run will continue:
 Warning: Error 400 on SERVER: Failed to find server1.unixmen.local via exec: Execution of‘/etc/puppet/node.rb server1.unixmen.local’returned 1:
 Info: Retrieving pluginfacts
 Info: Retrieving plugin
 Info: Caching catalog for server1.unixmen.local
 Info: Applying configuration version‘1441613934’
Notice: Finished catalog run in 0.22 seconds

注意:Puppet 3+ 版本将显示警告消息:the first time that the node can’t be found。不用理会警告继续。

访问 Foreman Web 控制台

打开 Web 浏览器,然后导航至:https://IP 地址 /。

会出现界面,输入之前记录的登陆账户及密码。

Ubuntu 14.04 上如何安装 Foreman

下载我们可以进去了解整个控制台界面:

Ubuntu 14.04 上如何安装 Foreman

Ubuntu 14.04 上如何安装 Foreman

官方网站:http://theforeman.org/

更多 Ubuntu 相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-09/122793.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-21发表,共计2449字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中