<?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>puppet installation ubuntu Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/puppet-installation-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 10 Dec 2020 22:41:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Puppet On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-puppet-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-puppet-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 14 Dec 2020 02:36:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[How To Install Puppet On Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[puppet installation ubuntu]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26165</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install Puppet On Ubuntu 20.04. Puppet is an open source based upon automated admin engine to help you perform admin tasks smoothly. Puppet consists of Master &#38; Agent used for deploying, configuring &#38; managing the servers &#38; perform administrative tasks. For instance, to add new users, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-puppet-on-ubuntu-20-04/">How To Install Puppet On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that how to install Puppet On Ubuntu 20.04. Puppet is an open source based upon automated admin engine to help you perform admin tasks smoothly. Puppet consists of Master &amp; Agent used for deploying, configuring &amp; managing the servers &amp; perform administrative tasks. For instance, to add new users, to install different packages and many more. So, it helps the system admins to save time and automate the functions.</p>



<p>So, here we&#8217;ll see that how we can install Puppet on our Ubuntu system.</p>



<h2>Step 1: Update Your System</h2>



<p>First of all update your system to have the latest updates installed.</p>



<pre class="wp-block-preformatted">sudo apt update -y</pre>



<p>Once the update finished, move towards the next step.</p>



<h3>Step 2: Setup Hostname</h3>



<p>Edit the<strong> /etc/hosts</strong> file on both nodes (master,client)</p>



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



<p>Paste the below data.</p>



<pre class="wp-block-preformatted">puppet-master-ip puppetmaster puppet<br>puppet-client-ip puppetclient</pre>



<p>Then save the file and exit.</p>



<h3>Step 3: Install Puppet Server On Ubuntu</h3>



<p>To install Puppet server on Ubuntu, you&#8217;ve to add it&#8217;s repository in Ubuntu system and then install it from there. To download the latest version of Puppet run the following command.</p>



<pre class="wp-block-preformatted">wget https://apt.puppetlabs.com/puppet6-release-focal.deb</pre>



<p>Once it is downloaded, install it by typing</p>



<pre class="wp-block-preformatted">dpkg -i puppet6-release-focal.deb</pre>



<p>When the installation is finished, update the repo &amp; then install the Puppet server by running.</p>



<pre class="wp-block-preformatted">apt update -y
apt install puppetserver -y</pre>



<p>Now, edit the file <strong>/etc/default/puppetserver</strong> &amp; set the memory size to 1g like below:</p>



<pre class="wp-block-preformatted">JAVA_ARGS="-Xms1g -Xmx1g -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger"</pre>



<p>Then, save &amp; exit the file.</p>



<p>To start the Puppet services type</p>



<pre class="wp-block-preformatted">systemctl start puppetserver</pre>



<p>To enable the puppet services on boot hit</p>



<pre class="wp-block-preformatted">systemctl enable puppetserver</pre>



<p>Make sure that the service is in running condition.</p>



<pre class="wp-block-preformatted">systemctl status puppetserver
Loaded: loaded (/lib/systemd/system/puppetserver.service; disabled; vendor preset: enabled) Active: <strong>active (running)</strong> since Sat 2020-09-05 09:33:55 UTC; 3s ago Process: 3673 ExecStart=/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver start (code=exited, status=0/SUCCESS) Main PID: 3715 (java) Tasks: 42 (limit: 4915) Memory: 962.3M CGroup: /system.slice/puppetserver.service ??3715 /usr/bin/java -Xms2g -Xmx2g -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -XX:OnOutOfMemoryError="kill&gt; Dec 01 09:33:08 puppetmaster systemd[1]: Starting puppetserver Service... Dec 01 09:33:55 puppetmaster systemd[1]: Started puppetserver Service.</pre>



<h3>Step 4: Install &amp; Configure Puppet Agent</h3>



<p>To install Puppet agent on Ubuntu 20.04, you&#8217;ve to add the repository. Run the below command to do so</p>



<pre class="wp-block-preformatted">wget https://apt.puppetlabs.com/puppet6-release-focal.deb<br>dpkg -i puppet6-release-focal.deb</pre>



<p>Update the repo &amp; install the puppet agent by typing</p>



<pre class="wp-block-preformatted">apt-get update -y<br>apt-get install puppet-agent -y</pre>



<p>Once it is installed, edit the <strong>/etc/puppetlabs/puppet/puppet.conf</strong> file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/puppetlabs/puppet/puppet.conf</pre>



<p>Then paste the below content:</p>



<pre class="wp-block-preformatted">[main]<br>certname = puppetclient<br>server = puppetmaster</pre>



<p>Finally run the below commands to start &amp; enable the puppet.</p>



<pre class="wp-block-preformatted">systemctl start puppet<br>systemctl enable puppet</pre>



<p>Fire the below command to verify the status of Puppet.</p>



<pre class="wp-block-preformatted">systemctl status puppet
puppet.service - Puppet agent
Loaded: loaded (/lib/systemd/system/puppet.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-09-05 09:43:15 UTC; 22s ago
Main PID: 1435 (puppet)
Tasks: 2 (limit: 2353)
Memory: 52.8M
CGroup: /system.slice/puppet.service
??1435 /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet agent --no-daemonize
Dec 01 09:43:15 puppetagent systemd[1]: Started Puppet agent.</pre>



<h3>Step 5: Sign Puppet Agent Node Certificate</h3>



<p>Type the below command on Master node.</p>



<pre class="wp-block-preformatted">/opt/puppetlabs/bin/puppetserver ca list</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">Requested Certificates:
puppetclient (SHA256) A4:9A:E9:87:8B:54:0A:4F:A0:78:65:1A:3C:99:B5:EC:31:9E:BB:4C:17:8A:50:16:E9:1E:3D:D6:27:74:89:85
puppetmaster (SHA256) E9:25:4C:51:4E:47:D7:44:11:1F:C5:A9:4E:96:D9:E8:3A:EB:A0:01:48:06:B5:EF:3F:C4:09:03:90:3E:D8:2D</pre>



<p>Hit the below command to sign all certs.</p>



<pre class="wp-block-preformatted">/opt/puppetlabs/bin/puppetserver ca sign --all</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">Successfully signed certificate request for puppetclient<br>Successfully signed certificate request for puppetmaster</pre>



<pre class="wp-block-verse">Verify the communication by typing</pre>



<pre class="wp-block-preformatted">/opt/puppetlabs/bin/puppet agent --test</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">Info: Using configured environment 'production'<br>Info: Retrieving pluginfacts<br>Info: Retrieving plugin<br>Info: Retrieving locales<br>Info: Caching catalog for puppetclient<br>Info: Applying configuration version '1599300398'<br>Notice: Applied catalog in 0.02 seconds</pre>



<p>So, this is how you can install puppet on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-puppet-on-ubuntu-20-04/">How To Install Puppet On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-puppet-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
