Ubuntu 14.04上如何安装Foreman

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

  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 账户:  

  1. sudo su 

  或者输入  

  1. su 

  启用 Puppet labs 和 Foreman 库:

 

  1. apt-get -y install ca-certificates 
  2.  
  3. wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb 
  4.  
  5. dpkg -i puppetlabs-release-trusty.deb 
  6.  
  7. echo "deb http://deb.theforeman.org/ trusty 1.9" > /etc/apt/sources.list.d/foreman.list 
  8.  
  9. echo "deb http://deb.theforeman.org/ plugins 1.9" >> /etc/apt/sources.list.d/foreman.list 
  10.  
  11. wget -q http://deb.theforeman.org/pubkey.gpg -O- | apt-key add - 

  更新源:  

  1. apt-get update 

  下载 Foreman-installer 安装脚本:  

  1. apt-get -y install foreman-installer 

  运行 Foreman 安装命令:  

  1. 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 面板。

#p#

  配置Foreman

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

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

  1. vi /etc/puppet/puppet.conf 

  找到以下行并修改为ture:

  […]

  show_diff = true

  […]

  保存并关闭文件。

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

  1. 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地址/。

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

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

  

 


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

责任编辑:火凤凰 来源: IMCN
相关推荐

2014-05-30 10:08:06

2014-04-28 15:29:02

Ubuntu 14.0SteamOS

2015-08-07 15:46:13

Ubuntu安装

2015-12-07 14:47:15

UbuntuGIMP 2.8.16Linux

2019-08-30 11:20:28

UbuntuVirtualBoxLinux

2018-10-15 15:23:50

UbuntupipPython

2023-08-08 12:38:52

2024-01-04 11:50:00

UbuntuDocker

2011-01-28 09:20:02

CentOSpuppetforeman

2019-08-02 15:30:42

UbuntuMongoDB命令

2015-12-01 10:54:44

Ubuntu 15.1NVIDIA 358.Linux

2014-05-30 10:31:45

2013-07-25 10:00:30

UbuntuVirtualBox

2021-09-11 15:41:55

UbuntuDropbox云服务

2021-07-12 14:47:16

UbuntuZlib代码

2017-03-29 16:18:11

LinuxUbuntuRedmine

2015-10-16 10:07:22

Justniffer安装Ubuntu

2014-07-30 13:37:15

ubuntu14.04bochs

2018-05-25 11:55:41

2018-09-30 10:35:29

UbuntuCinnamon桌面环境
点赞
收藏

51CTO技术栈公众号