{"id":714,"date":"2015-04-15T07:57:15","date_gmt":"2015-04-15T16:57:15","guid":{"rendered":"http:\/\/blog.box.kr\/?p=714"},"modified":"2015-04-15T07:57:15","modified_gmt":"2015-04-15T16:57:15","slug":"how-to-install-puppet-on-centos7","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=714","title":{"rendered":"HOW TO INSTALL PUPPET ON CENTOS7"},"content":{"rendered":"<p><a href=\"https:\/\/garage.godaddy.com\/tech\/config\/install-puppet-centos7\/\">https:\/\/garage.godaddy.com\/tech\/config\/install-puppet-centos7\/<\/a><\/p>\n<p class=\"selectionShareable\">\n<p class=\"selectionShareable\">Puppet is a configuration management tool designed to allow users to define the state of complex IT infrastructures in the easiest way possible. Once those definitions are created, Puppet will automatically enforce those rules across each node. After installation, a Puppet agent is placed on every server, device and even virtual machine in an IT infrastructure. As a result, Puppet allows you to automate certain tasks that are traditionally accomplished manually, significantly reducing the amount of time needed to manage these activities on a daily basis. Do note that unlike other Linux variants, CentOS 7 does not yet have Puppet in the default repository list. As a result, you\u2019ll need to complete a few basic steps before you can move along to the installation process.<\/p>\n<p class=\"selectionShareable\">To set up Puppet, you\u2019ll need a live Linux server (that you can tweak) with a dedicated IP address and a way to connect to it. We recommend a<a href=\"https:\/\/www.godaddy.com\/pro\/managed-vps?isc=cardigan\"> GoDaddy Virtual Private Server<\/a> if you\u2019re just getting started, or a <a href=\"https:\/\/www.godaddy.com\/pro\/dedicated-server?isc=cardigan\">full dedicated server<\/a> if you\u2019re ready to take total control. To connect to your server, you\u2019ll need some kind of an SSH client. Google it, or try <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\">PuTTY<\/a> (Windows) or <a href=\"http:\/\/kb.mediatemple.net\/questions\/1599\/Using+SSH+in+Terminal.app+%28Mac+OS+X%29#gs\">Terminal<\/a> (Mac).<\/p>\n<div class=\"difficulty-time-requirements\">\n<div class=\"difficulty-requirement\">\n<div class=\"requirement-label\">DIFFICULTY: INTERMEDIATE\n<\/div>\n<div class=\"progress\">\n<div class=\"progress-bar progress-bar-warning\"><span class=\"sr-only\">Intermediate<\/span>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"time-requirement\">\n<div class=\"requirement-label\">TIME REQUIRED: 15 MIN\n<\/div>\n<div class=\"progress\">\n<div class=\"progress-bar progress-bar-success\"><span class=\"sr-only\">15 Min<\/span>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h4>Adding Puppet to your CentOS 7 repository list, though a mandatory step, should only take a few moments. Open the Terminal window and input the following command:1. Add Puppet to your CentOS repository list.<\/h4>\n<div id=\"crayon-552e6d4445b21123400478\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\">\n<\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-552e6d4445b21123400478-1\">1\n<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-552e6d4445b21123400478-1\" class=\"crayon-line\"><span class=\"crayon-v\">rpm<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">ivh <\/span><span class=\"crayon-v\">https<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/yum.puppetlabs.com\/el\/7\/products\/x86_64\/puppetlabs-release-7-11.noarch.rpm<\/span>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p class=\"selectionShareable\">The necessary files will download to your machine and you can then move on with the rest of the process.<\/p>\n<h4>2. Install Puppet server.<\/h4>\n<p class=\"selectionShareable\">Return to the Terminal window to download and install the necessary Puppet-Server files directly from the product\u2019s developer, Puppet Labs. To do so, enter the following command:<\/p>\n<div id=\"crayon-552e6d4445b2d369795819\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\">\n<\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-552e6d4445b2d369795819-1\">1\n<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-552e6d4445b2d369795819-1\" class=\"crayon-line\"><span class=\"crayon-e\">yum <\/span><span class=\"crayon-v\">install<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-i\">y<\/span> <span class=\"crayon-v\">puppet<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">server<\/span>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p class=\"selectionShareable\">When prompted, enter your administrator password to allow the installation process to complete.<\/p>\n<h4>3. Add the Puppet secure HTTP server to the CentOS firewall.<\/h4>\n<p class=\"selectionShareable\">To make sure that Puppet is capable of running correctly across your infrastructure, you\u2019ll need to make sure that you add an exception to your firewall configuration. To do that, execute the following command in the Terminal window:<\/p>\n<div id=\"crayon-552e6d4445b33917286735\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\">\n<\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-552e6d4445b33917286735-1\">1\n<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-552e6d4445b33917286735-1\" class=\"crayon-line\"><span class=\"crayon-v\">firewall<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">cmd<\/span> <span class=\"crayon-o\">&#8212;<\/span><span class=\"crayon-v\">zone<\/span><span class=\"crayon-o\">=<\/span><span class=\"crayon-m\">public<\/span> <span class=\"crayon-o\">&#8212;<\/span><span class=\"crayon-v\">add<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">port<\/span><span class=\"crayon-o\">=<\/span><span class=\"crayon-v\">XXXX<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">tcp<\/span> <span class=\"crayon-o\">&#8212;<\/span><span class=\"crayon-v\">permanent<\/span>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p class=\"selectionShareable\">Replace XXXX with the port number that you plan on using. You can then reload your firewall so that the new settings will go into effect with the following command:<\/p>\n<div id=\"crayon-552e6d4445b39685225689\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\">\n<\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-552e6d4445b39685225689-1\">1\n<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-552e6d4445b39685225689-1\" class=\"crayon-line\"><span class=\"crayon-v\">firewall<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">cmd<\/span> <span class=\"crayon-o\">&#8212;<\/span><span class=\"crayon-v\">reload<\/span>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h4>4. Verify that Puppet has installed correctly by executing Puppet-Server.<\/h4>\n<p class=\"selectionShareable\">Once properly installed, the easiest way to test to make sure that Puppet has installed correctly is by executing the Puppet-Server with the following command:<\/p>\n<div id=\"crayon-552e6d4445b3f236786335\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\">\n<\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-552e6d4445b3f236786335-1\">1\n<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-552e6d4445b3f236786335-1\" class=\"crayon-line\"><span class=\"crayon-e\">systemctl <\/span><span class=\"crayon-e\">start\u00a0\u00a0<\/span><span class=\"crayon-v\">puppetmaster<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">service<\/span>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h4>5. Install the Puppet client on your nodes.<\/h4>\n<p class=\"selectionShareable\">Once the Puppet-Server has been installed, you will need to install the Puppet Client on each node in your infrastructure before work can begin in earnest. To do this, follow the steps above to complete the addition of the Puppet Labs repository on each machine and use the following command in the Terminal to install the Puppet client:<\/p>\n<div id=\"crayon-552e6d4445b44818056222\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\">\n<\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-552e6d4445b44818056222-1\">1\n<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-552e6d4445b44818056222-1\" class=\"crayon-line\"><span class=\"crayon-e\">yum <\/span><span class=\"crayon-v\">install<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-i\">y<\/span> <span class=\"crayon-v\">puppet<\/span>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p class=\"selectionShareable\"><em>As a courtesy, we provide information about how to use certain third-party products, but we do not endorse or directly support third-party products and we are not responsible for the functions or reliability of such products. Third-party marks and logos are registered trademarks of their respective owners. All rights reserved.<\/em><\/p>\n<p class=\"illustrated-by selectionShareable\"><em>Image by <a href=\"https:\/\/www.flickr.com\/photos\/lorenjavier\/4126751545\/\">Marionette Robots<\/a> via <a href=\"http:\/\/compfight.com\/\">Compfight<\/a> <a href=\"https:\/\/creativecommons.org\/licenses\/by-nd\/2.0\/\">cc<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/garage.godaddy.com\/tech\/config\/install-puppet-centos7\/ Puppet is a configuration management tool designed to allow users to define the state of complex IT infrastructures in the easiest way possible. Once those definitions are created, Puppet will automatically enforce those rules across each node. After installation, a Puppet agent is placed on every server, device and even virtual machine in an IT infrastructure. As a result, Puppet allows you to automate certain tasks that are traditionally accomplished manually, significantly reducing the amount of time needed to manage these activities on a daily basis. Do note that unlike other Linux variants, CentOS 7 does not yet have Puppet in the default repository list. As a result, you\u2019ll need to complete a few basic steps before you can move along to the installation process. To set up Puppet, you\u2019ll need a live Linux server (that you can tweak) with a dedicated IP address and a way to connect to it. We recommend a GoDaddy Virtual Private Server if you\u2019re just getting started, or a full dedicated server if you\u2019re ready to take total control. To connect to your server, you\u2019ll need some kind of an SSH client. Google it, or try PuTTY (Windows) or Terminal (Mac). DIFFICULTY: INTERMEDIATE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5,7],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-bw","jetpack-related-posts":[{"id":781,"url":"https:\/\/blog.box.kr\/?p=781","url_meta":{"origin":714,"position":0},"title":"Install Telegram-cli on Centos7","date":"2015-05-13","format":false,"excerpt":"1. lua package install yum -y install lua-devel openssl-devel libconfig-devel readline-devel libevent-devel 1. git clone git clone --recursive https:\/\/github.com\/vysheng\/tg.git telegram 2. configure and make .\/configure \u00a0 \u00a0 \u00a0make \u00a0 \u00a0","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":711,"url":"https:\/\/blog.box.kr\/?p=711","url_meta":{"origin":714,"position":1},"title":"HOW TO INSTALL SENSU ON CENTOS7","date":"2015-04-15","format":false,"excerpt":"https:\/\/garage.godaddy.com\/tech\/config\/install-sensu-centos7\/ Sensu is a monitoring router for Linux operating systems such as CentOS 7. It monitors \u201ccheck\u201d scripts and passes their results to the corresponding handler scripts when the specified conditions are met. Checking the status of a service such as Apache is one of the most common uses of\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"Uchiwa","src":"https:\/\/i0.wp.com\/garage.godaddy.com\/wp-content\/uploads\/2015\/01\/Uchiwa.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1174,"url":"https:\/\/blog.box.kr\/?p=1174","url_meta":{"origin":714,"position":2},"title":"centos7] Adding to Firwwall rules","date":"2017-02-04","format":false,"excerpt":"Adding to Firwwall rules sudo iptables -I INPUT -p tcp --dport 3030 -j ACCEPT sudo service iptables save","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":678,"url":"https:\/\/blog.box.kr\/?p=678","url_meta":{"origin":714,"position":3},"title":"[Linux] Installing Tomcat 8 on a CentOS 7","date":"2015-04-13","format":false,"excerpt":"UPDATE SYSTEM First thing to do is to SSH to your CentOS 7 VPS, fire up a screen session and update your system using yum: ## screen -U -S tomcat8-centos7 ## yum update You may also want to install a text editor like nano or vim ## yum install vim\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":729,"url":"https:\/\/blog.box.kr\/?p=729","url_meta":{"origin":714,"position":4},"title":"install PostgreSQL on CentOS7","date":"2015-04-21","format":false,"excerpt":"1.\u00a0Install ( \u00a02015-04-21 > \ucd5c\uc2e0 \ubc84\uc804\uc740 9.4\u00a0 ) [root@localhost ~]# rpm -Uvh http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-7-x86_64\/pgdg-centos94-9.4-1.noarch.rpm http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-7-x86_64\/pgdg-centos94-9.4-1.noarch.rpm(\uc744)\ub97c \ubcf5\uad6c\ud569\ub2c8\ub2e4 \uacbd\uace0: \/var\/tmp\/rpm-tmp.z0BMz8: Header V4 DSA\/SHA1 Signature, key ID 442df0f8: NOKEY \uc900\ube44 \uc911...\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%] Updating \/ installing... 1:pgdg-centos94-9.4-1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%] [root@localhost ~]# yum install postgresql94 postgresql94-server postgresql94-libs postgresql94-contrib postgresql94 Loaded plugins: fastestmirror, langpacks http:\/\/linuxdownload.adobe.com\/linux\/x86_64\/repodata\/repomd.xml: [Errno\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":766,"url":"https:\/\/blog.box.kr\/?p=766","url_meta":{"origin":714,"position":5},"title":"install bugzilla with nginx on centos7","date":"2015-05-11","format":false,"excerpt":"Set the Hostname Before you begin installing and configuring the components described in this guide, please make sure you\u2019ve followed our instructions for setting your hostname. Issue the following commands to make sure it is set properly: hostname hostname -f The first command should show your short hostname, and the\u2026","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/714"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=714"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/714\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}