{"id":3124,"date":"2018-09-26T07:30:37","date_gmt":"2018-09-26T04:00:37","guid":{"rendered":"http:\/\/webide.ir\/blog\/?p=3124"},"modified":"2018-09-25T14:47:10","modified_gmt":"2018-09-25T11:17:10","slug":"%da%86%da%af%d9%88%d9%86%d9%87-puppet-master-%d8%b1%d8%a7-%d8%a8%d8%b1-%d8%b1%d9%88%db%8c-%d8%b3%d9%86%d8%aa-%d8%a7%d9%88-%d8%a7%d8%b3-7-%d9%86%d8%b5%d8%a8-%d9%88-%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af","status":"publish","type":"post","link":"https:\/\/webide.ir\/blog\/%da%86%da%af%d9%88%d9%86%d9%87-puppet-master-%d8%b1%d8%a7-%d8%a8%d8%b1-%d8%b1%d9%88%db%8c-%d8%b3%d9%86%d8%aa-%d8%a7%d9%88-%d8%a7%d8%b3-7-%d9%86%d8%b5%d8%a8-%d9%88-%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af","title":{"rendered":"\u0686\u06af\u0648\u0646\u0647 Puppet Master \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0646\u062a \u0627\u0648 \u0627\u0633 7 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u0645\u061f"},"content":{"rendered":"<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc \u062f\u0627\u0646\u06cc\u062f Puppet \u06cc\u06a9\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0645\u062a\u0646 \u0628\u0627\u0632 \u0648 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u0627\u062a\u0648\u0645\u0627\u0633\u06cc\u0648\u0646 \u0633\u0631\u0648\u0631 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0647\u0627\u06cc \u0634\u0628\u06cc\u0647 \u06cc\u0648\u0646\u06cc\u06a9\u0633 \u0648 \u0646\u06cc\u0632 \u0648\u06cc\u0646\u062f\u0648\u0632 \u0646\u0635\u0628 \u06a9\u0631\u062f. Puppet \u0628\u0647 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u0648\u0638\u0627\u06cc\u0641 \u0645\u062f\u06cc\u0631\u06cc\u062a\u06cc \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u06cc \u0635\u062f\u0647\u0627 \u0633\u06cc\u0633\u062a\u0645 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u062f\u0646\u0628\u0627\u0644 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 Puppet \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0646\u062a \u0627\u0648 \u0627\u0633 7 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u0645. \u067e\u0633 \u0647\u0645\u0631\u0627\u0647 \u0648\u0628 \u0627\u06cc\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<p>\u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627:<\/p>\n<ul>\n<li>2 \u0639\u062f\u062f \u0633\u0631\u0648\u0631 \u0633\u0646\u062a \u0627\u0648 \u0627\u0633 7<\/li>\n<li>\u062f\u0633\u062a\u0631\u0633\u06cc \u0631\u0648\u062a<\/li>\n<\/ul>\n<p>\u0686\u0647 \u06a9\u0627\u0631\u06cc \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0627\u0646\u062c\u0627\u0645 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f\u061f<\/p>\n<ul>\n<li>\u067e\u06cc\u0634 \u0646\u0635\u0628 Puppet<\/li>\n<li>\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0633\u0631\u0648\u0631 Puppet<\/li>\n<li>\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Puppet Agent<\/li>\n<li>\u062a\u0627\u06cc\u06cc\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Puppet Agent<\/li>\n<li>\u0627\u06cc\u062c\u0627\u062f \u0627\u0648\u0644\u06cc\u0646 Puppet Manifest<\/li>\n<\/ul>\n<p><strong>\u06af\u0627\u0645 \u0627\u0648\u0644: \u067e\u06cc\u0634 \u0646\u0635\u0628 Puppet<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u06a9\u0627\u0631\u0647\u0627\u06cc\u06cc \u0647\u0645\u0686\u0648\u0646 \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062f\u0648 \u0633\u0631\u0648\u0631 puppet master \u0648 puppet agent \u0631\u0627 \u0628\u0627 \u0647\u0645 \u0627\u0646\u062c\u0627\u0645 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f.<\/p>\n<p>\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0647\u0627\u0633\u062a \u0631\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f\u060c \u0632\u0645\u0627\u0646 \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 NTP \u062a\u0646\u0638\u06cc\u0645 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f\u060c SELinux \u0631\u0627 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f \u0648 \u0645\u062e\u0632\u0646 puppet \u0631\u0627 \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u0627\u0636\u0627\u0641\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f.<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u0633\u062a \u0647\u0627:<\/p>\n<p>\u0628\u0647 \u06a9\u0645\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0631\u0648\u062a \u0628\u0647 puppet master \u0648 agent \u0648\u0635\u0644 \u0634\u0648\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">ssh\u00a0root@10.0.15.10\r\nssh\u00a0root@10.0.15.11<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0647\u0627\u0633\u062a \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 vim \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">vim \/etc\/hosts<\/pre>\n<p>&nbsp;<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0627\u0646\u062a\u0647\u0627\u06cc \u0641\u0627\u06cc\u0644 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">10.0.15.10\u00a0\u00a0\u00a0\u00a0\u00a0 master.hakase.io\r\n\u00a010.0.15.11\u00a0\u00a0\u00a0\u00a0\u00a0 agent.hakase.io<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f. \u062d\u0627\u0644\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u067e\u06cc\u0646\u06af \u0622\u0646 \u0631\u0627 \u062a\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">ping master.hakase.io\r\nping agent.hakase.io<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0646\u0645\u0627\u06cc\u06cc\u062f \u06a9\u0647 \u0622\u06cc \u067e\u06cc \u0622\u062f\u0631\u0633 \u0633\u0631\u0648\u0631 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0633\u0631\u0648\u0631 NTP:<\/p>\n<p>\u0628\u0627\u06cc\u062f \u0632\u0645\u0627\u0646 \u0628\u06cc\u0646 \u0633\u0631\u0648\u0631 Matser \u0648 Agent \u0631\u0627 \u0647\u0645\u06af\u0627\u0645 \u0633\u0627\u0632\u06cc\u062f. \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062e\u0627\u0637\u0631 \u067e\u06a9\u06cc\u062c \u0647\u0627\u06cc NTP \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631 \u0631\u0648\u06cc \u0647\u0631 \u062f\u0648 \u0633\u0631\u0648\u0631 \u0646\u0635\u0628 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f:<\/p>\n<pre class=\"lang:default decode:true \">yum -y install ntp ntpdate<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0641\u0631\u0622\u06cc\u0646\u062f \u0646\u0635\u0628 \u06a9\u0627\u0645\u0644 \u0634\u062f\u060c NTP pool \u0627\u06cc \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">sudo ntpdate 0.centos.pool.ntp.org<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0633\u0631\u0648\u06cc\u0633 NTP \u0631\u0627 \u0627\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f \u0648 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u0628\u0648\u062a \u0633\u06cc\u0633\u062a\u0645 \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">sudo systemctl start ntpd\r\nsudo systemctl enable ntpd<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062e\u0648\u0628 \u0641\u0631\u0627\u06cc\u0646\u062f \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc NTP \u062a\u06a9\u0645\u06cc\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 SELinux:<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc SELinux \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 vim \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">vim \/etc\/sysconfig\/selinux<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0645\u0642\u062f\u0627\u0631 SELinux\u00a0 \u0631\u0627 \u0628\u0647 disabled \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">SELINUX=disabled<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0645\u062e\u0632\u0646 puppet:<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u0645\u062e\u0632\u0646 puppet \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f \u0627\u0636\u0627\u0641\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">rpm -Uvh https:\/\/yum.puppetlabs.com\/puppet5\/puppet5-release-el-7.noarch.rpm<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u06a9\u0627\u0631\u062a\u0627\u0646 \u062a\u0645\u0627\u0645 \u0634\u062f \u0647\u0631 \u062f\u0648 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0631\u06cc\u0628\u0648\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<pre class=\"lang:default decode:true \">reboot<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u06af\u0627\u0645 \u062f\u0648\u0645: \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0633\u0631\u0648\u0631 puppet<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0633\u0631\u0648\u0631 puppet \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f \u0646\u0635\u0628 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">sudo yum -y install puppetserver<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0641\u0631\u0622\u06cc\u0646\u062f \u0646\u0635\u0628 \u06a9\u0627\u0645\u0644 \u0634\u062f\u060c \u0628\u0627\u06cc\u062f \u062d\u0627\u0641\u0638\u0647 \u062a\u062e\u0635\u06cc\u0635 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0631\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0646\u0645\u0627\u06cc\u06cc\u0645. \u062d\u062f\u0627\u06a9\u062b\u0631\u00a0 \u062d\u0627\u0641\u0638\u0647 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc 1 \u06af\u06cc\u06af\u0627\u0628\u0627\u06cc\u062a \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0633\u0631\u0648\u0631 puppet \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 vim \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">vim \/etc\/sysconfig\/puppetserver<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u062e\u0637 \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0631\u0627 \u0647\u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">JAVA_ARGS=\"-Xms1g -Xmx1g ....\"<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u0646\u06cc\u0646\u062f. \u0628\u0647 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc puppet \u0628\u0631\u0648\u06cc\u062f \u0648 \u0641\u0627\u06cc\u0644 &#8216;puppet.conf&#8217; \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<pre class=\"lang:default decode:true \">cd \/etc\/puppetlabs\/puppet\r\nvim puppet.conf<\/pre>\n<p>&nbsp;<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u062f\u0627\u0646 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">[master]\r\n\u00a0dns_alt_names=master.hakase.io,puppet\r\n\u00a0\r\n\u00a0[main]\r\n\u00a0certname = master.hakase.io\r\n\u00a0server = master.hakase.io\r\n\u00a0environment = production\r\n\u00a0runinterval = 1h<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/p>\n<p>\u062d\u0627\u0644\u0627 puppetserver \u0631\u0627 \u0627\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f \u0648 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u0627\u0633\u062a\u0627\u0631\u062a \u0622\u067e \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<pre class=\"lang:default decode:true \">systemctl start puppetserver\r\nsystemctl enable puppetserver<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062e\u0648\u0628 \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc puppetserver \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0628\u0647 \u0627\u062a\u0645\u0627\u0645 \u0631\u0633\u06cc\u062f. \u0627\u06af\u0631 \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f \u0627\u0632 firewalld \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u067e\u0648\u0631\u062a puppetserver \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">firewall-cmd --add-port=8140\/tcp --permanent\r\nfirewall-cmd --reload\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u06af\u0627\u0645 \u0633\u0648\u0645: \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Puppet Agent<\/strong><\/p>\n<p>\u0645\u0627\u00a0 Puppet Agent \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631\u06cc \u0628\u0647 \u0646\u0627\u0645 &#8216;agent.hakase.io \u0646\u0635\u0628 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">yum install -y puppet-agent<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0646\u0635\u0628 \u06a9\u0627\u0645\u0644 \u0634\u062f\u060c \u0628\u0647 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc puppet \u0628\u0631\u0648\u06cc\u062f \u0648 \u0641\u0627\u06cc\u0644 puppet.conf \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f.<\/p>\n<pre class=\"lang:default decode:true \">cd \/etc\/puppetlabs\/puppet\r\nvim puppet.conf<\/pre>\n<p>&nbsp;<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u067e\u06cc\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">\u00a0[main]\r\n\u00a0certname = agent.hakase.io\r\n\u00a0server = master.hakase.io\r\n\u00a0environment = production\r\n\u00a0runinterval = 1h<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f. \u0633\u067e\u0633 puppet agent \u0631\u0627 \u062f\u0631 puppet master \u062b\u0628\u062a \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0634\u0644 puppet agent \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">\/opt\/puppetlabs\/bin\/puppet resource service puppet ensure=running enable=true<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 puppet agent \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f \u0648 \u062a\u0644\u0627\u0634 \u0645\u06cc \u06a9\u0646\u062f \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 puppet master \u062b\u0628\u062a \u06a9\u0646\u062f. \u062d\u0627\u0644\u0627 \u0628\u0647 \u0634\u0644 puppet master \u0628\u0631\u06af\u0631\u062f\u06cc\u062f \u0648 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">\/opt\/puppetlabs\/bin\/puppet cert list<\/pre>\n<p>&nbsp;<\/p>\n<p>\u06af\u0648\u0627\u0647\u06cc\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0645\u0636\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">\/opt\/puppetlabs\/bin\/puppet cert sign agent.hakase.io<\/pre>\n<p>&nbsp;<\/p>\n<p>\u062e\u0648\u0628 \u062d\u0627\u0644\u0627 puppet agent \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627\u0633\u062a.<\/p>\n<p><strong>\u00a0\u06af\u0627\u0645 \u0686\u0647\u0627\u0631\u0645:\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc puppet agent \u0631\u0627 \u062a\u0627\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f.<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u06af\u0648\u0627\u0647\u06cc\u0646\u0627\u0645\u0647 puppet master \u0631\u0627 \u0628\u0631\u0627\u06cc agent \u0627\u0645\u0636\u0627 \u06a9\u0631\u062f\u06cc\u062f \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc agent \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0631\u0627 \u062a\u0627\u06cc\u06cc\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">\/opt\/puppetlabs\/bin\/puppet agent --test<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u06af\u0627\u0645 \u067e\u0646\u062c\u0645: \u0627\u06cc\u062c\u0627\u062f \u0627\u0648\u0644\u06cc\u0646 Manifest<\/strong><\/p>\n<p>\u062e\u0648\u0628 \u062d\u0627\u0627 \u0641\u0631\u0627\u06cc\u0646\u062f \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062f\u0648 \u0633\u0631\u0648\u0631 \u062a\u06a9\u0645\u06cc\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u06cc\u06a9 Manifest \u0633\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u062a\u0633\u062a \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0645\u0627 \u0627\u06cc\u0646 Manifest \u0631\u0627 \u0628\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u062f\u0631 puppet master \u0628\u0647\u00a0 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc &#8216;\/etc\/puppetlabs\/code\/&#8217; \u0628\u0631\u0648\u06cc\u062f \u0648 \u0641\u0627\u06cc\u0644 \u062c\u062f\u06cc\u062f\u06cc \u0628\u0647 \u0646\u0627\u0645 &#8216;site.pp&#8217; \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<pre class=\"lang:default decode:true \">cd \/etc\/puppetlabs\/code\/\r\ncd environments\/production\/manifests<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u062c\u062f\u06cc\u062f \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">vim site.pp<\/pre>\n<p>&nbsp;<\/p>\n<p>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u067e\u06cc\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true \">node 'agent.hakase.io' {\r\n\u00a0\u00a0\u00a0\u00a0 package { 'httpd':\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ensure\u00a0 =&gt; \"installed\",\r\n\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0\u00a0 service { 'httpd':\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ensure =&gt; running,\r\n\u00a0\u00a0\u00a0\u00a0 enable =&gt; true\r\n\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f. \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0634\u0644 Agent \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"lang:default decode:true\">\/opt\/puppetlabs\/bin\/puppet agent --test<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0645\u0631\u0648\u0631\u06af\u0631 \u062e\u0648\u0627\u0647\u062f \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f\u00a0 \u0648 \u0627\u06cc \u067e\u06cc \u0622\u062f\u0631\u0633 agent \u0631\u0627 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f. \u0628\u0627\u06cc\u062f \u0648\u0627\u0631\u062f \u0635\u0641\u062d\u0647 HTTP \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0634\u0648\u06cc\u062f.<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;3124&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 \u0627\u0645\u062a\u06cc\u0627\u0632)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u0686\u06af\u0648\u0646\u0647 Puppet Master \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0646\u062a \u0627\u0648 \u0627\u0633 7 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u0645\u061f&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc \u062f\u0627\u0646\u06cc\u062f Puppet \u06cc\u06a9\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0645\u062a\u0646 \u0628\u0627\u0632 \u0648 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u0627\u062a\u0648\u0645\u0627\u0633\u06cc\u0648\u0646 \u0633\u0631\u0648\u0631 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0647\u0627\u06cc \u0634\u0628\u06cc\u0647 \u06cc\u0648\u0646\u06cc\u06a9\u0633 \u0648 \u0646\u06cc\u0632 \u0648\u06cc\u0646\u062f\u0648\u0632 \u0646\u0635\u0628 \u06a9\u0631\u062f. Puppet \u0628\u0647 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u0648\u0638\u0627\u06cc\u0641 \u0645\u062f\u06cc\u0631\u06cc\u062a\u06cc \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u06cc \u0635\u062f\u0647\u0627 \u0633\u06cc\u0633\u062a\u0645 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06cc\u06a9 &hellip;<\/p>\n","protected":false},"author":8,"featured_media":3125,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1374,1370,3],"tags":[2437,2440,2438,2439],"class_list":["post-3124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-linux","category-web-articles","tag-puppet-master","tag-puppet-master-","tag--puppet-master","tag--puppet-master----"],"views":"356","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/parry3-Oo","jetpack_featured_media_url":"https:\/\/webide.ir\/blog\/wp-content\/uploads\/2018\/09\/puppet-master-client-install-ubuntu-1804.png","_links":{"self":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/3124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/comments?post=3124"}],"version-history":[{"count":0,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/3124\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media\/3125"}],"wp:attachment":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media?parent=3124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/categories?post=3124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/tags?post=3124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}