foreman ubuntu16 快速安装
QuickstartGuide
TheForemaninstallerisacollectionofPuppetmodulesthatinstallseverythingrequiredforafullworkingForemansetup.ItusesnativeOSpackaging(e.g.RPMand.debpackages)andaddsnecessaryconfigurationforthecompleteinstallation.
ComponentsincludetheForemanwebUI,SmartProxy,Passenger,aPuppetmaster(eitherPuppetServerorunderPassenger),andoptionallyTFTP,DNSandDHCPservers.ItisconfigurableandthePuppetmodulescanbereadorrunin“no-op”modetoseewhatchangesitwillmake.
Supportedplatforms
CentOS,ScientificLinuxorOracleLinux7,x86_64
Debian9(Stretch),i386/amd64/aarch64
RedHatEnterpriseLinux7,x86_64Ubuntu16.04(Xenial),
i386/amd64/aarch64
Otheroperatingsystemswillneedtousealternativeinstallation
methods(seethemanual).
Theinstallationwillrequire4GBofmemory,seeSystemRequirementsformoreinformation.
Installation
TheForemaninstallerusesPuppet(>3.xrequired)toinstallForeman.Thisguideassumesthatyouhaveanewlyinstalledoperatingsystem,onwhichtheinstallerwillsetupForeman,aPuppetmaster,andtheSmartProxybydefault.It'snotadvisabletofollowthestepsbelowonanexistingsystem,sincetheinstallerwillaffecttheconfigurationofseveralcomponents.
Selectoperatingsystem
Toprovidespecificinstallationinstructions,pleaseselectyouroperatingsystem:
Repositories
UsingPuppet5.xisrecommended,whichisavailablefromthePuppetLabsrepository.TousePuppet5.xwithPuppetAgentandPuppetServer:
sudoapt-get-yinstallca-certificates
cd/tmp&&wgethttps://apt.puppetlabs.com/puppet5-release-xenial.deb
sudodpkg-i/tmp/puppet5-release-xenial.deb
1.sudoapt-get-yinstallca-certificates
2.cd/tmp&&wgethttps://apt.puppetlabs.com/puppet5-release-xenial.deb
3.sudodpkg-i/tmp/puppet5-release-xenial.deb
EnabletheForemanrepo:
echo"debhttp://deb.theforeman.org/xenial1.18"|sudotee/etc/apt/sources.list.d/foreman.list
echo"debhttp://deb.theforeman.org/plugins1.18"|sudotee-a/etc/apt/sources.list.d/foreman.list
sudoapt-get-yinstallca-certificates
wget-qhttps://deb.theforeman.org/pubkey.gpg-O-|sudoapt-keyadd
echo"debhttp://deb.theforeman.org/xenial1.18"|sudotee/etc/apt/sources.list.d/foreman.list echo"debhttp://deb.theforeman.org/plugins1.18"|sudotee-a/etc/apt/sources.list.d/foreman.list sudoapt-get-yinstallca-certificates wget-qhttps://deb.theforeman.org/pubkey.gpg-O-|sudoapt-keyadd
-
Downloadingtheinstaller
sudoapt-getupdate&&sudoapt-get-yinstallforeman-installer
1sudoapt-getupdate&&sudoapt-get-yinstallforeman-installer
Runningtheinstaller
Ensurethatping$(hostname-f)showstherealIPaddress,not127.0.1.1.Changeorremovethisentryfrom/etc/hostsifpresent.
Theinstallationrunisnon-interactive,buttheconfigurationcanbecustomizedbysupplyinganyoftheoptionslistedinforeman-installer–help,orbyrunningforeman-installer-iforinteractivemode.MoreexamplesaregivenintheInstallationOptionssection.Adding-vwilldisabletheprogressbaranddisplayallchanges.Toruntheinstaller,execute:
sudoforeman-installer
1sudoforeman-installer
Afteritcompletes,theinstallerwillprintsomedetailsaboutwheretofindForemanandtheSmartProxyandPuppetmasteriftheywereinstalledalongForeman.Outputshouldbesimilartothis:
Foremanisrunningathttps://theforeman.example.com
Initialcredentialsareadmin/3ekw5xtyXCoXxS29
ForemanProxyisrunningathttps://theforeman.example.com:8443
Puppetmasterisrunningatport8140
Thefulllogisat/var/log/foreman-installer/foreman-installer.log
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对毛票票的支持。如果你想了解更多相关内容请查看下面相关链接