欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

foreman ubuntu16 快速安装

程序员文章站 2023-03-25 22:45:13
quickstart guide the foreman installer is a collection of puppet modules that instal...

quickstart guide
the foreman installer is a collection of puppet modules that installs everything required for a full working foreman setup. it uses native os packaging (e.g. rpm and .deb packages) and adds necessary configuration for the complete installation.

components include the foreman web ui, smart proxy, passenger, a puppet master (either puppet server or under passenger), and optionally tftp, dns and dhcp servers. it is configurable and the puppet modules can be read or run in “no-op” mode to see what changes it will make.

supported platforms
centos, scientific linux or oracle linux 7, x86_64
debian 9 (stretch), i386/amd64/aarch64
red hat enterprise linux 7, x86_64 ubuntu 16.04 (xenial),
i386/amd64/aarch64
other operating systems will need to use alternative installation
methods (see the manual).
the installation will require 4gb of memory, see system requirements for more information.

installation
the foreman installer uses puppet (> 3.x required) to install foreman. this guide assumes that you have a newly installed operating system, on which the installer will setup foreman, a puppet master, and the smart proxy by default. it's not advisable to follow the steps below on an existing system, since the installer will affect the configuration of several components.

select operating system
to provide specific installation instructions, please select your operating system:

repositories
using puppet 5.x is recommended, which is available from the puppet labs repository. to use puppet 5.x with puppet agent and puppet server:

sudo apt-get -y install ca-certificates
cd /tmp && wget
sudo dpkg -i /tmp/puppet5-release-xenial.deb
1.sudo apt-get -y install ca-certificates

2.cd /tmp && wget https://apt.puppetlabs.com/puppet5-release-xenial.deb

3.sudo dpkg -i /tmp/puppet5-release-xenial.deb

enable the foreman repo:

echo "deb xenial 1.18" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb plugins 1.18" | sudo tee -a /etc/apt/sources.list.d/foreman.list
sudo apt-get -y install ca-certificates
wget -q -o- | sudo apt-key add

echo "deb http://deb.theforeman.org/ xenial 1.18" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb http://deb.theforeman.org/ plugins 1.18" | sudo tee -a /etc/apt/sources.list.d/foreman.list
sudo apt-get -y install ca-certificates
wget -q https://deb.theforeman.org/pubkey.gpg -o- | sudo apt-key add 

-
downloading the installer

sudo apt-get update && sudo apt-get -y install foreman-installer
1sudo apt-get update && sudo apt-get -y install foreman-installer
running the installer
ensure that ping $(hostname -f) shows the real ip address, not 127.0.1.1. change or remove this entry from /etc/hosts if present.
the installation run is non-interactive, but the configuration can be customized by supplying any of the options listed in foreman-installer –help, or by running foreman-installer -i for interactive mode. more examples are given in the installation options section. adding -v will disable the progress bar and display all changes. to run the installer, execute:

sudo foreman-installer
1sudo foreman-installer
after it completes, the installer will print some details about where to find foreman and the smart proxy and puppet master if they were installed along foreman. output should be similar to this:

foreman is running at
initial credentials are admin / 3ekw5xtyxcoxxs29
foreman proxy is running at
puppetmaster is running at port 8140
the full log is at /var/log/foreman-installer/foreman-installer.log

总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对的支持。如果你想了解更多相关内容请查看下面相关链接