{"id":572,"date":"2020-09-07T02:43:30","date_gmt":"2020-09-07T02:43:30","guid":{"rendered":"http:\/\/www.legendshub.com\/blog\/?p=572"},"modified":"2020-09-18T23:55:52","modified_gmt":"2020-09-18T23:55:52","slug":"puppet-installation-on-linux-legendshub-blog","status":"publish","type":"post","link":"https:\/\/www.legendshub.com\/blog\/2020\/09\/07\/puppet-installation-on-linux-legendshub-blog\/","title":{"rendered":"Puppet installation on Linux &#8211; Legendshub Blog"},"content":{"rendered":"\n<!-- Quick Adsense WordPress Plugin: http:\/\/quickadsense.com\/ -->\n<div class=\"2c935cf620b701aabbb7cc90bbf4023c\" data-index=\"1\" style=\"float: none; margin:0px 0 0px 0; text-align:center;\">\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<script>\r\n  (adsbygoogle = window.adsbygoogle || []).push({\r\n    google_ad_client: \"ca-pub-5554449970657557\",\r\n    enable_page_level_ads: true\r\n  });\r\n<\/script>\n<\/div>\n\n<p>Puppet is configuration management tool. In this article, we will focus on installing Puppet master and puppet client.<\/p>\n\n\n\n<p>Puppet is designed in an agent-master architecture in this write up although puppet also has concept of Puppet Hiera. Puppet agent chronically sends facts to puppet master and request a catalog. The puppet master compiles and returns respective node\u2019s catalog.<\/p>\n\n\n\n<p>Prerequisite:<\/p>\n\n\n\n<p>Ntp &#8211; The timing of the master and client nodes should be accurately in sync with the NTP server because the Puppet server will be acting as the certificate authority.<\/p>\n\n\n\n<p>DNS\/Hosts Entry &#8211; The Puppet agent uses the hostname to communicate with the Puppet Server. So, make sure agent nodes can resolve the hostname of the Puppet Server<\/p>\n\n\n\n<p>Installing the Puppet Server role:<\/p>\n\n\n\n<p>To install the Puppet Server, we would need to add the puppet repository by installing the repository configuration package.<\/p>\n\n\n\n<p>Install the Puppet server using the below command.<\/p>\n\n\n\n<p>rpm -Uvh https:\/\/yum.puppet.com\/puppet6-release-el-8.noarch.rpm<\/p>\n\n\n\n<p>Once repository is enabled, we will install puppet master by using following command.<\/p>\n\n\n\n<p>yum install -y puppetserver<\/p>\n<!-- Quick Adsense WordPress Plugin: http:\/\/quickadsense.com\/ -->\n<div class=\"2c935cf620b701aabbb7cc90bbf4023c\" data-index=\"3\" style=\"float: none; margin:0px 0 0px 0; text-align:center;\">\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<script>\r\n  (adsbygoogle = window.adsbygoogle || []).push({\r\n    google_ad_client: \"ca-pub-5554449970657557\",\r\n    enable_page_level_ads: true\r\n  });\r\n<\/script>\n<\/div>\n\n\n\n\n<p>By default, Puppet Server is configured to use 2GB of memory. You can change the memory allocation by editing the java variables in<\/p>\n\n\n\n<div class=\"wp-container-1 wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<pre class=\"wp-block-code\"><code>vi \/etc\/sysconfig\/puppetserver<\/code><\/pre>\n\n\n\n<p><\/p>\n<\/div><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\"><div class=\"wp-block-group__inner-container\"> JAVA_ARGS=\"-Xms2g -Xmx2g -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger\" <\/div><\/pre>\n\n\n\n<p>Here you can change the -Xms and -Xmx variables according the vm memory availability. We have observed values below 1 GB generally doesn&#8217;t perform well.<\/p>\n\n\n\n<p>We will start editing Puppet\u2019s configuration file consists of two sections named&nbsp;[master]&nbsp;and&nbsp;[main]&nbsp;for Puppet server and agent respectively.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Pupper Server Configuration\n<\/pre>\n\n\n\n<p>dns_alt_names = puppetserver,puppetserver.itzgeek.local # Puppet Agent Configuration<\/p>\n\n\n\n<p>certname = puppetserver.itzgeek.local server = puppetserver.itzgeek.local runinterval = 30m<\/p>\n\n\n\n<p>Generate the root and intermediate signing CA for Puppet Server.<\/p>\n\n\n\n<p>puppetserver ca setup<\/p>\n\n\n\n<p>Start and enable the Puppet Server.<\/p>\n\n\n\n<p>systemctl start puppetserver<\/p>\n\n\n\n<p>systemctl enable puppetserver<\/p>\n\n<!-- Quick Adsense WordPress Plugin: http:\/\/quickadsense.com\/ -->\n<div class=\"2c935cf620b701aabbb7cc90bbf4023c\" data-index=\"100\" style=\"\">\n\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Puppet is configuration management tool. In this article, we will focus on installing Puppet master and puppet client. Puppet is designed in an agent-master architecture in this write up although puppet also has concept of Puppet Hiera. Puppet agent chronically sends facts to puppet master and request a catalog. The puppet master compiles and returns respective node\u2019s catalog. Prerequisite: Ntp&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"btn btn-default\" href=\"https:\/\/www.legendshub.com\/blog\/2020\/09\/07\/puppet-installation-on-linux-legendshub-blog\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":578,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[31],"tags":[],"_links":{"self":[{"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/posts\/572"}],"collection":[{"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":3,"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"predecessor-version":[{"id":589,"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/posts\/572\/revisions\/589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/media\/578"}],"wp:attachment":[{"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.legendshub.com\/blog\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}