{"id":81,"date":"2012-12-07T21:35:31","date_gmt":"2012-12-07T21:35:31","guid":{"rendered":"http:\/\/www.nicovs.be\/?p=81"},"modified":"2012-12-14T09:22:28","modified_gmt":"2012-12-14T09:22:28","slug":"installing-puppet-agent","status":"publish","type":"post","link":"https:\/\/www.nicovs.be\/?p=81","title":{"rendered":"Installing Puppet Agent"},"content":{"rendered":"<h2>Installing Puppet agent on Ubuntu 12.04 (Precise)<\/h2>\n<p>To install\u00a0puppet\u00a0on a Cloudstar (Linux) Server, the following steps need to be performed:<\/p>\n<p>We start with installing all available OS patches<\/p>\n<pre>apt-get update && apt-get upgrade<\/pre>\n<p>Reboot if necessary<br \/>\nChange your server&#8217;s hostname to something that makes sense<\/p>\n<pre class=\"lang:default decode:true\">echo \"webserver.com\" &gt; \/etc\/hostname\r\nhostname webserver.com<\/pre>\n<p>Make it easy on yourself and add the\u00a0puppet\u00a0server to your \/etc\/hosts files. Modify your puppet.conf via a module if you like<\/p>\n<pre>echo \"x.x.x.x   puppet\" >> \/etc\/hosts<\/pre>\n<p>Install\u00a0Puppet<\/p>\n<pre class=\"lang:default decode:true\">apt-get install puppet<\/pre>\n<p>Run\u00a0puppet\u00a0for the 1st time to test it<\/p>\n<pre class=\"lang:default decode:true\">puppet agent -t<\/pre>\n<p>You might still need to sign your newly created certificate on your Puppet Server<\/p>\n<p>When completed, start the\u00a0puppet\u00a0agent<\/p>\n<pre class=\"lang:default decode:true\">service puppet start<\/pre>\n<h2>Installing Puppet agent on Ubuntu 10.04 (Lucid)<\/h2>\n<p>Ubuntu 10.04 has an old Puppet version in its package repo&#8230;. therefor, it&#8217;s better to download the latest version from Puppetlabs and install it that way.<\/p>\n<p>You can use this on Precise too of course!<\/p>\n<p>Execute the same stuff on your server as above, but don&#8217;t apt-get install puppet&#8230;<\/p>\n<p>Instead: (underneath link was the latest stable version available at the time of writing this article<\/p>\n<pre>wget https:\/\/launchpad.net\/puppet\/trunk\/0.24.9\/+download\/puppet-0.24.9.tgz --no-check-certificate<\/pre>\n<p>Unpack and install<\/p>\n<pre>tar -xvf puppet_2.6.1.orig.tar.gz\r\ncd puppet-2.6.1\r\n.\/install.rb<\/pre>\n<p>Test your installation:<\/p>\n<pre class=\"lang:default decode:true\">puppet agent -t<\/pre>\n<p>You might encounter a message stating that you also need facter installed.<\/p>\n<p>If you don&#8217;t have it, you can manually install Facter by: (you need facter v1.5 or above)<\/p>\n<pre class=\"lang:default decode:true\">http:\/\/downloads.puppetlabs.com\/facter\/facter-1.6.16.tar.gz\r\ntar -xvf facter-1.6.16.tar.gz\r\ncd facter-1.6.16\r\n.\/install.rb<\/pre>\n<p>&nbsp;<\/p>\n<h2>Installing Puppet agent on RHEL 5<\/h2>\n<p>Install the\u00a0PuppetLabs Repository first:<\/p>\n<pre>rpm -ivh http:\/\/yum.puppetlabs.com\/el\/5\/products\/i386\/puppetlabs-release-5-6.noarch.rpm<\/pre>\n<p>Install\u00a0puppet<\/p>\n<pre>yum install puppet<\/pre>\n<h2>Installing Puppet agent on RHEL 6<\/h2>\n<p>Add Optional (needed) Repo&#8217;s in your RHEL Subscription online<br \/>\nSelect:<\/p>\n<div><em>RHEL Server Optional (v. 6 64-bit x86_64)<\/em><\/div>\n<p>in the subscription management page.<\/p>\n<p>Then install the\u00a0PuppetLabs Repository:<\/p>\n<pre>rpm -ivh http:\/\/yum.puppetlabs.com\/el\/6\/products\/i386\/puppetlabs-release-6-6.noarch.rpm<\/pre>\n<p>Install\u00a0puppet intself<\/p>\n<pre>yum install puppet<\/pre>\n<p>Then we add the\u00a0puppet\u00a0server to the \/etc\/hosts files<\/p>\n<pre>echo \"87.238.161.69   puppet\" >> \/etc\/hosts<\/pre>\n<p>Run\u00a0puppet\u00a0for the 1st time<\/p>\n<pre>puppet agent -t<\/pre>\n<p>When completed, start the\u00a0puppet\u00a0agent<\/p>\n<pre>service puppet start<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing Puppet agent on Ubuntu 12.04 (Precise) To install\u00a0puppet\u00a0on a Cloudstar (Linux) Server, the following steps need to be performed: We start with installing all available OS patches apt-get update &#038;&#038; apt-get upgrade Reboot if necessary Change your server&#8217;s hostname to something that makes sense echo &#8220;webserver.com&#8221; &gt; \/etc\/hostname hostname webserver.com Make it easy on [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,18,19,6],"tags":[21,23,22,80],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-debian","category-puppet","category-red-hat","category-ubuntu","tag-puppet-2","tag-puppet-agent","tag-red-hat-2","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=81"}],"version-history":[{"count":11,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions\/95"}],"wp:attachment":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}