{"id":321,"date":"2016-07-18T01:31:10","date_gmt":"2016-07-17T19:31:10","guid":{"rendered":"https:\/\/avalon.land\/blog\/?p=321"},"modified":"2016-07-18T13:36:16","modified_gmt":"2016-07-18T07:36:16","slug":"puppet-with-r10k-puppet-best-practice","status":"publish","type":"post","link":"https:\/\/avalon.land\/blog\/it\/puppet-with-r10k-puppet-best-practice\/","title":{"rendered":"Puppet with r10k [Best Practice]"},"content":{"rendered":"<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-250\" src=\"https:\/\/avalon.land\/blog\/wp-content\/uploads\/2016\/07\/9a5d95cs-9601.jpg\" alt=\"2\" width=\"500\" height=\"500\"\/><\/p>\n<p>\n\u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0440\u0438\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 <strong>r10k<\/strong>. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0436\u0435 \u044d\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c \u0438 \u0437\u0430\u0447\u0435\u043c \u043e\u043d \u043d\u0443\u0436\u0435\u043d?<br \/>\n<a href=\"https:\/\/github.com\/puppetlabs\/r10k\">\u041f\u043e \u043c\u043d\u0435\u043d\u0438\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/a>:<\/p>\n<blockquote><p>R10k provides a general purpose toolset for deploying Puppet environme<br \/>\nnts and modules. It implements the Puppetfile format and provides a native implementation of Puppet dynamic environments<\/p><\/blockquote>\n<p>\u041f\u043e-\u043c\u043e\u0435\u043c\u0443 \u0441\u0443\u0433\u0443\u0431\u043e \u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e:<br \/>\n<!--more--><br \/>\n<strong>r10k<\/strong> &#8211; \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0441 \u043e\u0447\u0435\u043d\u044c \u0435\u043c\u0443 <del datetime=\"2016-07-17T17:11:22+00:00\">\u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c<\/del> \u0438\u043c\u0435\u043d\u0435\u043c (<a href=\"http:\/\/somethingsinistral.net\/blog\/rethinking-puppet-deployment\/\">Robot 10000 killer<\/a>) \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 ruby \u0441 \u043c\u043e\u043d\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u0441\u043a\u0443\u0434\u043d\u044b\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u043c.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nNAME\r\n    r10k - Killer robot powered Puppet environment deployment\r\n\r\nUSAGE\r\n    r10k &lt;subcommand&gt; &#x5B;options]\r\n\r\nDESCRIPTION\r\n    r10k is a suite of commands to help deploy and manage puppet code for\r\n    complex environments.\r\n\r\nCOMMANDS\r\n    deploy         Puppet dynamic environment deployment\r\n    help           show help\r\n    puppetfile     Perform operations on a Puppetfile\r\n    version        Print the version of r10k\r\n\r\nOPTIONS\r\n    -c --config     Specify a global configuration file\r\n       --color      Enable colored log messages\r\n    -h --help       Show help for this command\r\n    -t --trace      Display stack traces on application crash\r\n    -v --verbose    Set log verbosity. Valid values: fatal, error, warn, notice, info, debug, debug1, debug2\r\n<\/pre>\n<p>&#8230; \u0432\u043e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0432\u0441\u0451, \u0447\u0442\u043e \u043e\u043d \u0443\u043c\u0435\u0435\u0442. \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0433\u0438\u0433\u0430\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430 help \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e <em>deploy<\/em> \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432\/\u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438\u0437 git\/svn, <strong>\u041d\u041e<\/strong> \u0438 \u0434\u0430\u0436\u0435 \u0442\u0443\u0442 \u043d\u0435 \u0432\u0441\u0451 \u0442\u0430\u043a \u0433\u043b\u0430\u0434\u043a\u043e \u043a\u0430\u043a \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b.<\/p>\n<p>\u0418\u0437 \u043c\u0438\u043d\u0443\u0441\u043e\u0432:<br \/>\n&#8211; <strong>Ruby \u0438 \u0435\u0433\u043e \u0433\u0435\u043c\u044b<\/strong>. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u0430\u0432\u0434\u0435 \u0432 \u0433\u043b\u0430\u0437\u0430, \u0434\u0430 \u044d\u0442\u0443 \u0448\u0442\u0443\u043a\u043e\u0432\u0438\u043d\u0443 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0445\u043e\u0442\u044c \u043d\u0430 bash&#8217;\u0435 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0451, \u0447\u0442\u043e \u043e\u043d\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 &#8211; \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u0437 \u0433\u0438\u0442\u0430 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u043c\u0438 \u0442\u0435, \u0447\u0442\u043e \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 puppet&#8217;a. \u041d\u043e \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438? \u041e\u043d\u0438 \u043f\u0438\u0448\u0443\u0442 \u0435\u0433\u043e \u043d\u0430 \u0442\u044f\u0436\u0451\u043b\u043e\u043c ruby + \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043f\u043e\u0440\u0443\u0447\u0430\u044e\u0442 gem&#8217;\u0443, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u0440\u0438 \u0430\u043f\u0434\u0435\u0439\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0430\u043f\u0434\u0435\u0439\u0442\u0438\u0442\u044c \u0438 \u044d\u0442\u043e\u0442 \u0434\u0443\u0440\u0430\u0446\u043a\u0438\u0439 gem \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u043b\u0438\u0431\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c <strong>zack-r10k<\/strong> \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c puppetmaster \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0437\u0430 \u043d\u0430\u0441. \u041b\u0438\u0447\u043d\u043e \u044f \u0435\u043c\u0443 \u0430\u043f\u0434\u0435\u0439\u0442\u044b \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u044e.<br \/>\n&#8211; <strong>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439<\/strong>. \u0427\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442? \u0410 \u0437\u043d\u0430\u0447\u0438\u0442 \u044d\u0442\u043e, \u0447\u0442\u043e \u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c &#8220;\u042d\u0439, \u0434\u0440\u0443\u0433, \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0439 \u043c\u043d\u0435 \u0432\u0435\u0440\u0441\u0438\u044e 952a65d9ea&#8221;, \u043d\u0435\u0442, \u043e\u043d \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e.<br \/>\n&#8211; <strong>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0430\u0433\u0435\u043d\u0442\u0430<\/strong>. \u0422\u043e \u0435\u0441\u0442\u044c, \u0447\u0442\u043e\u0431 \u043d\u0430\u043c \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043d\u0430\u0448\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 puppetmaster \u0438 \u0441\u043a\u0430\u0437\u0430\u0442\u044c <em>r10k deploy environment -p -v<\/em> , \u043e\u0434\u043d\u0430\u043a\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u0441\u0442\u044b\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0440\u0430\u0434\u043e\u0432: 1. \u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 <strong>hooks<\/strong> (\u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 git) \u043b\u0438\u0431\u043e <strong>webhooks<\/strong>; 2. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u043e \u043a\u0440\u043e\u043d\u0443 \u0433\u043e\u043d\u044f\u0442\u044c \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, <strong>\u041d\u041e<\/strong> \u0438 \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u0436\u0438\u0440\u043d\u044b\u0439 \u043c\u0438\u043d\u0443\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0438\u0441\u0430\u043d \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u043f\u0443\u043d\u043a\u0442\u0435, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e &#8211; r10k \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443 \u043d\u0430\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0432\u0435\u0436\u0438\u0439 \u043a\u043e\u043c\u043c\u0438\u0442, \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044f \u044d\u0442\u043e \u043f\u043e \u043a\u0440\u043e\u043d\u0443 <em>\u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0435\u0433\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0430\u043c\u0438\u043c \u0436\u0435 \u0441\u043e\u0431\u043e\u0439<\/em> \u0441\u043d\u043e\u0432\u0430 \u0438 \u0441\u043d\u043e\u0432\u0430, \u0442\u0440\u0430\u0442\u044f \u043d\u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043c\u0430\u0448\u0438\u043d\u044b.<br \/>\n&#8211; <strong>\u041e\u043d \u043c\u043e\u0436\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438, \u043d\u043e \u043d\u0435 \u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438<\/strong>. \u0422\u043e \u0435\u0441\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0435\u043c, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 <strong>ntp<\/strong>, \u043d\u0430\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0434\u043e \u043d\u0430\u0439\u0442\u0438 \u0435\u0433\u043e <a href=\"https:\/\/github.com\/puppetlabs\/puppetlabs-ntp\/blob\/master\/metadata.json\">\u043c\u0435\u0442\u043e\u0434\u0430\u0442\u0443<\/a>, \u0433\u043b\u0430\u0437\u0430\u043c\u0438 \u043d\u0430\u0439\u0442\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438 \u0440\u0443\u043a\u0430\u043c\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u043c\u0443 \u0438\u0445 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435. \u041d\u043e \u044f \u043b\u0435\u043d\u0438\u0432\u044b\u0439 \u0430\u0434\u043c\u0438\u043d, \u044f \u043d\u0435 \u0445\u043e\u0447\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e, \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0448\u0438\u043d\u0430, \u0438\u043d\u0430\u0447\u0435 \u0437\u0430\u0447\u0435\u043c \u043e\u043d\u0430 \u043c\u043d\u0435? \u041b\u0430\u0434\u043d\u043e, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u044f \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u044e, <strong>\u041d\u041e<\/strong> \u043e\u043f\u044f\u0442\u044c \u0435\u0441\u0442\u044c \u043d\u043e&#8230; \u0430 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u044f \u0441\u043a\u0430\u0436\u0443 \u0435\u043c\u0443 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0434\u0443\u043b\u044f, \u0430 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0430\u0432\u0442\u043e\u0440 \u0434\u043e\u0431\u0430\u0432\u0438\u0442 \u0435\u0449\u0451 \u043e\u0434\u043d\u0443 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c? \u041e\u0442\u0432\u0435\u0442 \u043f\u0440\u043e\u0441\u0442 &#8211; \u0443 \u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430 \u0432\u0441\u0451\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u043c \u043f\u0430\u0440\u043a\u0435 \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f ntp. \u0422\u043e \u0435\u0441\u0442\u044c, \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u0435\u043c\u0443 \u0434\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 \u0432 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438, \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0430\u043c\u043e\u043c\u0443.<\/p>\n<p>\u041d\u0443 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043f\u043b\u044e\u0441\u044b:<br \/>\n+ \u041e\u043d \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442 \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438&#8230;<br \/>\n+ \u041c\u043e\u0436\u0435\u0442 \u043a\u0430\u043a git \u0442\u0430\u043a \u0438 svn<br \/>\n+ \u041c\u043e\u0436\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 \u0438\u0437 \u0440\u0435\u043f puppetforge \u043b\u0438\u0431\u043e \u043b\u044e\u0431\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445<br \/>\n+ \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 (\u041d\u0435 \u043f\u0443\u0442\u0430\u0442\u044c \u0441 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430\u043c\u0438!) \u0442\u043e \u0435\u0441\u0442\u044c \u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 &#8220;\u042d\u0439, r10k, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438 \u0442\u0430\u043a\u0443\u044e-\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044e, \u0442\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044f&#8221;<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0443\u043c\u0430\u043b\u0438 \u044d\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c &#8211; \u0432\u044b \u0441\u0443\u043c\u0430\u0441\u0448\u0435\u0434\u0448\u0438\u0439. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u044d\u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 puppet, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0438 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u0441\u0435\u0440\u0438\u044f <strong>Best Practice<\/strong> ;(<\/p>\n<h1 style=\"text-align: center;\"><span style=\"color: #808080;\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/span><\/h1>\n<hr \/>\n<p>\n\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043c <em>\/etc\/sudoers<\/em> \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u0442\u0430\u043c <em>Defaults<\/em> \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nDefaults    secure_path = \/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/usr\/local\/bin:\/usr\/local\/sbin:\/opt\/puppetlabs\/bin\r\n<\/pre>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u043c \u043d\u0430 \u0432\u044b\u0431\u043e\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e ruby, \u043b\u0438\u0431\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ruby \u0443\u0436\u0435 &#8220;\u0432\u0448\u0438\u0442\u043e\u0433\u043e&#8221; \u0432 puppet. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u043c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0433\u0435\u043c\u044b \u0438 \u0433\u0438\u0442.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nyum install rubygems git\r\n<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u0432\u0438\u043d\u043e\u0432\u043d\u0438\u043a\u0430 \u0441\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ngem install r10k\r\n<\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b r10k.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmkdir -p \/var\/r10k\/cache\r\nmkdir -p \/etc\/puppetlabs\/r10k\r\ntouch \/etc\/puppetlabs\/r10k\/r10k.yaml\r\n<\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u043c\u043e\u043d\u0441\u0442\u0440\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e <em>\/etc\/puppetlabs\/r10k\/r10k.yaml<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# location for cached repos\r\n:cachedir: &#039;\/var\/r10k\/cache&#039;\r\n\r\n# git repositories containing environments\r\n:sources:\r\n  :base:\r\n    remote: &#039;https:\/\/gitlab.com\/vasya\/puppet.git&#039;\r\n    basedir: &#039;\/etc\/puppetlabs\/code\/environments&#039;\r\n\r\n# purge non-existing environments found here\r\n:purgedirs:\r\n  - &#039;\/etc\/puppet\/environments&#039;\r\n<\/pre>\n<p>\u0412 <em>remote<\/em> \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u0432\u0430\u0448\u0430 \u0440\u0435\u043f\u0430, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0438\u0436\u0435.<br \/>\n\u0427\u0442\u043e\u0431 \u043d\u0430\u043c \u0433\u0434\u0435-\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430\u0448\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0438, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u044d\u0442\u043e &#8220;\u0433\u0434\u0435-\u0442\u043e&#8221; \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 git, \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u0445\u043e\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 puppet&#8217;\u043e\u043c \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ngit init --bare --shared=group \/srv\/puppet.git\r\nchgrp -R puppet \/srv\/puppet.git\r\ncd \/srv\/puppet.git\r\ngit symbolic-ref HEAD refs\/heads\/production\r\n<\/pre>\n<p><strong>\u041d\u041e<\/strong> \u044f \u043d\u0435 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043b\u0441\u044f \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043b \u0440\u0435\u043f\u0443 \u043d\u0430 <a href=\"https:\/\/gitlab.com\/vasya\/puppet\">gitlab<\/a>. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c &#8211; \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c branch <em>master<\/em> \u0432 <em>production<\/em>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u044d\u0442\u043e\u0439 \u0448\u0442\u0443\u043a\u0438 \u0432\u0441\u0435 \u0432\u0430\u0448\u0438 <em>environments<\/em> \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u0430\u043c \u0432\u0435\u0442\u043e\u043a \u0432 \u0440\u0435\u043f\u0435. \u0422\u043e \u0435\u0441\u0442\u044c, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u0432\u0430\u0441 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 environment production \u0438 \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f testing, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u0432\u0430\u0448\u0435\u0439 \u0440\u0435\u043f\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0432\u0435\u0442\u043a\u0438 production \u0438 testing.<br \/>\n\u0412 \u0441\u0432\u043e\u0451\u043c \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0445\u043e\u043c\u044f\u043a\u0435 (<strong>vasya<\/strong>, &#8211; \u0432\u044b \u0436\u0435 \u043d\u0435 \u0437\u0430\u0431\u044b\u043b\u0438 \u0447\u0442\u043e \u043c\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0438\u0437 \u043f\u043e\u0434 \u043d\u0435\u0433\u043e?) \u043f\u0438\u0448\u0435\u043c:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ngit clone https:\/\/gitlab.com\/vasya\/puppet.git\r\ncd puppet\r\ngit checkout -b production\r\n<\/pre>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e https:\/\/gitlab.com\/vasya\/puppet.git \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u044f \u0440\u0435\u043f\u0430, \u043a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u043b\u0438. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmkdir -p {modules,site\/profile\/manifests,hieradata\/nodes}\r\ntouch hieradata\/common.yaml\r\ntouch site\/profile\/manifests\/base.pp\r\ntouch environment.conf\r\ntouch Puppetfile\r\ntouch site.pp\r\n<\/pre>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c <em>environment.conf<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmanifest = site.pp\r\nmodulepath = modules:site\r\n<\/pre>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c <em>site.pp<\/em> \u0432\u043d\u043e\u0441\u044f \u0442\u0443\u0434\u0430 \u043e\u0434\u043d\u0443 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u0441\u0435\u0433\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0442\u0430\u043c \u0435\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0430\u0448\u0435\u043c\u0443 puppet&#8217;\u0443, \u0447\u0442\u043e\u0431 \u043e\u043d \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e <em>hiera<\/em> \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043d\u043e\u0434.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nhiera_include(&#039;classes&#039;)\r\n<\/pre>\n<p>\u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0441\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <em>Puppetfile<\/em> &#8211; \u044d\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e r10k \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438 \u0434\u0435\u043f\u043b\u043e\u0435.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nforge &#039;forge.puppetlabs.com&#039;\r\n\r\n# Forge Modules\r\nmod &#039;puppetlabs\/ntp&#039;, :latest\r\nmod &#039;puppetlabs\/puppetdb&#039;, :latest\r\nmod &#039;puppetlabs\/stdlib&#039;, :latest\r\nmod &#039;puppetlabs\/apt&#039;, :latest\r\nmod &#039;puppetlabs\/concat&#039;, :latest\r\nmod &#039;puppetlabs\/firewall&#039;, :latest\r\nmod &#039;puppetlabs\/inifile&#039;, :latest\r\nmod &#039;puppetlabs\/postgresql&#039;, :latest\r\n\r\n# Local Modules\r\nmod &#039;tm&#039;, :local =&gt; true\r\n<\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0438 \u0432\u0441\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c, \u0441\u043a\u0430\u0437\u0430\u043b\u0438, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e (\u0425\u043e\u0442\u044c \u044f \u0438 \u0437\u0430\u0440\u0435\u043a\u0430\u043b\u0441\u044f \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c (\u0441\u043c. \u043c\u0438\u043d\u0443\u0441\u044b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435)) \u0438 \u043c\u0435\u0441\u0442\u043e \u043e\u0442\u043a\u0443\u0434\u0430 \u0445\u043e\u0442\u0438\u043c \u0438\u0445 \u0431\u0440\u0430\u0442\u044c.<br \/>\n\u041a\u0430\u043a \u0431\u043e\u043d\u0443\u0441 \u043a \u0441\u0442\u0430\u0442\u044c\u0435 &#8211; \u0441\u043e\u0437\u0434\u0430\u0451\u043c <strong>hieradata\/common.yaml<\/strong> \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u043a\u0430\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043a\u043e \u0432\u0441\u0435\u043c \u043d\u043e\u0434\u0430\u043c.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n---\r\nclasses:\r\n - &#039;profile::base&#039;\r\n\r\nntp::restrict:\r\n -\r\nntp::enable: true\r\nntp::servers:\r\n  - 0.ru.pool.ntp.org\r\n  - 1.ru.pool.ntp.org\r\n<\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0430\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u044c <strong>site\/profile\/manifests\/base.pp<\/strong> \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u0443\u0434\u0430<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nclass profile::base {\r\n  class { &#039;::ntp&#039;: }\r\n}\r\n<\/pre>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e \u043d\u0430\u0448\u0438 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u044b. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0438\u0437 \u0432 <strong>hieradata\/nodes<\/strong><br \/>\n<em>puppet.my.domain.yaml<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n---\r\n# Declare our classes\r\nclasses:\r\n - tm\r\n\r\n# Here is example our module &quot;Test Module&quot; via \/etc\/puppetlabs\/code\/environments\/production\/modules\/tm\r\ntm::parameter_one: &quot;There is no other way, and there never was. I lost in this place. Pls, i beg u, help me if u can&quot;\r\n<\/pre>\n<p>\u0438 <em>puppetdb.my.domain.yaml<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n---\r\n# Declare our classes\r\nclasses:\r\n - tm\r\n - puppetdb\r\n\r\n# After declare, work with it, we can transfer any var that supports to it\r\npuppetdb::globals::version: &quot;latest&quot;\r\n\r\n Here is example our module &quot;Test Module&quot; via \/etc\/puppetlabs\/code\/environments\/production\/modules\/tm\r\ntm::parameter_one: &quot;There is no other way, and there never was. I lost in this place. Pls, i beg u, help me if u can&quot;\r\n<\/pre>\n<p>\u0421 \u044d\u0442\u0438\u043c \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438&#8230; \u043f\u0440\u0438\u0448\u043b\u0430 \u043f\u043e\u0440\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0430!<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ngit checkout -b production\r\ngit add *\r\ngit commit -a -m &quot;initital commit&quot;\r\ngit push -u origin production\r\n<\/pre>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0437\u0434\u043e\u0440\u043e\u0432\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nUsername for &#039;https:\/\/gitlab.com&#039;: vasya\r\nPassword for &#039;https:\/\/vasya@gitlab.com&#039;: \r\nCounting objects: 3, done.\r\nDelta compression using up to 4 threads.\r\nCompressing objects: 100% (2\/2), done.\r\nWriting objects: 100% (2\/2), 211 bytes | 0 bytes\/s, done.\r\nTotal 2 (delta 1), reused 0 (delta 0)\r\nTo https:\/\/gitlab.com\/vasya\/puppet.git\r\n   7bd8f3c..b78f485  production -&gt; production\r\nBranch production set up to track remote branch production from origin.\r\n<\/pre>\n<p>\u041d\u0443 \u0438 \u0441\u043e\u0431\u0441\u043d\u043e \u0434\u0435\u043f\u043b\u043e\u0438\u043c \u0438\u0437 \u0433\u0438\u0442\u0430 \u043d\u0430\u0448\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo r10k deploy environment -p -v\r\n<\/pre>\n<p>\u041d\u0430 \u0447\u0442\u043e \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nINFO\t -&gt; Deploying environment \/etc\/puppetlabs\/code\/environments\/production\r\nINFO\t -&gt; Environment production is now at b78f4851629fb94209c41615d96f5fc15f8e950d\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/ntp\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/puppetdb\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/stdlib\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/apt\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/concat\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/firewall\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/inifile\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/postgresql\r\nINFO\t -&gt; Deploying module \/etc\/puppetlabs\/code\/environments\/production\/modules\/tm\r\n<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430 \u043d\u0430\u0448\u0435\u043c puppetdb<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\npuppetdb vasya # sudo puppet agent --no-daemonize --onetime --verbose\r\nInfo: Using configured environment &#039;production&#039;\r\nInfo: Retrieving pluginfacts\r\nInfo: Retrieving plugin\r\nInfo: Loading facts\r\nInfo: Caching catalog for puppetdb.local\r\nInfo: Applying configuration version &#039;1468782923&#039;\r\nNotice: \/Stage&#x5B;main]\/Tm\/File&#x5B;\/tmp\/test_module]\/ensure: defined content as &#039;{md5}ef4186a646a01838b0427bdffeae7cc6&#039;\r\nNotice: \/Stage&#x5B;main]\/Ntp::Config\/File&#x5B;\/etc\/ntp.conf]\/ensure: defined content as &#039;{md5}2083e99dd158ddc605aff2a01a30ea5f&#039;\r\nInfo: Class&#x5B;Ntp::Config]: Scheduling refresh of Class&#x5B;Ntp::Service]\r\nInfo: Class&#x5B;Ntp::Service]: Scheduling refresh of Service&#x5B;ntp]\r\nNotice: \/Stage&#x5B;main]\/Ntp::Service\/Service&#x5B;ntp]: Triggered &#039;refresh&#039; from 1 events\r\nNotice: Applied catalog in 2.10 seconds\r\n<\/pre>\n<p>\u0423\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/p>\n<h1 style=\"text-align: center;\"><span style=\"color: #808080;\">\u041c\u043e\u0440\u0430\u043b\u044c<\/span><\/h1>\n<hr \/>\n<p>\n<strong>r10k<\/strong> \u043a\u0430\u043a \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 &#8211; \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0447\u0443\u0442\u044c \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u0412\u0441\u0451 \u0442\u043e, \u0447\u0442\u043e \u043e\u043d \u0443\u043c\u0435\u0435\u0442 \u0438 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c, \u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 <strong>bash<\/strong>-\u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0434\u0430\u0436\u0435&#8230; \u0430\u0432\u0442\u043e\u043c\u0435\u0445\u0430\u043d\u0438\u043a. \u041b\u0438\u0447\u043d\u043e \u044f \u0431\u044b \u043f\u043e\u0440\u0443\u0447\u0438\u043b \u0434\u0435\u043f\u043b\u043e\u0438\u043d\u0433 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0432\u0435\u0440\u0441\u0438\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/jenkins.io\/\">jenkins<\/a>&#8216;\u0443. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f. (\u0441)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0440\u0438\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 r10k. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0436\u0435 \u044d\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c \u0438 \u0437\u0430\u0447\u0435\u043c \u043e\u043d \u043d\u0443\u0436\u0435\u043d? \u041f\u043e \u043c\u043d\u0435\u043d\u0438\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432: R10k provides a<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/avalon.land\/blog\/it\/puppet-with-r10k-puppet-best-practice\/\">Continue reading<span class=\"screen-reader-text\">Puppet with r10k [Best Practice]<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-321","post","type-post","status-publish","format-standard","hentry","category-it","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/posts\/321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/comments?post=321"}],"version-history":[{"count":15,"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/posts\/321\/revisions\/335"}],"wp:attachment":[{"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/categories?post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avalon.land\/blog\/wp-json\/wp\/v2\/tags?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}