<?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>scmgalaxy K, Author at scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/author/scmgalaxy/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/author/scmgalaxy/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:07:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Use of runtime variables to save into another variable using register in Ansible</title>
		<link>https://www.scmgalaxy.com/tutorials/use-of-runtime-variables-to-save-into-another-variable-using-register-in-ansible/</link>
					<comments>https://www.scmgalaxy.com/tutorials/use-of-runtime-variables-to-save-into-another-variable-using-register-in-ansible/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 09:38:49 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[register]]></category>
		<category><![CDATA[Variables]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5303</guid>

					<description><![CDATA[<p>Another major use of variables is running a command and using the result of that command to save the result [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/use-of-runtime-variables-to-save-into-another-variable-using-register-in-ansible/">Use of runtime variables to save into another variable using register in Ansible</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-5308" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/ansible.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/ansible.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/ansible-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>Another major use of variables is running a command and using the result of that command to save the result into a variable</p>
<p>&nbsp;</p>
<div>
<div>
<pre>- hosts: all
  tasks:
  - name: Ansible register variable basic example
    shell: "find *.txt"
    args:
      chdir: "/Users/mdtutorials2/Documents/Ansible"
    register: find_output

  - debug:
      var: find_output
</pre>
<pre>#
- hosts: all
  tasks:
  - name: Ansible register with_items example
    shell: "find *.txt"
    args:
      chdir: "/Users/mdtutorials2/Documents/Ansible"
    register: with_output

  - shell: "cp {{ item }} {{item}}_bkp"
    with_items:
      - "{{ with_output.stdout_lines }}"
</pre>
</div>
</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/use-of-runtime-variables-to-save-into-another-variable-using-register-in-ansible/">Use of runtime variables to save into another variable using register in Ansible</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/use-of-runtime-variables-to-save-into-another-variable-using-register-in-ansible/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ansible &#038; Ansible Tower Variable Precedence Hierarchy</title>
		<link>https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 07:16:03 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[Ansible Tower]]></category>
		<category><![CDATA[Hierarchy]]></category>
		<category><![CDATA[Precedence]]></category>
		<category><![CDATA[Variable]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5300</guid>

					<description><![CDATA[<p>Ansible &#38; Ansible Tower Variable Precedence Hierarchy (last listed wins)</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/">Ansible &#038; Ansible Tower Variable Precedence Hierarchy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Ansible &amp; Ansible Tower Variable Precedence Hierarchy (last listed wins)</strong></p>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/Architecture-Tower_Variable_Precedence_Hierarchy.png"><img decoding="async" class="aligncenter size-full wp-image-5301" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/Architecture-Tower_Variable_Precedence_Hierarchy.png" alt="" width="525" height="534" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/Architecture-Tower_Variable_Precedence_Hierarchy.png 525w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/09/Architecture-Tower_Variable_Precedence_Hierarchy-295x300.png 295w" sizes="(max-width: 525px) 100vw, 525px" /></a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/">Ansible &#038; Ansible Tower Variable Precedence Hierarchy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ansible-ansible-tower-variable-precedence-hierarchy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use template in Ansible?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-template-in-ansible/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-template-in-ansible/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 07:08:49 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[jinja2]]></category>
		<category><![CDATA[Playbook]]></category>
		<category><![CDATA[template]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5296</guid>

					<description><![CDATA[<p>How to use template in Ansible? ##### Step 1 &#8211; Create your inventory file with ##### ##### Step 2 &#8211; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-template-in-ansible/">How to use template in Ansible?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>How to use template in Ansible?</strong></p>
<p><strong>##### Step 1 &#8211; Create your inventory file with #####</strong></p>
<pre class="brush: plain; title: ; notranslate">$ vi inventory
35.154.85.120 ansible_user=root ansible_ssh_private_key_file=remote.pem
35.154.85.120 ansible_user=root ansible_ssh_private_key_file=remote.pem</pre>
<p><strong>##### Step 2 &#8211; Create templates directory #####</strong></p>
<pre class="brush: plain; title: ; notranslate">$ mkdir templates
$ vi templates/index.j2

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;h1&gt; Welcome to DevOpsSchool.com Ansible Training&lt;/h1&gt;
&lt;h3&gt; This is Deployed in OS Family - {{ ansible_os_family }} &lt;/h3&gt;
&lt;h3&gt; This is Deployed in OS Family - {{ ansible_hostname }} &lt;/h3&gt;
&lt;h3&gt; Company Name - {{ companyname }} &lt;/h3&gt;
companyname

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>&lt;strong&gt;##### Step 3 &#8211; Create a playbook.yaml#####&lt;/strong&gt;</p>
<pre class="brush: plain; title: ; notranslate">---
- name: This sets up an httpd webserver
hosts: all
remote_user: ec2-user
become: yes
vars:
ansible_ssh_private_key_file: remote.pem
companyname: DevOpsSchool.com
pack: httpd
tasks:
- name: Install the httpd apps
yum: name={{ pack }}
- name: Deploy configuration File
template: src=templates/index.j2 dest=/var/www/html/index.html
- name: start the httpd service
service: name={{ pack }} state=started</pre>
<p><strong>##### Step 4 &#8211; Last comamds to execute #####</strong></p>
<pre class="brush: plain; title: ; notranslate">$ ansible-playbook -i inventory httpd.yaml</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-template-in-ansible/">How to use template in Ansible?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-use-template-in-ansible/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Run Ansible Adhoc commands or playbook in Local mode</title>
		<link>https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/</link>
					<comments>https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 06:51:08 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[Adhoc]]></category>
		<category><![CDATA[Local mode]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Playbook]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5294</guid>

					<description><![CDATA[<p>If you are trying to run Ansible Adhoc commands or playbook in Local mode, these articles will help you. Ansible [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/">Run Ansible Adhoc commands or playbook in Local mode</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are trying to run Ansible Adhoc commands or playbook in Local mode, these articles will help you.</p>
<p>Ansible can&#8217;t run playbooks locally without ssh if ansible_connection=local is defined in the hosts file, although it can run playbooks locally without ssh with connection: local in the playbook or with flag &#8211;connection=local.</p>
<p><strong># # # # # # # # # # # # Method 1 # # # # # # # # # # # # # # # # # #</strong></p>
<pre class="brush: plain; title: ; notranslate">ansible 127.0.0.1 -m file -a &quot;dest=/opt/a.txt mode=600 state=touch&quot;
ansible 127.0.0.1 -m file -a &quot;dest=/opt/a.txt mode=600 state=file&quot;</pre>
<p><strong># # # # # # # # # # # # Method 2 # # # # # # # # # # # # # # # # # #</strong></p>
<pre class="brush: plain; title: ; notranslate">Inventory file
127.0.0.1 ansible_connection=local
localhost ansible_connection=local</pre>
<p><strong># # # # # # # # # # # # Method 3 # # # # # # # # # # # # # # # # # #</strong></p>
<pre class="brush: plain; title: ; notranslate">---

- name: run the playbook tasks on the localhost
hosts: 127.0.0.1
connection: local
become: yes
tasks:

- name: print out the hostname of target
command: hostname

- name: ensure aptitude is installed
command: apt-get -y install aptitude

- name: update the apt package index i.e. apt-get update
apt: update_cache=yes

- name: upgrade system packages i.e. apt-get upgrade
apt: upgrade=yes

</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/">Run Ansible Adhoc commands or playbook in Local mode</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ansible Playbook Lab &#038; Excercise – Part 2</title>
		<link>https://www.scmgalaxy.com/tutorials/ansible-playbook-lab-excercise-part-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ansible-playbook-lab-excercise-part-2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 05 Sep 2018 08:55:39 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[excercise]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Module]]></category>
		<category><![CDATA[Playbook]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5289</guid>

					<description><![CDATA[<p>Execution Mode – Remote Write a Ansible Playbook to create a group called “deploy” Write a Ansible Playbook to create [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-playbook-lab-excercise-part-2/">Ansible Playbook Lab &#038; Excercise – Part 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Execution Mode – Remote</p>
<ol>
<li>
<h4>Write a Ansible Playbook to create a group called “deploy”</h4>
</li>
<li>
<h4>Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “group” and with /bin/bash shell.</h4>
</li>
<li>
<h4>Write a Ansible Playbook to install package named “httpd” in RHEL/centos.</h4>
</li>
<li>
<h4>Write a Ansible Playbook to start and enable the service named “httpd”</h4>
</li>
<li>
<h4>Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents.</h4>
</li>
<li>
<h4>Write a Ansible Playbook to reboot a self machine.</h4>
</li>
<li>
<h4>Write a Ansible Playbook to install a package called “git”, “wget”.</h4>
</li>
<li>
<h4>Write a Ansible Playbook to clone git repo. thttps://github.com/scmgalaxy/ansible-role-template</h4>
</li>
<li>
<h4>Now Merge all Top Playbook into one and run and verify</h4>
</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-playbook-lab-excercise-part-2/">Ansible Playbook Lab &#038; Excercise – Part 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ansible-playbook-lab-excercise-part-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ansible Adhoc Commands Lab &#038; Excercise &#8211; Part 1</title>
		<link>https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 05 Sep 2018 08:36:10 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[Adhoc]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[excercise]]></category>
		<category><![CDATA[Lab]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5283</guid>

					<description><![CDATA[<p>Execution Mode &#8211; Local Write a Ansible Adhoc Commands to create a group called &#8220;deploy&#8221; Write a Ansible Adhoc Commands [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/">Ansible Adhoc Commands Lab &#038; Excercise &#8211; Part 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Execution Mode &#8211; Local</strong></p>
<ol>
<li>
<h4>Write a Ansible Adhoc Commands to create a group called &#8220;deploy&#8221;</h4>
</li>
<li>
<h4>Write a Ansible Adhoc Commands to create a user called &#8220;deploy-user&#8221; which is part of group called &#8220;group&#8221; and with /bin/bash shell.</h4>
</li>
<li>
<h4>Write a Ansble Adhoc commands install package named &#8220;httpd&#8221; in RHEL/centos.</h4>
</li>
<li>
<h4>Write a Ansible Adhoc commands to start and enable the service named &#8220;httpd&#8221;</h4>
</li>
<li>
<h4>Write a Ansible commands to create a file called &#8220;index.html&#8221; in /var/www/html with some dummy html contents.</h4>
</li>
<li>
<h4>Write a Ansible commands to reboot a self machine.</h4>
</li>
<li>
<h4>Write a Ansible commands to install a package called &#8220;git&#8221;, &#8220;wget&#8221;.</h4>
</li>
<li>
<h4>Write a Ansible Adhoc commands to clone git repo. thttps://github.com/scmgalaxy/ansible-role-template</h4>
</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/">Ansible Adhoc Commands Lab &#038; Excercise &#8211; Part 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Puppet Module Lab &#038; Excercise – Part 1</title>
		<link>https://www.scmgalaxy.com/tutorials/puppet-module-lab-excercise-part-1/</link>
					<comments>https://www.scmgalaxy.com/tutorials/puppet-module-lab-excercise-part-1/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 27 Aug 2018 11:53:03 +0000</pubDate>
				<category><![CDATA[Puppet]]></category>
		<category><![CDATA[excercise]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Module]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[Puppet Module]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5266</guid>

					<description><![CDATA[<p>Puppet Module Lab &#38; Excercise – Part 1 Write a puppet module to setup a webserver(httpd) only in RHEL and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/puppet-module-lab-excercise-part-1/">Puppet Module Lab &#038; Excercise – Part 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Puppet Module Lab &amp; Excercise – Part 1</strong></p>
<ol>
<li>
<h4>Write a puppet module to setup a webserver(httpd) only in RHEL and use the HEREDOC to craete a html code of index.html inside a directory called &#8220;/var/www/html/index.html&#8221;</h4>
</li>
<li>
<h4>Write a puppet module to setup a webserver(httpd) only in RHEL and use the puppet template to create a html code of index.html inside a directory called &#8220;/var/www/html/index.html&#8221;</h4>
</li>
<li>
<h4>Write a puppet module to install git, ntp and wget tools.</h4>
</li>
<li>
<h4>Write a puppet module which has file named with deploy.sh under module&#8217;s files directory. the file should be copied to /opt</h4>
</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/puppet-module-lab-excercise-part-1/">Puppet Module Lab &#038; Excercise – Part 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/puppet-module-lab-excercise-part-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Puppet Program Lab &#038; Excercise – Part 2</title>
		<link>https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 27 Aug 2018 11:36:19 +0000</pubDate>
				<category><![CDATA[Puppet]]></category>
		<category><![CDATA[excercise]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[Puppet excercise]]></category>
		<category><![CDATA[Puppet Program]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5263</guid>

					<description><![CDATA[<p>Puppet Program Lab &#38; Excercise – Part 1 Write a puppet Program to install package &#8220;git&#8221;, &#8220;ntp&#8221; and wget in [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-2/">Puppet Program Lab &#038; Excercise – Part 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Puppet Program Lab &amp; Excercise – Part 1</strong></p>
<ol>
<li>
<h4>Write a puppet Program to install package &#8220;git&#8221;, &#8220;ntp&#8221; and wget in RHEL.</h4>
</li>
<li>
<h4>Which resource declaration can help us to deploy the &#8220;~/.ssh/authorized_keys&#8221; in 1000s of servers?</h4>
</li>
<li>
<h4>Write a puppet Program to extract a tar ball in /opt</h4>
</li>
<li>
<h4>Write a puppet Program to zip a directory which has multiple files.</h4>
</li>
<li>
<h4>Write a puppet Program to reboot the machine?</h4>
</li>
<li>
<h4>Write a puppet program to execute a shell command/script using puppet.</h4>
</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-2/">Puppet Program Lab &#038; Excercise – Part 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Puppet Program Lab &#038; Excercise &#8211; Part 1</title>
		<link>https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-1/</link>
					<comments>https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-1/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 27 Aug 2018 11:19:29 +0000</pubDate>
				<category><![CDATA[Puppet]]></category>
		<category><![CDATA[excercise]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[Puppet excercise]]></category>
		<category><![CDATA[puppet lab]]></category>
		<category><![CDATA[Puppet Program]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5261</guid>

					<description><![CDATA[<p>Puppet Program Lab &#38; Excercise &#8211; Part 1 Write a Puppet Program to create a file named with &#8220;file.txt&#8221; in [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-1/">Puppet Program Lab &#038; Excercise &#8211; Part 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Puppet Program Lab &amp; Excercise &#8211; Part 1</strong></p>
<ol>
<li>Write a Puppet Program to create a file named with &#8220;file.txt&#8221; in /opt/ owner by ec2-user and execute permission?</li>
<li>Write a Puppet Program to create a group called &#8220;scmgalaxy-admins&#8221;</li>
<li>Write a Puppet Program to create a usser called &#8220;deploy&#8221; which should be a part of &#8220;scmgalaxy-admins&#8221; group.</li>
<li>Wrire a Puppet Program and insert following in /etc/hosts<br />
10.4.5.5 test.scmgalaxy.com</li>
<li>Write a puppet program to display following lines when Sends an arbitrary message to the agent run-time log.<br />
Welcome to scmGalaxy Puppet program</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-1/">Puppet Program Lab &#038; Excercise &#8211; Part 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/puppet-program-lab-excercise-part-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Enforce the JIRA issue id in a GIT commit message</title>
		<link>https://www.scmgalaxy.com/tutorials/enforce-the-jira-issue-id-in-a-git-commit-message/</link>
					<comments>https://www.scmgalaxy.com/tutorials/enforce-the-jira-issue-id-in-a-git-commit-message/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 14:21:59 +0000</pubDate>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[commit-msg]]></category>
		<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Jira]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5249</guid>

					<description><![CDATA[<p>Enforce the JIRA issue id in a GIT commit message This can be done by using git hooks file location [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/enforce-the-jira-issue-id-in-a-git-commit-message/">Enforce the JIRA issue id in a GIT commit message</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-5258" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/jira-git.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/jira-git.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/jira-git-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>Enforce the JIRA issue id in a GIT commit message</p>
<p><strong>This can be done by using git hooks file location at .git/hooks/commit-msg</strong>. Following are the 2 way in whcih each Developers can set the Hooks in their developement envioronment.</p>
<p><strong>Method &#8211; 1</strong></p>
<pre class="brush: plain; title: ; notranslate"># commit-msg.sh
#!/bin/sh
# This hook will make sure that the commit message contains a JIRA issue.
#
# To enable this hook, rename this file to &quot;.git/hooks/commit-msg&quot;.
# Make sure to add execution permissions to the file.

export MESSAGE=$(&lt;$1)
export JIRA_ISSUE_TAG='ISSUETAG-(&#x5B;0-9]*)'

if &#x5B;&#x5B; $MESSAGE =~ $JIRA_ISSUE_TAG ]]; then
echo -e &quot;\e&#x5B;32mGreat, your commit message contains a JIRA issue!\e&#x5B;0m&quot;
exit 0;
fi

echo -e &quot;\e&#x5B;31mOh hamburgers ... You forgot to add a JIRA issue number!\e&#x5B;0m&quot;;
exit 1;

</pre>
<p><strong>Method 2 &#8211;</strong> This is another very good example to implement to force jira id in each commit message. http://nsbogan.com/tools/2015/06/04/jira-id-in-git-commit-messages</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/enforce-the-jira-issue-id-in-a-git-commit-message/">Enforce the JIRA issue id in a GIT commit message</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/enforce-the-jira-issue-id-in-a-git-commit-message/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Best Branching and Merging strategies in Gerrit</title>
		<link>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 14:09:36 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[Branching]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Merging]]></category>
		<category><![CDATA[strategies]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5242</guid>

					<description><![CDATA[<p>Best Branching and Merging strategies in Gerrit Step 1 &#8211; First Lets read this article about Best Branching and Merging [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/">Best Branching and Merging strategies in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5269" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-1.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-1-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Best Branching and Merging strategies in Gerrit</strong></p>
<p><strong>Step 1 &#8211; First Lets read this article about Best Branching and Merging strategies in git</strong></p>
<blockquote class="wp-embedded-content" data-secret="R7GR5d9ayw"><p><a href="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/">Best Branching and Merging strategies in git</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Best Branching and Merging strategies in git&#8221; &#8212; scmGalaxy" src="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/embed/#?secret=cMx479AkuJ#?secret=R7GR5d9ayw" data-secret="R7GR5d9ayw" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p><strong>Step 2 &#8211; Now Lets learn the Gerrit Merge Types</strong><br />
https://nofluffjuststuff.com/magazine/2016/04/understanding_and_applying_gerrit_part_3_gerrit_submit_types_and_git_review</p>
<p><strong>Step 3 &#8211; Time to Learn the Types of Submit in Gerrit</strong><br />
https://gerrit-review.googlesource.com/Documentation/project-configuration.html</p>
<p><strong>Step 4 &#8211; Finally, You must read the recommendations below</strong><br />
https://hyperledger-fabric.readthedocs.io/en/release-1.2/Gerrit/best-practices.html</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/">Best Branching and Merging strategies in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Best Branching and Merging strategies in git</title>
		<link>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/</link>
					<comments>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 13:51:49 +0000</pubDate>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[branch]]></category>
		<category><![CDATA[Branching]]></category>
		<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Merge]]></category>
		<category><![CDATA[Merging]]></category>
		<category><![CDATA[strategies]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5233</guid>

					<description><![CDATA[<p>Best Branching and Merging strategies in git Step 1 &#8211; First you need to learn the needs of branches. This [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/">Best Branching and Merging strategies in git</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5275" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/git.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/git.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/git-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Best Branching and Merging strategies in git</strong></p>
<p><strong>Step 1 &#8211; First you need to learn the needs of branches. This is very good read.</strong></p>
<ul>
<li>https://docs.microsoft.com/en-us/vsts/repos/tfvc/branching-strategies-with-tfvc?view=vsts</li>
</ul>
<p><strong>Step 2 &#8211; Now time has come to Learn best branching model in Git.</strong></p>
<ul>
<li>https://buddy.works/blog/5-types-of-git-workflows</li>
<li>https://hackernoon.com/a-branching-and-releasing-strategy-that-fits-github-flow-be1b6c48eca2</li>
<li>https://nvie.com/posts/a-successful-git-branching-model/</li>
</ul>
<p><strong>Step 3 &#8211; Now, Lets understand, what is the kind of merges we have in Git?</strong></p>
<ul>
<li>https://www.atlassian.com/git/tutorials/using-branches/git-merge</li>
<li>https://git-scm.com/docs/merge-strategies</li>
<li>https://stackoverflow.com/questions/366860/when-would-you-use-the-different-git-merge-strategies</li>
</ul>
<p><strong>Step 4 &#8211; Are you still having a questions, Please post in the comment section.</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/">Best Branching and Merging strategies in git</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to revert the changes once its submitted in Gerrit</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 13:10:23 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[patch set]]></category>
		<category><![CDATA[patchsets]]></category>
		<category><![CDATA[revert]]></category>
		<category><![CDATA[Submit]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5229</guid>

					<description><![CDATA[<p>How to revert the changes once its submitted in Gerrit The Revert button is available if the change has been [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/">How to revert the changes once its submitted in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5273" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to revert the changes once its submitted in Gerrit</strong></p>
<p><strong>The Revert button is available if the change has been submitted</strong>. This Reverts the change via creating a new one. When the Revert button is pressed, a panel will appear to allow the user to enter a commit message for the reverting change.</p>
<p>Once a revert change is created, the original author and any reviewers of the original change are added as reviewers and a message is posted to the original change linking to the revert.</p>
<p>However, <strong>patchsets can not be reverted</strong>. so first you have to checkout one of the previous patchset. you can get the command from Gerrit review board at each patchset download panel. After checking it out amend it to generate new commit hash then pushed again as a new patchset.</p>
<p>If I have multiple patch set versions for one change in Gerrit, You can only submit the latest patch set version. The design assumes that the most recent patch set is the one developers will review and test, and as such older patch sets can not be submitted.</p>
<p><strong>Good Read</strong><br />
http://www.saros-project.org/node/155</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/">How to revert the changes once its submitted in Gerrit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is a Change and Patch set in Gerrit?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 12:57:45 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[patch set]]></category>
		<category><![CDATA[Submit]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5226</guid>

					<description><![CDATA[<p>Here is the short and quick description of Gerrit key teminology. Change Every time you push a commit with a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/">What is a Change and Patch set in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5280" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-3-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Here is the short and quick description of Gerrit key teminology.</p>
<h3><strong>Change</strong></h3>
<p>Every time you push a commit with a new Change-Id Gerrit allocates a new change. Every change has a unique Change-Id and a Change Number. The change contains a number of patch sets, comments on the patch sets and a code review rating (+2, +1, 0, -1, -2). Each change has a dedicated page that shows information about it called individual change page. This includes dependencies between different changes, patch sets and the review comments.</p>
<h3>Submit</h3>
<p>Once a change has received a +2 in the Code Review and no negative voting in the other categories the last patchset can be submitted. This means Gerrit will now try to cherry-pick your patch set and mark the change as merged.</p>
<h3>Patch set</h3>
<p>If you want to modify your change, you don&#8217;t have to push a new change to Gerrit but only a new patch set . Imagine a patch sets as different versions or revisions of a change. Each patch set can receive inline comments. Gerrit uses the Change-Id of a commit message to identify patch sets of a change. This is why all patch sets of a change have the same Change-Id.</p>
<p>To create a new Patch when new changes are submitted<br />
<strong>Step 1: Install commit-msg hooks for gerrit</strong></p>
<pre class="brush: plain; title: ; notranslate">$ scp -p -P 29418 localhost:hooks/commit-msg .git/hooks/</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Step 2: Create normal commit and push (for Patchset1)</strong></p>
<pre class="brush: plain; title: ; notranslate">for example:

git add Server.java
git commit -m &quot;server added&quot;
git push origin HEAD:refs/for/master</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Step 3: After doing some changes to Server.java</strong></p>
<p>Finally to create new Patchset (Patchset 2)</p>
<pre class="brush: plain; title: ; notranslate">git add Server.java
git commit --amend
git push origin HEAD:refs/for/master
Repeat step 3 for further Patches</pre>
<p><strong>Understanding the Patch set in Git perspective</strong></p>
<p>Git is a very advanced distributed source code control system. Maintaining patch sets (often called a topic branch) in Git. Git includes a rebase capability that is very useful for a number of different operations related to maintaining a branch of code including moving a branch forward, moving a branch around on an upstream branch to look for breakage, and merging changesets to create patch files.</p>
<p>Git: How to create and apply patches</p>
<p><strong>Creating a patch</strong></p>
<pre class="brush: plain; title: ; notranslate">Make your changes and commit them.
Run $ git format-patch COMMIT_REFERENCE #to convert all commits since the referenced commit (not including it) into patch files.
$ git format-patch HEAD~~

This will create 2 files, one for each commit since HEAD~~, like these:
0001-make-stuff-more-awesome.patch
0002-allow-users-to-be-locked.patch</pre>
<p><strong>Applying patches</strong><br />
You can use git apply some.patch to have the changes from the .patch file applied to your current working directory. They will be unstaged and need to be committed by you.</p>
<pre class="brush: plain; title: ; notranslate">To apply a patch as a commit (with its commit message), use git am some.patch. \
For all patches to be applied, simply run:
$ git am *.patch

Note that in some previous version you could pass the latest patch filename of a list of patches to apply all previous patches as wel
$ git am 0002-allow-users-to-be-locked.patch # May no longer work for you</pre>
<p>You then have the 2 unpushed commits from the patch file created earlier.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/">What is a Change and Patch set in Gerrit?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-a-change-and-patch-set-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to replace Changes after the Gerrit review without changing the commit id?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 12:17:20 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[amend]]></category>
		<category><![CDATA[Changes]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[git add]]></category>
		<category><![CDATA[git commit]]></category>
		<category><![CDATA[git push]]></category>
		<category><![CDATA[patchset]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5224</guid>

					<description><![CDATA[<p>How to replace Changes after the Gerrit review without changing the commit id? One of the main benefits of code [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/">How to replace Changes after the Gerrit review without changing the commit id?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5291" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to replace Changes after the Gerrit review without changing the commit id?</strong></p>
<p>One of the main benefits of code review is the ability to receive and incorporate feedback from other developers without changing the commit-id and review id. With Gerrit, you incorporate these changes by amending the commit. Gerrit uses the CHange-Id to ensure that each iteration of the commit are stored together as patchsets.</p>
<p>The process of modify same commit and commit message on gerrit after patchset creation is pretty straight forward.</p>
<p><strong>Step 1 &#8211; Do the required modification in the code based on the review.</strong></p>
<p><strong>Step 2 &#8211; Add files using git add commands.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git add filename</pre>
<p><strong>Step 3 &#8211; Command to update/amend the most recent commit.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git commit --amend</pre>
<p>When amending a commit with git commit &#8211;amend, leave the Change-Id line unmodified in the commit message. This will allow Gerrit to automatically update the change with the amended commit.</p>
<p><strong>Step 4 &#8211; Gerrit updates the commit under review with your latest changes.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git push origin HEAD:refs/for/master
$ git push origin HEAD:refs/for/&#x5B;BRANCH_NAME]</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/">How to replace Changes after the Gerrit review without changing the commit id?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to update or pull current branch before committing in Git?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-update-or-pull-current-branch-before-committing-in-git/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-update-or-pull-current-branch-before-committing-in-git/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 10:51:53 +0000</pubDate>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git commit]]></category>
		<category><![CDATA[git fetch]]></category>
		<category><![CDATA[git merge]]></category>
		<category><![CDATA[git pull]]></category>
		<category><![CDATA[git push]]></category>
		<category><![CDATA[git remote]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5222</guid>

					<description><![CDATA[<p>Best practice says that before you commit in git, you need to either do git pull or git fetch/merge. However, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-update-or-pull-current-branch-before-committing-in-git/">How to update or pull current branch before committing in Git?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5277" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/git-1.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/git-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/git-1-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Best practice says that before you commit in git, you need to either do git pull or git fetch/merge. However, there is a way to find out wheather your branches is not in sync with remote.</p>
<p><strong>To check the remote repo status you are really simulating a &#8220;fetch&#8221;</strong><br />
$ git fetch -v &#8211;dry-run</p>
<p><strong>To bring your remote refs up to date</strong><br />
$ git remote -v update</p>
<p><strong>This command will print whether the branch you are tracking is ahead, behind or has diverged with remote. If it says nothing, the local and remote are the same.</strong><br />
$ git status -uno</p>
<p><strong>To pull</strong><br />
$ git pull origin &lt;&lt;branchname&gt;&gt;<br />
or<br />
$ git fetch origin &lt;&lt;branchname&gt;&gt;<br />
$ git merge remote/&lt;&lt;branchname&gt;&gt;<br />
$ git commit</p>
<p><strong>Compare the two branches:</strong><br />
$ git log HEAD..origin/master &#8211;oneline</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-update-or-pull-current-branch-before-committing-in-git/">How to update or pull current branch before committing in Git?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-update-or-pull-current-branch-before-committing-in-git/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install and Configure Prometheus Server and Node Exporter in RHEL</title>
		<link>https://www.scmgalaxy.com/tutorials/install-and-configure-prometheus-server-and-node-exporter-in-rhel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/install-and-configure-prometheus-server-and-node-exporter-in-rhel/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 09:42:53 +0000</pubDate>
				<category><![CDATA[Prometheus]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Node Exporter]]></category>
		<category><![CDATA[Prometheus server]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5215</guid>

					<description><![CDATA[<p>Install and Configure Prometheus Server and Node Exporter There are 3 importants components to make sure Prometheus is up and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/install-and-configure-prometheus-server-and-node-exporter-in-rhel/">Install and Configure Prometheus Server and Node Exporter in RHEL</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Install and Configure Prometheus Server and Node Exporter</strong></p>
<p>There are 3 importants components to make sure Prometheus is up and running. We need to install and configure</p>
<ol>
<li>Prometheus Server,</li>
<li>Node Exporter, and</li>
<li>Dashborad which can be PromDash or Grafana.</li>
</ol>
<p><strong>Step 1 &#8211; Install and configure Prometheus Server in RHEL 7</strong></p>
<p><strong>Download Prometheus</strong><br />
Download Prometheus from https://prometheus.io/download/. You can find 3 Prometheus package which is supported for darwin/linux and windows.</p>
<pre>$ sudo -s
$ yum install wget -y
$ cd /opt/
$ wget https://github.com/prometheus/prometheus/releases/download/v2.3.2/prometheus-2.3.2.linux-amd64.tar.gz
$ tar -zxvf prometheus-2.3.2.linux-amd64.tar.gz
$ cd prometheus-2.3.2.linux-amd64</pre>
<p>If you find following files&#8230;.</p>
<pre class="brush: plain; title: ; notranslate">&#x5B;root@ip-172-31-21-164 prometheus-2.3.2.linux-amd64]# ls -1
LICENSE
NOTICE
console_libraries
consoles
prometheus
prometheus.yml
promtool</pre>
<p>This completes the Prometheus installation.</p>
<p><strong>Verify the installation by typing in the following command:</strong></p>
<pre class="brush: plain; title: ; notranslate">&#x5B;root@ip-172-31-21-164 prometheus-2.3.2.linux-amd64]# ./prometheus --version
prometheus, version 2.3.2 (branch: HEAD, revision: 71af5e29e815795e9dd14742ee7725682fa14b7b)
build user: root@5258e0bd9cc1
build date: 20180712-14:02:52
go version: go1.10.3</pre>
<p><strong>Step 2 &#8211; Install and configure Prometheus Node Exporter in RHEL 7</strong></p>
<p>In order to monitor the metrics of your RHEL server, you should install a tool called Node Exporter. Node Exporter, as its name suggests, exports lots of metrics (such as disk I/O statistics, CPU load, memory usage, network statistics, and more) in a format Prometheus understands.</p>
<pre>cd /opt/
wget https://github.com/prometheus/node_exporter/releases/download/v0.16.0/node_exporter-0.16.0.linux-amd64.tar.gz
tar -zxvf node_exporter-0.16.0.linux-amd64.tar.gz
cd node_exporter-0.16.0.linux-amd64
nohup ./node_exporter &amp;</pre>
<p><strong>Step 3 — Running Node Exporter as a Service</strong><br />
if you want to Running Node Exporter as a Service</p>
<pre class="brush: plain; title: ; notranslate">$ sudo vi /etc/systemd/system/node_exporter.service

&#x5B;Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target

&#x5B;Service]
User=root
Group=root
Type=simple
ExecStart=/root/prometheus/node_exporter/node_exporter

&#x5B;Install]
WantedBy=multi-user.target</pre>
<p><strong># Save the file and exit the text editor.</strong></p>
<p><strong>Reload systemd so that it reads the configuration file you just created.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo systemctl daemon-reload</pre>
<p><strong>Enable it so that it starts automatically at boot time.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo systemctl enable node_exporter.service</pre>
<p><strong>You can now either reboot your server, or use the following command to start the service manually:</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo systemctl start node_exporter.service</pre>
<p><strong>Once it starts, use a browser to view Node Exporter&#8217;s web interface, which is available at</strong> http://your_server_ip:9100/metrics. You should see a page with a lot of text:</p>
<p><strong>Step 4 — Starting Prometheus Server</strong></p>
<p>Enter the directory where you installed the Prometheus server:</p>
<pre class="brush: plain; title: ; notranslate">$ cd /opt/prometheus-2.3.2.linux-amd64</pre>
<p>Before you start Prometheus, you must first understand a configuration file for it called prometheus.yml.</p>
<pre class="brush: plain; title: ; notranslate">&#x5B;root@ip-172-31-21-164 prometheus-2.3.2.linux-amd64]# more prometheus.yml
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - &quot;first_rules.yml&quot;
# - &quot;second_rules.yml&quot;

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=&lt;job_name&gt;` to any timeseries scraped from this config.
- job_name: 'prometheus'

# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.

static_configs:
- targets: &#x5B;'localhost:9090']</pre>
<p>Whereas, This creates a scrape_configs section and defines a job called node. It includes the URL of your Node Exporter&#8217;s web interface in its array of targets. The scrape_interval is set to 15 seconds so that Prometheus scrapes the metrics once every fifteen seconds.</p>
<p>You could name your job anything you want, but calling it &#8220;node&#8221; allows you to use the default console templates of Node Exporter. Save the file and exit.</p>
<p><strong>Start the Prometheus server as a background process.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ nohup ./prometheus &gt; prometheus.log 2&gt;&amp;1 &amp;</pre>
<p><strong>You can view the last few lines of the file using the tail command:</strong></p>
<pre class="brush: plain; title: ; notranslate">$ tail prometheus.log</pre>
<p>Once the server is ready, you will see the following messages in the file:</p>
<pre class="brush: plain; title: ; notranslate">level=info ts=2018-08-21T11:47:38.56459183Z caller=web.go:415 component=web msg=&quot;Start listening for connections&quot; address=0.0.0.0:9090
level=info ts=2018-08-21T11:47:38.569742672Z caller=main.go:543 msg=&quot;TSDB started&quot;
level=info ts=2018-08-21T11:47:38.569767659Z caller=main.go:603 msg=&quot;Loading configuration file&quot; filename=prometheus.yml
level=info ts=2018-08-21T11:47:38.57069388Z caller=main.go:629 msg=&quot;Completed loading of configuration file&quot; filename=prometheus.yml
level=info ts=2018-08-21T11:47:38.570724527Z caller=main.go:502 msg=&quot;Server is ready to receive web requests.&quot;</pre>
<p>Use a browser to visit Prometheus&#8217;s homepage available at http://your_server_ip:9090. You&#8217;ll see the following homepage.</p>
<p><strong>Step 5 — Verify Prometheus Server</strong><br />
To make sure that Prometheus server is scraping data from Node Exporter, click on the Graph tab at the top of the page. On the page that opens, type in the name of a metric (like up, for example) in the text field that says Expression. Then, press the blue Execute button. Click Graph (next to Console) just below, and you should see a graph for that metric:</p>
<p>More metric can be found from the Node Exporter host such as<br />
http://X.X.X.X:9100/metrics</p>
<p>Prometheus has console templates that let you view graphs of a few commonly used metrics. These console template are accessible only if you set the value of job_name to &#8220;prometheus&#8221; in Prometheus&#8217;s configuration.</p>
<p>Visit http://your_server_ip:9090/consoles/prometheus.html to access the Node Console and click on your server, localhost:9100, to view its metrics.</p>
<p><strong>Step 6 — Installing PromDash Or Grafana&#8230;..</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/install-and-configure-prometheus-server-and-node-exporter-in-rhel/">Install and Configure Prometheus Server and Node Exporter in RHEL</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/install-and-configure-prometheus-server-and-node-exporter-in-rhel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install and Configure Grafana in Ubuntu and Debian</title>
		<link>https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-ubuntu-and-debian/</link>
					<comments>https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-ubuntu-and-debian/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 09:31:59 +0000</pubDate>
				<category><![CDATA[Grafana]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5211</guid>

					<description><![CDATA[<p>Install and Configure Grafana in Ubuntu and Debian Step 1 &#8211; Download &#38; Install Grafana Download Grafana RPM file RPM [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-ubuntu-and-debian/">Install and Configure Grafana in Ubuntu and Debian</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Install and Configure Grafana in Ubuntu and Debian</p>
<p><strong>Step 1 &#8211; Download &amp; Install Grafana</strong><br />
Download Grafana RPM file RPM for Linux from https://grafana.com/grafana/download?platform=linux</p>
<pre># Ubuntu &amp; Debian
$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_5.2.2_amd64.deb
$ sudo dpkg -i grafana_5.2.2_amd64.deb</pre>
<p><strong>Step 2 &#8211; Understand Grafana Installation details in Ubuntu/Debian</strong></p>
<ol>
<li>Installs binary to /usr/sbin/grafana-server</li>
<li>Installs Init.d script to /etc/init.d/grafana-server</li>
<li>Creates default file (environment vars) to /etc/default/grafana-server</li>
<li>Installs configuration file to /etc/grafana/grafana.ini</li>
<li>Installs systemd service (if systemd is available) name grafana-server.service</li>
<li>The default configuration sets the log file at /var/log/grafana/grafana.log</li>
<li>The default configuration specifies an sqlite3 db at /var/lib/grafana/grafana.db</li>
<li>Installs HTML/JS/CSS and other Grafana files at /usr/share/grafana</li>
</ol>
<p><strong>Step 3 &#8211; Start the server (init.d service)</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo service grafana-server start</pre>
<p>This will start the grafana-server process as the grafana user, which was created during the package installation. The default HTTP port is 3000 and default user and group is admin.</p>
<p><strong>Step 4 &#8211; Configure the Grafana server to start at boot time</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo update-rc.d grafana-server defaults
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server
$ sudo systemctl enable grafana-server.service</pre>
<p><strong>Step 5 &#8211; Grafana server Environment file</strong><br />
The systemd service file and init.d script both use the file located at /etc/default/grafana-server for environment variables used when starting the back-end. Here you can override log directory, data directory and other variables.</p>
<p><strong>Step 6 &#8211; Grafana server Log</strong><br />
By default Grafana will log to /var/log/grafana</p>
<p><strong>Step 7 &#8211; Grafana Database</strong><br />
The default configuration specifies a sqlite3 database located at /var/lib/grafana/grafana.db.</p>
<p>You can also use MySQL or Postgres as the Grafana database, as detailed on<br />
http://docs.grafana.org/installation/configuration/#database</p>
<p><strong>Step 7 &#8211; Grafana configuration</strong><br />
The configuration file is located at /etc/grafana/grafana.ini. Go the Configuration page for details on all those options. You can add following data sources</p>
<ol>
<li>Graphite</li>
<li>InfluxDB</li>
<li>OpenTSDB</li>
<li>Prometheus</li>
</ol>
<p><strong>Step 8 &#8211; Server side image rendering</strong><br />
Server side image (png) rendering is a feature that is optional but very useful when sharing visualizations, for example in alert notifications.</p>
<pre class="brush: plain; title: ; notranslate">$ yum install fontconfig
$ yum install freetype*
$ yum install urw-fonts</pre>
<p><strong>Step 9 &#8211; How to access the Grafana dashboard</strong></p>
<p>http://13.232.27.156:3000/<br />
User name &#8211; admin<br />
Password &#8211; admin</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-ubuntu-and-debian/">Install and Configure Grafana in Ubuntu and Debian</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-ubuntu-and-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install and Configure Grafana in RHEL 7</title>
		<link>https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-rhel-7/</link>
					<comments>https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-rhel-7/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 09:07:44 +0000</pubDate>
				<category><![CDATA[Grafana]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5204</guid>

					<description><![CDATA[<p>Install and Configure Grafana in RHEL 7 Step 1 &#8211; Download &#38; Install Grafana Download Grafana RPM file RPM for [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-rhel-7/">Install and Configure Grafana in RHEL 7</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Install and Configure Grafana in RHEL 7</p>
<p><strong>Step 1 &#8211; Download &amp; Install Grafana</strong><br />
Download Grafana RPM file RPM for Linux from https://grafana.com/grafana/download?platform=linux</p>
<p># RHEL 7</p>
<pre>$ sudo yum install initscripts fontconfig -y
$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.2.2-1.x86_64.rpm
$ sudo yum localinstall grafana-5.2.2-1.x86_64.rpm</pre>
<p><strong>Step 2 &#8211; Understand Grafana Installation details in RHEL/CENTOS</strong></p>
<ol>
<li>Installs binary to /usr/sbin/grafana-server</li>
<li>Copies init.d script to /etc/init.d/grafana-server</li>
<li>Installs default file (environment vars) to /etc/sysconfig/grafana-server</li>
<li>Copies configuration file to /etc/grafana/grafana.ini</li>
<li>Installs systemd service (if systemd is available) name grafana-server.service</li>
<li>The default configuration uses a log file at /var/log/grafana/grafana.log</li>
<li>The default configuration specifies an sqlite3 database at /var/lib/grafana/grafana.db</li>
</ol>
<p><strong>Step 3 &#8211; Start the server (init.d service)</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo service grafana-server start</pre>
<p>This will start the grafana-server process as the grafana user, which is created during package installation. The default HTTP port is 3000, and default user and group is admin.</p>
<p><strong>Step 4 &#8211; Configure the Grafana server to start at boot time</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo /sbin/chkconfig --add grafana-server
$ sudo systemctl enable grafana-server.service
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server</pre>
<p><strong>Step 5 &#8211; Grafana server Environment file</strong><br />
The systemd service file and init.d script both use the file located at /etc/sysconfig/grafana-server for environment variables used when starting the back-end. Here you can override log directory, data directory and other variables.</p>
<p><strong>Step 6 &#8211; Grafana server Log</strong><br />
By default Grafana will log to <em>/var/log/grafana</em></p>
<p><strong>Step 7 &#8211; Grafana Database</strong><br />
The default configuration specifies a sqlite3 database located at /var/lib/grafana/grafana.db. Please backup this database before upgrades.</p>
<p>You can also use MySQL or Postgres as the Grafana database, as detailed on<br />
http://docs.grafana.org/installation/configuration/#database</p>
<p><strong>Step 8 &#8211; Grafana configuration</strong><br />
The configuration file is located at /etc/grafana/grafana.ini. Go the Configuration page for details on all those options. You can add following data sources</p>
<ol>
<li>Graphite</li>
<li>InfluxDB</li>
<li>OpenTSDB</li>
<li>Prometheus</li>
</ol>
<p><strong>Step 9 &#8211; Server side image rendering</strong><br />
Server side image (png) rendering is a feature that is optional but very useful when sharing visualizations, for example in alert notifications.</p>
<pre class="brush: plain; title: ; notranslate">$ sudo yum install fontconfig -y
$ sudo yum install freetype* -y
$ sudo yum install urw-fonts -y</pre>
<p><strong><br />
Step 10 &#8211; Browse the dashboard<br />
</strong>http://X.X.X.X.:3000/<br />
Username &#8211; admin<br />
Password &#8211; admin</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-rhel-7/">Install and Configure Grafana in RHEL 7</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/install-and-configure-grafana-in-rhel-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Top 10 Container(Docker) Monitoring Solutions and Tools in 2018</title>
		<link>https://www.scmgalaxy.com/tutorials/top-10-containerdocker-monitoring-solutions-and-tools-in-2018/</link>
					<comments>https://www.scmgalaxy.com/tutorials/top-10-containerdocker-monitoring-solutions-and-tools-in-2018/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 20 Aug 2018 11:52:15 +0000</pubDate>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5181</guid>

					<description><![CDATA[<p>Top 10 Container Monitoring Solutions/Tools in 2018 Native Docker cAdvisor Scout Pingdom Datadog Sysdig Prometheus Heapster / Grafana ELK stack [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-10-containerdocker-monitoring-solutions-and-tools-in-2018/">Top 10 Container(Docker) Monitoring Solutions and Tools in 2018</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Top 10 Container Monitoring Solutions/Tools in 2018</strong></p>
<ol>
<li>Native Docker</li>
<li>cAdvisor</li>
<li>Scout</li>
<li>Pingdom</li>
<li>Datadog</li>
<li>Sysdig</li>
<li>Prometheus</li>
<li>Heapster / Grafana</li>
<li>ELK stack</li>
<li>Sensu</li>
</ol>
<p>Reference</p>
<p>https://rancher.com/comparing-10-container-monitoring-solutions-rancher/</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-10-containerdocker-monitoring-solutions-and-tools-in-2018/">Top 10 Container(Docker) Monitoring Solutions and Tools in 2018</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/top-10-containerdocker-monitoring-solutions-and-tools-in-2018/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
