<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Foreman &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/foreman/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Thu, 03 Dec 2020 10:25:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Foreman &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Install Foreman on Ubuntu 18.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-foreman-on-ubuntu-18-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-foreman-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 17 Mar 2020 10:06:22 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1507</guid>

					<description><![CDATA[Foreman is a special tool to help you configure virtual and dedicated servers. This tool is free and it has an open source code. He is also ready to help you configure and control the server. It is a kind of a complete lifecycle management tool for physical and virtual [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><em><a href="https://theforeman.org/">Foreman </a></em></strong>is a special tool to help you configure <strong><em><a href="https://hostry.com/products/vps/">virtual</a></em></strong><a href="https://hostry.com/products/vps/"> </a>and <strong><em><a href="https://hostry.com/products/dedicated-servers/">dedicated</a></em></strong> servers. This tool is free and it has an open source code. He is also ready to help you configure and control the server. It is a kind of a complete lifecycle management tool for physical and virtual servers.</p>



<h2 id="system-update" >System update</h2>



<p>To get started, you need to upgrade your system before you install Foreman </p>



<pre class="wp-block-code"><code>apt-get update &amp;&amp; apt-get upgrade </code></pre>



<h2 id="hostname-setting" >Hostname setting </h2>



<p>At this point, you need to edit the <strong>\etc\hosts</strong> file. You can edit from any text editor. </p>



<pre class="wp-block-code"><code>nano /etc/hosts</code></pre>



<p>Add your server </p>



<pre class="wp-block-code"><code>Your IP address vps.hostry.com</code></pre>



<p>Then, save your file and exit the text editor. After that, you need to configure the host name. On Ubuntu, you can use <strong><em>hostnamectl </em></strong></p>



<pre class="wp-block-code"><code>hostnamectl set-hostname vps.hostry.com</code></pre>



<h2 id="install-foreman" >Install Foreman </h2>



<p>The Foreman Installer is a set of Puppet modules that installs everything you need for a fully functional Foreman installation. Now let&#8217;s set up the <strong>EPEL</strong>, <strong>Puppet</strong>, and <strong>Foreman</strong> repositories.</p>



<pre class="wp-block-code"><code>echo "deb http://deb.theforeman.org/ xenial 1.12" > /etc/apt/sources.list.d/foreman.list
echo "deb http://deb.theforeman.org/ plugins 1.12" >> /etc/apt/sources.list.d/foreman.list
apt-get -y install ca-certificates
wget -q https://deb.theforeman.org/pubkey.gpg -O- | apt-key add -</code></pre>



<p>Install the Foreman installer so that it can install Foreman and all the necessary packages.</p>



<pre class="wp-block-code"><code>apt-get update &amp;&amp; apt-get -y install foreman-installer</code></pre>



<p>Execute the Foreman installer.</p>



<pre class="wp-block-code"><code>foreman-installer --foreman-admin-password=mysupersecretpassword</code></pre>



<p>After you have completed, and if you have completed the correct steps, you will see &#8220;<strong>SUCCESS</strong>&#8221; </p>



<h2 id="firewall-configuration" >Firewall configuration </h2>



<p>You need to execute the following commands, one at a time </p>



<pre class="wp-block-code"><code>ufw allow 53/tcp
ufw allow 67-69/udp
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 3000/tcp
ufw allow 3306/tcp
ufw allow 5910-5930/tcp
ufw allow 5432/tcp
ufw allow 8140/tcp
ufw allow 8443/tcp</code></pre>



<p>Then enable the firewall service </p>



<pre class="wp-block-code"><code>ufw enable</code></pre>



<p>Next, you will be presented with a window for accepting changes, press <strong><em>Y</em></strong> </p>



<pre class="wp-block-code"><code>Command may disrupt existing ssh connections. Proceed with operation (y|n)?</code></pre>



<h2 id="web-interface" >Web Interface </h2>



<p>Open a web browser and go to http://YourServerIP or http://FQDN to access the Foreman web interface. You will see the login page, so enter your Foreman username and password that we created earlier with mysupersecretpassword, and then click the Login button.</p>



<h2 id="install-ntp-module" >Install NTP Module</h2>



<pre class="wp-block-code"><code>puppet module install -i /etc/puppet/environments/production/modules saz/ntp</code></pre>



<p>In the Foreman web console, go to Configure&gt; Puppet&gt; Classes and click Import from hostname (server.vultr.local) to read the available Puppet classes from the Puppet wizard and populate the Foreman database. Select the NTP module and click on the Update button. </p>



<p>Done! From now on, you can control the NTP module and Foreman from its control panel.

</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-foreman-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
