{"id":912,"date":"2015-07-15T01:47:37","date_gmt":"2015-07-15T01:47:37","guid":{"rendered":"http:\/\/www.gregkuchyt.net\/?p=912"},"modified":"2015-07-15T02:22:00","modified_gmt":"2015-07-15T02:22:00","slug":"howto-install-puppet-open-source-on-rhel-6","status":"publish","type":"post","link":"https:\/\/www.gregkuchyt.net\/?p=912","title":{"rendered":"Installing Puppet Open Source on RHEL 6 Notes"},"content":{"rendered":"<p>We&#8217;re just starting to get our feet wet with Puppet and we found the documentation woefully underwhelming. Here are our notes for getting a basic master\/agent setup going with a &#8220;Hello world&#8221; manifest.<\/p>\n<p>Basic Assumptions: SELinux is disabled<\/p>\n<h3>On your master<\/h3>\n<ul>\n<li>Install puppet and puppetserver packages\n<pre>    yum install puppet puppetserver<\/pre>\n<\/li>\n<li>Create the Puppet Master CA by running\n<pre>    sudo puppet master --verbose --no-daemonize<\/code><\/pre>\n<p>Once Notice: Starting Puppet master version appears, CTRL+C\n<\/li>\n<li>Configure the following in the main\/master section of \/etc\/puppet\/puppet.conf\n<pre>    dns_alt_names = host.fqdn.tld,alt_name\r\n    environment_timeout = unlimited\r\n    environmentpath = $confdir\/environments\r\n<\/pre>\n<\/li>\n<li>Create the following directories\n<ul>\n<li>\/etc\/puppet\/environments\/production<\/li>\n<li>\/etc\/puppet\/environments\/production\/manifests<\/li>\n<li>\/etc\/puppet\/environments\/production\/modules<\/li>\n<\/ul>\n<\/li>\n<li>Create <code>\/etc\/puppet\/environments\/production\/manifests\/site.pp<\/code> with the following\n<pre>notify {\"Hello world!\":}<\/pre>\n<\/li>\n<li>Run <code>service puppetserver start<\/code><\/li>\n<li>Open 8140 on firewall rules<\/li>\n<\/ul>\n<h3>On your agent<\/h3>\n<ul>\n<li>Install puppet<\/li>\n<li>Configure <code>\/etc\/puppet\/puppet.conf<\/code> with the following\n<pre>    server = hostname.fqdn.tld\r\n    environment = production\r\n<\/pre>\n<\/li>\n<li>Run <code>puppet agent --test<\/code> or start the puppet agent via <code>service puppet start<\/code><\/li>\n<\/ul>\n<h3>On Master<\/h3>\n<ul>\n<li>Run <code>puppet cert sign agenthostname.fqdn.tld<\/code><\/li>\n<\/ul>\n<h3>On agent<\/h3>\n<ul>\n<li>Run <code>puppet agent --test<\/code> and look for Hello world notice<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re just starting to get our feet wet with Puppet and we found the documentation woefully underwhelming. Here are our notes for getting a basic master\/agent setup going with a &#8220;Hello world&#8221; manifest. Basic Assumptions: SELinux is disabled On your master Install puppet and puppetserver packages yum install puppet puppetserver Create the Puppet Master CA [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,9],"tags":[],"class_list":["post-912","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-work"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4mwGD-eI","_links":{"self":[{"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/posts\/912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=912"}],"version-history":[{"count":10,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/posts\/912\/revisions"}],"predecessor-version":[{"id":923,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/posts\/912\/revisions\/923"}],"wp:attachment":[{"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}