1725 lines
416 KiB
HTML
1725 lines
416 KiB
HTML
|
|
<!DOCTYPE html>
|
|||
|
|
|
|||
|
|
<html dir="ltr" lang="ru" xml:lang="ru">
|
|||
|
|
<head>
|
|||
|
|
<title>SF25: 12) Настройка серверов баз данных (postgresql_deploy_playbook.yml) | sysahelper</title>
|
|||
|
|
<link href="https://sysahelper.ru/pluginfile.php/1/theme_moove/favicon/1703880572/22212monkey_98814.ico" rel="shortcut icon"/>
|
|||
|
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|||
|
|
<meta content="moodle, SF25: 12) Настройка серверов баз данных (postgresql_deploy_playbook.yml) | sysahelper" name="keywords"/>
|
|||
|
|
<link href="https://sysahelper.ru/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple-min.css" rel="stylesheet" type="text/css"/><script id="firstthemesheet" type="text/css">/** Required in order to fix style inclusion problems in IE with YUI **/</script><link href="https://sysahelper.ru/theme/styles.php/moove/1703880572_1/all" rel="stylesheet" type="text/css"/>
|
|||
|
|
<script>
|
|||
|
|
//<![CDATA[
|
|||
|
|
var M = {}; M.yui = {};
|
|||
|
|
M.pageloadstarttime = new Date();
|
|||
|
|
M.cfg = {"wwwroot":"https:\/\/sysahelper.ru","homeurl":{},"sesskey":"I78ejZljGV","sessiontimeout":"28800","sessiontimeoutwarning":"1200","themerev":"1703880572","slasharguments":1,"theme":"moove","iconsystemmodule":"core\/icon_system_fontawesome","jsrev":"1703880200","admin":"admin","svgicons":true,"usertimezone":"\u0415\u0432\u0440\u043e\u043f\u0430\/\u041c\u043e\u0441\u043a\u0432\u0430","language":"ru","courseId":39,"courseContextId":936,"contextid":1017,"contextInstanceId":649,"langrev":1703880200,"templaterev":"1703880200"};var yui1ConfigFn = function(me) {if(/-skin|reset|fonts|grids|base/.test(me.name)){me.type='css';me.path=me.path.replace(/\.js/,'.css');me.path=me.path.replace(/\/yui2-skin/,'/assets/skins/sam/yui2-skin')}};
|
|||
|
|
var yui2ConfigFn = function(me) {var parts=me.name.replace(/^moodle-/,'').split('-'),component=parts.shift(),module=parts[0],min='-min';if(/-(skin|core)$/.test(me.name)){parts.pop();me.type='css';min=''}
|
|||
|
|
if(module){var filename=parts.join('-');me.path=component+'/'+module+'/'+filename+min+'.'+me.type}else{me.path=component+'/'+component+'.'+me.type}};
|
|||
|
|
YUI_config = {"debug":false,"base":"https:\/\/sysahelper.ru\/lib\/yuilib\/3.18.1\/","comboBase":"https:\/\/sysahelper.ru\/theme\/yui_combo.php?","combine":true,"filter":null,"insertBefore":"firstthemesheet","groups":{"yui2":{"base":"https:\/\/sysahelper.ru\/lib\/yuilib\/2in3\/2.9.0\/build\/","comboBase":"https:\/\/sysahelper.ru\/theme\/yui_combo.php?","combine":true,"ext":false,"root":"2in3\/2.9.0\/build\/","patterns":{"yui2-":{"group":"yui2","configFn":yui1ConfigFn}}},"moodle":{"name":"moodle","base":"https:\/\/sysahelper.ru\/theme\/yui_combo.php?m\/1703880200\/","combine":true,"comboBase":"https:\/\/sysahelper.ru\/theme\/yui_combo.php?","ext":false,"root":"m\/1703880200\/","patterns":{"moodle-":{"group":"moodle","configFn":yui2ConfigFn}},"filter":null,"modules":{"moodle-core-blocks":{"requires":["base","node","io","dom","dd","dd-scroll","moodle-core-dragdrop","moodle-core-notification"]},"moodle-core-actionmenu":{"requires":["base","event","node-event-simulate"]},"moodle-core-notification":{"requires":["moodle-core-notification-dialogue","moodle-core-notification-alert","moodle-core-notification-confirm","moodle-core-notification-exception","moodle-core-notification-ajaxexception"]},"moodle-core-notification-dialogue":{"requires":["base","node","panel","escape","event-key","dd-plugin","moodle-core-widget-focusafterclose","moodle-core-lockscroll"]},"moodle-core-notification-alert":{"requires":["moodle-core-notification-dialogue"]},"moodle-core-notification-confirm":{"requires":["moodle-core-notification-dialogue"]},"moodle-core-notification-exception":{"requires":["moodle-core-notification-dialogue"]},"moodle-core-notification-ajaxexception":{"requires":["moodle-core-notification-dialogue"]},"moodle-core-lockscroll":{"requires":["plugin","base-build"]},"moodle-core-event":{"requires":["event-custom"]},"moodle-core-chooserdialogue":{"requires":["base","panel","moodle-core-notification"]},"moodle-core-maintenancemodetimer":{"requires":["base","node"]},"moodle-core-handlebars":{"condition":{"trigger":"handlebars","when":"after"}},"moodle-core-formchangechecker":{"requires":["base","event-focus","moodle-core-event"]},"moodle-core-dragdrop":{"requires":["base","node","io","dom","dd","event-key","event-focus","moodle-core-notification"]},"moodle-core_availability-form":{"requires":["base","node","event","event-delegate","panel","moodle-core-notification-dialogue","json"]},"moodle-backup-backupselectall":{"requires":["node","event","node-event-simulate","anim"]},"moodle-course-util":{"requires":["node"],"use":["moodle-course-util-base"],"submodules":{"moodle-course-util-base":{},"moodle-course-util-section":{"requires":["node","moodle-course-util-base"]},"moodle-course-util-cm":{"requires":["node","moodle-course-util-base"]}}},"moodle-course-management":{"requires":["base","node","io-base","moodle-core-notification-exception","json-parse","dd-constrain","dd-proxy","dd-drop","dd-delegate","node-event-delegate"]},"moodle-course-categoryexpander":{"requires":["node","event-key"]},"moodle-course-dragdrop":{"requires":["base","node","io","dom","dd","dd-scroll","moodle-core-dragdrop","moodle-core-notification","moodle-course-coursebase","moodle-course-util"]},"moodle-form-dateselector":{"requires":["base","node","overlay","calendar"]},"moodle-form-shortforms":{"requires":["node","base","selector-css3","moodle-core-event"]},"moodle-question-searchform":{"requires":["base","node"]},"moodle-question-preview":{"requires":["base","dom","event-delegate","event-key","core_question_engine"]},"moodle-question-chooser":{"requires":["moodle-core-chooserdialogue"]},"moodle-availability_completion-form":{"requires":["base","node","event","moodle-core_availability-form"]},"moodle-availability_date-form":{"requires":["base","node","event","io","moodle-core_availability-form"]},"moodle-availability_grade-form":{"requires":["base","node","event","moodle-core_availability-form"]},"moodle-availability_group-form":{"requires":["base","node","event","moodle-core_availability-form"]},"moodle-availability_grouping-form":{"requires":["base","node","event"
|
|||
|
|
M.yui.loader = {modules: {}};
|
|||
|
|
|
|||
|
|
//]]>
|
|||
|
|
</script>
|
|||
|
|
<link href="https://fonts.googleapis.com" rel="preconnect"/>
|
|||
|
|
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
|
|||
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet"/>
|
|||
|
|
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
|||
|
|
</head>
|
|||
|
|
<body class="format-topics limitedwidth path-mod path-mod-page chrome dir-ltr lang-ru yui-skin-sam yui3-skin-sam sysahelper-ru pagelayout-incourse course-39 context-1017 cmid-649 cm-type-page category-6 theme uses-drawers drawer-open-index" id="page-mod-page-view">
|
|||
|
|
<div class="fixed-top" id="accessibilitybar">
|
|||
|
|
<div class="container-fluid">
|
|||
|
|
<div class="bars">
|
|||
|
|
<div class="fontsize">
|
|||
|
|
<span>Размер шрифта</span>
|
|||
|
|
<ul>
|
|||
|
|
<li><a class="btn btn-default" data-action="decrease" id="fontsize_dec" title="Уменьшить размер шрифта">A-</a></li>
|
|||
|
|
<li><a class="btn btn-default" data-action="reset" id="fontsize_reset" title="Сбросить размер шрифта">A</a></li>
|
|||
|
|
<li><a class="btn btn-default" data-action="increase" id="fontsize_inc" title="Увеличить размер шрифта">A+</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
<div class="sitecolor">
|
|||
|
|
<span>Цвет сайта</span>
|
|||
|
|
<ul>
|
|||
|
|
<li><a class="btn btn-default" data-action="reset" id="sitecolor_color1" title="Сбросить цвет сайта">R</a></li>
|
|||
|
|
<li><a class="btn btn-default" data-action="sitecolor-color-2" id="sitecolor_color2" title="Низкий контраст 1">A</a></li>
|
|||
|
|
<li><a class="btn btn-default" data-action="sitecolor-color-3" id="sitecolor_color3" title="Низкий контраст 2">A</a></li>
|
|||
|
|
<li><a class="btn btn-default" data-action="sitecolor-color-4" id="sitecolor_color4" title="Высокий контраст">A</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div aria-live="polite" class="toast-wrapper mx-auto py-0 fixed-top" role="status"></div>
|
|||
|
|
<div class="d-print-block" id="page-wrapper">
|
|||
|
|
<div>
|
|||
|
|
<a class="sr-only sr-only-focusable" href="#maincontent">Перейти к основному содержанию</a>
|
|||
|
|
</div><script src="https://sysahelper.ru/lib/javascript.php/1703880200/lib/polyfills/polyfill.js"></script>
|
|||
|
|
<script src="https://sysahelper.ru/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple-min.js"></script><script src="https://sysahelper.ru/lib/javascript.php/1703880200/lib/javascript-static.js"></script>
|
|||
|
|
<script>
|
|||
|
|
//<![CDATA[
|
|||
|
|
document.body.className += ' jsenabled';
|
|||
|
|
//]]>
|
|||
|
|
</script>
|
|||
|
|
<nav aria-label="Навигация по сайту" class="navbar fixed-top navbar-light bg-white navbar-expand shadow">
|
|||
|
|
<button class="navbar-toggler aabtn d-block d-md-none px-1 my-1 border-0" data-action="toggle" data-target="theme_moove-drawers-primary" data-toggler="drawers">
|
|||
|
|
<span class="navbar-toggler-icon"></span>
|
|||
|
|
<span class="sr-only">Боковая панель</span>
|
|||
|
|
</button>
|
|||
|
|
<a class="navbar-brand d-none d-md-flex align-items-center m-0 mr-4 p-0 aabtn" href="https://sysahelper.ru/">
|
|||
|
|
<img alt="sysahelper" class="logo mr-1" src="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMvaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0NSA3OS4xNjM0OTksIDIwMTgvMDgvMTMtMTY6NDA6MjI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tzejNV4KFk+XxVzZQSHhZLLGQwu6uLdVdMeel+FZiXi2O1ecNzyt5g32jtRwzd452JuXtjyVtXzSwmneAfDZvB8XSuW820Zaf3Rye8GWaW9DsRj2vaHsIc1wBa4bQQdxCyi5fqAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICDX6hyLsbhL29Z/GQxOMdfhnY37oqNvM3wsVrx4Qk7PD8XLWk8plUGldOzaly0scs5YxrTNcznznkk02V6ST0rG7DZzuckxM+mZbTuG8ja44mI9EQk13yhfvs8iD8WaOnutJ95WuT+PT+W/wBMKrH/ACKPzU+iWlvOWeqrepjijuQP5qQV8j+BQMnZNxXlEW9U/en4++be3OZr64+5gOn1hgHsdI67sxWjOPi7s06KGrCuE33O3nj1V+z7kiKbbcRw6bfb960dFao/T+Mc+VoZe25DLhrdxqKteB0By1XbN9+4x6z70c2S7psP2+TSPdty+5IVZK0QEBAQEBAQEBA
|
|||
|
|
</a>
|
|||
|
|
<div class="primary-navigation">
|
|||
|
|
<nav class="moremenu navigation">
|
|||
|
|
<ul class="nav more-nav navbar-nav" id="moremenu-69fc9746d2108-navbar-nav" role="menubar">
|
|||
|
|
<li class="nav-item" data-forceintomoremenu="false" data-key="home" role="none">
|
|||
|
|
<a class="nav-link" href="https://sysahelper.ru/" role="menuitem" tabindex="-1">
|
|||
|
|
В начало
|
|||
|
|
</a>
|
|||
|
|
</li>
|
|||
|
|
<li class="nav-item dropdown dropdownmoremenu d-none" data-region="morebutton" role="none">
|
|||
|
|
<a aria-expanded="false" aria-haspopup="true" class="dropdown-toggle nav-link" data-toggle="dropdown" href="#" id="moremenu-dropdown-69fc9746d2108" role="menuitem" tabindex="-1">
|
|||
|
|
Дополнительно
|
|||
|
|
</a>
|
|||
|
|
<ul aria-labelledby="moremenu-dropdown-69fc9746d2108" class="dropdown-menu dropdown-menu-left" data-region="moredropdown" role="menu">
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</nav>
|
|||
|
|
</div>
|
|||
|
|
<ul class="navbar-nav d-none d-md-flex my-1 px-1">
|
|||
|
|
<!-- page_heading_menu -->
|
|||
|
|
</ul>
|
|||
|
|
<div class="navbar-nav ml-auto" id="usernavigation">
|
|||
|
|
<div class="navbarcallbacks">
|
|||
|
|
</div>
|
|||
|
|
<div class="simplesearchform" id="searchinput-navbar-69fc9746d3c3669fc9746d26fc3">
|
|||
|
|
<div class="collapse" id="searchform-navbar">
|
|||
|
|
<form accept-charset="utf-8" action="https://sysahelper.ru/search/index.php" autocomplete="off" class="mform form-inline searchform-navbar" method="get">
|
|||
|
|
<input name="context" type="hidden" value="1017"/>
|
|||
|
|
<div class="input-group">
|
|||
|
|
<label for="searchinput-69fc9746d3c3669fc9746d26fc3">
|
|||
|
|
<span class="sr-only">Найти</span>
|
|||
|
|
</label>
|
|||
|
|
<input aria-label="Найти" autocomplete="off" class="form-control withclear" data-region="input" id="searchinput-69fc9746d3c3669fc9746d26fc3" name="q" placeholder="Найти" type="text"/>
|
|||
|
|
<a class="btn btn-close" data-action="closesearch" data-toggle="collapse" href="#searchform-navbar" role="button">
|
|||
|
|
<i aria-hidden="true" class="icon fa fa-times fa-fw"></i>
|
|||
|
|
<span class="sr-only">Закрыть</span>
|
|||
|
|
</a>
|
|||
|
|
<div class="input-group-append">
|
|||
|
|
<button class="btn btn-submit" data-action="submit" type="submit">
|
|||
|
|
<i aria-hidden="true" class="icon fa fa-search fa-fw"></i>
|
|||
|
|
<span class="sr-only">Найти</span>
|
|||
|
|
</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
<a aria-controls="searchform-navbar" aria-expanded="false" class="btn btn-open rounded-0 nav-link" data-action="opensearch" data-toggle="collapse" href="#searchform-navbar" role="button" title="Изменить данные поисковой строки">
|
|||
|
|
<i aria-hidden="true" class="icon fa fa-search fa-fw"></i>
|
|||
|
|
<span class="sr-only">Изменить данные поисковой строки</span>
|
|||
|
|
</a>
|
|||
|
|
</div>
|
|||
|
|
<div class="divider border-left h-75 align-self-center mx-1"></div>
|
|||
|
|
<div class="langmenu">
|
|||
|
|
<div class="dropdown show">
|
|||
|
|
<a aria-controls="lang-action-menu" aria-haspopup="true" aria-label="Язык" class="btn dropdown-toggle" data-toggle="dropdown" href="#" id="lang-menu-toggle" role="button">
|
|||
|
|
<i aria-hidden="true" class="icon fa fa-language fa-fw mr-1"></i>
|
|||
|
|
<span class="langbutton">
|
|||
|
|
Русский (ru)
|
|||
|
|
</span>
|
|||
|
|
<b class="caret"></b>
|
|||
|
|
</a>
|
|||
|
|
<div aria-labelledby="lang-menu-toggle" class="dropdown-menu dropdown-menu-right" id="lang-action-menu" role="menu">
|
|||
|
|
<a aria-current="true" class="dropdown-item pl-5" href="#" role="menuitem">
|
|||
|
|
Русский (ru)
|
|||
|
|
</a>
|
|||
|
|
<a class="dropdown-item pl-5" href="https://sysahelper.ru/mod/page/view.php?id=649&lang=en" role="menuitem">
|
|||
|
|
English (en)
|
|||
|
|
</a>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="divider border-left h-75 align-self-center mx-1"></div>
|
|||
|
|
<div class="d-flex align-items-stretch usermenu-container" data-region="usermenu">
|
|||
|
|
<div class="usermenu">
|
|||
|
|
<span class="login pl-2">
|
|||
|
|
Вы используете гостевой доступ
|
|||
|
|
<div class="divider border-left h-75 align-self-center mx-2"></div>
|
|||
|
|
<a href="https://sysahelper.ru/login/index.php">Вход</a>
|
|||
|
|
</span>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</nav>
|
|||
|
|
<div class="drawer drawer-left drawer-primary d-print-none not-initialized" data-close-on-resize="1" data-forceopen="0" data-preference="" data-region="fixed-drawer" data-state="show-drawer-primary" id="theme_moove-drawers-primary">
|
|||
|
|
<div class="drawerheader">
|
|||
|
|
<button class="btn drawertoggle icon-no-margin hidden" data-action="closedrawer" data-placement="right" data-target="theme_moove-drawers-primary" data-toggle="tooltip" data-toggler="drawers" title="Закрыть панель">
|
|||
|
|
<i aria-hidden="true" class="icon fa fa-times fa-fw"></i>
|
|||
|
|
</button>
|
|||
|
|
<div class="drawerheadercontent hidden">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="drawercontent drag-container" data-usertour="scroller">
|
|||
|
|
<div class="list-group">
|
|||
|
|
<a class="list-group-item list-group-item-action" href="https://sysahelper.ru/">
|
|||
|
|
В начало
|
|||
|
|
</a>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="drawer drawer-left show d-print-none not-initialized" data-close-on-resize="0" data-forceopen="0" data-preference="drawer-open-index" data-region="fixed-drawer" data-state="show-drawer-left" id="theme_boost-drawers-courseindex">
|
|||
|
|
<div class="drawerheader">
|
|||
|
|
<button class="btn drawertoggle icon-no-margin hidden" data-action="closedrawer" data-placement="right" data-target="theme_boost-drawers-courseindex" data-toggle="tooltip" data-toggler="drawers" title="Закрыть оглавление курса">
|
|||
|
|
<i aria-hidden="true" class="icon fa fa-times fa-fw"></i>
|
|||
|
|
</button>
|
|||
|
|
<div class="drawerheadercontent hidden">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="drawercontent drag-container" data-usertour="scroller">
|
|||
|
|
<nav class="courseindex" id="courseindex">
|
|||
|
|
<div id="courseindex-content">
|
|||
|
|
<div aria-hidden="true" data-region="loading-placeholder-content" id="course-index-placeholder">
|
|||
|
|
<ul class="media-list">
|
|||
|
|
<li class="media">
|
|||
|
|
<div class="media-body col-md-6 p-0 d-flex align-items-center">
|
|||
|
|
<div class="bg-pulse-grey rounded-circle mr-2"></div>
|
|||
|
|
<div class="bg-pulse-grey w-100"></div>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li class="media">
|
|||
|
|
<div class="media-body col-md-6 p-0 d-flex align-items-center">
|
|||
|
|
<div class="bg-pulse-grey rounded-circle mr-2"></div>
|
|||
|
|
<div class="bg-pulse-grey w-100"></div>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li class="media">
|
|||
|
|
<div class="media-body col-md-6 p-0 d-flex align-items-center">
|
|||
|
|
<div class="bg-pulse-grey rounded-circle mr-2"></div>
|
|||
|
|
<div class="bg-pulse-grey w-100"></div>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
<li class="media">
|
|||
|
|
<div class="media-body col-md-6 p-0 d-flex align-items-center">
|
|||
|
|
<div class="bg-pulse-grey rounded-circle mr-2"></div>
|
|||
|
|
<div class="bg-pulse-grey w-100"></div>
|
|||
|
|
</div>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</nav>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="drawers show-drawer-left drag-container" data-region="mainpage" data-usertour="scroller" id="page">
|
|||
|
|
<header class="moove-container-fluid" id="page-header">
|
|||
|
|
<div class="d-flex flex-wrap">
|
|||
|
|
<div class="ml-auto d-flex">
|
|||
|
|
</div>
|
|||
|
|
<div id="course-header">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="d-sm-flex align-items-center">
|
|||
|
|
<div class="mr-auto">
|
|||
|
|
<div class="page-context-header"><div class="page-header-image mr-2"><div class="content activityiconcontainer icon-size-6 modicon_page"><img alt="" aria-hidden="true" class="icon activityicon" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiI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Mi42YzAtMS40LTEuMi0yLjYtMi42LTIuNkgxOS44Yy0xLjQsMC0yLjYsMS4yLTIuNiwyLjZTMTguNCwzNy44LDE5LjgsMzcuOHoiLz4KPC9nPgo8L3N2Zz4K"/></div></div><div class="page-header-headings"><h1 class="h2">12) Настройка серверов баз данных (postgresql_deploy_playbook.yml)</h1></div></div>
|
|||
|
|
</div>
|
|||
|
|
<div class="header-actions-container ml-auto" data-region="header-actions-container">
|
|||
|
|
</div>
|
|||
|
|
<div class="d-none d-md-block" id="page-navbar">
|
|||
|
|
<nav aria-label="Панель навигации">
|
|||
|
|
<ol class="breadcrumb">
|
|||
|
|
<li class="breadcrumb-item">
|
|||
|
|
<a href="https://sysahelper.ru/course/view.php?id=39#section-1" title="SEMIFINAL2025">SF25</a>
|
|||
|
|
</li>
|
|||
|
|
<li class="breadcrumb-item"><span>12) Настройка серверов баз данных (postgresql_deploy_playbook.yml)</span></li>
|
|||
|
|
</ol>
|
|||
|
|
</nav>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</header>
|
|||
|
|
<div class="main-inner" id="topofscroll">
|
|||
|
|
<div class="drawer-toggles d-flex">
|
|||
|
|
<div class="drawer-toggler drawer-left-toggle open-nav d-print-none">
|
|||
|
|
<button class="btn icon-no-margin" data-action="toggle" data-placement="right" data-target="theme_boost-drawers-courseindex" data-toggle="tooltip" data-toggler="drawers" title="Открыть оглавление курса">
|
|||
|
|
<span class="sr-only">Открыть оглавление курса</span>
|
|||
|
|
<i aria-hidden="true" class="icon fa fa-list fa-fw"></i>
|
|||
|
|
</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="d-print-block" id="page-content">
|
|||
|
|
<div id="region-main-box">
|
|||
|
|
<section aria-label="Содержимое" id="region-main">
|
|||
|
|
<span class="notifications" id="user-notifications"></span>
|
|||
|
|
<span id="maincontent"></span>
|
|||
|
|
<div class="activity-header" data-for="page-activity-header">
|
|||
|
|
<span class="sr-only">Требуемые условия завершения</span>
|
|||
|
|
<div class="activity-information" data-activityname="12) Настройка серверов баз данных (postgresql_deploy_playbook.yml)" data-region="activity-information">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div role="main"><div class="box py-3 generalbox center clearfix"><div class="no-overflow"><h3>Задание:</h3>
|
|||
|
|
<p class="docData;DOCY;v5;4426;BQiAAgAAEYQCAAAGiAIAAANLDgAABVkOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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gb
|
|||
|
|
<ul>
|
|||
|
|
<li>i. Установить <strong>PostgreSQL</strong>;
|
|||
|
|
<ul>
|
|||
|
|
<li>1. Настроить репликацию между <strong style="text-align: initial;">Cloud-DB01</strong><span style="text-align: initial;"> (Master) и </span><strong style="text-align: initial;">Cloud-DB02 </strong><span style="text-align: initial;">(Replica);</span></li>
|
|||
|
|
<li>2. Обеспечить отказоустойчивость: в случае сбоя мастера, реплика должна автоматически становиться новым мастером.</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
<li>ii. Создать тестовую базу данных и пользователя:
|
|||
|
|
<ul>
|
|||
|
|
<li>1. Создать базу данных с именем <strong style="text-align: initial;">testdb</strong><span style="text-align: initial;">;</span></li>
|
|||
|
|
<li>2. Создать пользователя <strong style="text-align: initial;">testuser</strong><span style="text-align: initial;"> с паролем </span><strong style="text-align: initial;">testpassword</strong><span style="text-align: initial;">;</span></li>
|
|||
|
|
<li>3. Назначить пользователю <strong style="text-align: initial;">testuser</strong><span style="text-align: initial;"> права на доступ к базе данных </span><strong style="text-align: initial;">testdb</strong><span style="text-align: initial;">.</span></li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<h3 id="yui_3_18_1_1_1750325037307_207">Вариант реализации:</h3>
|
|||
|
|
<h3>Cloud-ADM:</h3>
|
|||
|
|
<ul>
|
|||
|
|
<li>Вся дальнейшая работа реализуется в контексте директории <strong>/home/altlinux/bin/ansible</strong>:</li>
|
|||
|
|
</ul>
|
|||
|
|
<pre class="language-markup"><code>cd /home/altlinux/bin/ansible</code></pre>
|
|||
|
|
<ul>
|
|||
|
|
<li>Создадим файл '<strong>postgresql_deploy_playbook.yml</strong>', в котором последовательно будем описывать всё что касается настройки серверов баз данных <strong>Cloud-DB01</strong> и <strong>Cloud-DB02</strong> в контексте данного задания:</li>
|
|||
|
|
</ul>
|
|||
|
|
<pre class="language-markup"><code>vim postgresql_deploy_playbook.yml</code></pre>
|
|||
|
|
<ul>
|
|||
|
|
<li style="list-style-type: none;">
|
|||
|
|
<ul>
|
|||
|
|
<li>Добавляем следующее содержимое:<br/>
|
|||
|
|
<ul>
|
|||
|
|
<li>см. комментарии в коде;</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<pre class="language-markup"><code>---
|
|||
|
|
- name: Install PostgreSQL
|
|||
|
|
hosts: db
|
|||
|
|
become: true
|
|||
|
|
|
|||
|
|
tasks:
|
|||
|
|
# Установка пакетов для 'PostgreSQL'
|
|||
|
|
- name: Install PostgreSQL
|
|||
|
|
community.general.apt_rpm:
|
|||
|
|
name:
|
|||
|
|
- postgresql16
|
|||
|
|
- postgresql16-server
|
|||
|
|
- postgresql16-contrib
|
|||
|
|
- python3-module-psycopg2
|
|||
|
|
state: present
|
|||
|
|
update_cache: true
|
|||
|
|
|
|||
|
|
# Настройка Cloud-DB01
|
|||
|
|
- hosts: Cloud-DB01
|
|||
|
|
become: true
|
|||
|
|
|
|||
|
|
tasks:
|
|||
|
|
# Проверка инициализации системных баз данных для PostgreSQL
|
|||
|
|
- name: Check if PostgreSQL is instialized
|
|||
|
|
ansible.builtin.stat:
|
|||
|
|
path: "/var/lib/pgsql/data/pg_hba.conf"
|
|||
|
|
register: postgres_data
|
|||
|
|
|
|||
|
|
# Создание системных баз данных для PostgreSQL, если они не были инициализированны
|
|||
|
|
- name: Initialize PostgreSQL
|
|||
|
|
ansible.builtin.command:
|
|||
|
|
cmd: /etc/init.d/postgresql initdb
|
|||
|
|
when:
|
|||
|
|
- not postgres_data.stat.exists
|
|||
|
|
|
|||
|
|
# Запуск и добавление в автозагрузку службы PostgreSQL
|
|||
|
|
- name: Started and enabled PostgreSQL
|
|||
|
|
ansible.builtin.systemd:
|
|||
|
|
name: postgresql
|
|||
|
|
state: started
|
|||
|
|
enabled: true
|
|||
|
|
|
|||
|
|
# Создание необходимой БД
|
|||
|
|
- name: Create database 'testdb'
|
|||
|
|
community.postgresql.postgresql_db:
|
|||
|
|
state: present
|
|||
|
|
name: testdb
|
|||
|
|
become: true
|
|||
|
|
become_user: postgres
|
|||
|
|
|
|||
|
|
# Создание необходимого пользователя
|
|||
|
|
- name: Create database user 'testuser'
|
|||
|
|
community.postgresql.postgresql_user:
|
|||
|
|
state: present
|
|||
|
|
name: testuser
|
|||
|
|
password: testpassword
|
|||
|
|
become: true
|
|||
|
|
become_user: postgres
|
|||
|
|
|
|||
|
|
# Выдача необходимых привилегий для созданного пользователя на созданную БД
|
|||
|
|
- name: Grant database testuser access to testdb
|
|||
|
|
community.postgresql.postgresql_privs:
|
|||
|
|
type: database
|
|||
|
|
database: testdb
|
|||
|
|
roles: testuser
|
|||
|
|
privs: all
|
|||
|
|
grant_option: false
|
|||
|
|
become: true
|
|||
|
|
become_user: postgres
|
|||
|
|
|
|||
|
|
# Копирование конфигурационного файла postgresql.conf из созданного шаблона
|
|||
|
|
- name: Copy file postgresql.conf
|
|||
|
|
ansible.builtin.template:
|
|||
|
|
src: templates/postgresql.conf.j2
|
|||
|
|
dest: /var/lib/pgsql/data/postgresql.conf
|
|||
|
|
notify:
|
|||
|
|
- Restarted PostgreSQL
|
|||
|
|
|
|||
|
|
# Копирование конфигурационного файла pg_hba.conf из созданного шаблона
|
|||
|
|
- name: Copy file pg_hba.conf
|
|||
|
|
ansible.builtin.template:
|
|||
|
|
src: templates/pg_hba.conf.j2
|
|||
|
|
dest: /var/lib/pgsql/data/pg_hba.conf
|
|||
|
|
notify:
|
|||
|
|
- Restarted PostgreSQL
|
|||
|
|
|
|||
|
|
handlers:
|
|||
|
|
- name: Restarted PostgreSQL
|
|||
|
|
ansible.builtin.systemd:
|
|||
|
|
name: postgresql
|
|||
|
|
state: restarted
|
|||
|
|
|
|||
|
|
# Настройка Cloud-DB01
|
|||
|
|
- hosts: Cloud-DB02
|
|||
|
|
become: true
|
|||
|
|
|
|||
|
|
tasks:
|
|||
|
|
# Проверка инициализации системных баз данных для PostgreSQL
|
|||
|
|
- name: Check if PostgreSQL is instialized
|
|||
|
|
ansible.builtin.stat:
|
|||
|
|
path: "/var/lib/pgsql/data/pg_hba.conf"
|
|||
|
|
register: postgres_data
|
|||
|
|
|
|||
|
|
# Выполнение репликации с Cloud-DB01
|
|||
|
|
- name: Replication PostgreSQL
|
|||
|
|
ansible.builtin.command:
|
|||
|
|
cmd: pg_basebackup -h 192.168.10.5 -U postgres -D /var/lib/pgsql/data --wal-method=stream --write-recovery-conf
|
|||
|
|
when:
|
|||
|
|
- not postgres_data.stat.exists
|
|||
|
|
|
|||
|
|
# Выдача прав на директорию /var/lib/pgsql/data/
|
|||
|
|
- name: Chown postgres on /var/lib/pgsql/data/
|
|||
|
|
ansible.builtin.file:
|
|||
|
|
path: /var/lib/pgsql/data/
|
|||
|
|
state: directory
|
|||
|
|
owner: postgres
|
|||
|
|
group: postgres
|
|||
|
|
recurse: true
|
|||
|
|
|
|||
|
|
# Запуск и добавление в автозагрузку службы PostgreSQL
|
|||
|
|
- name: Started and enabled PostgreSQL
|
|||
|
|
ansible.builtin.systemd:
|
|||
|
|
name: postgresql
|
|||
|
|
state: started
|
|||
|
|
enabled: true</code></pre>
|
|||
|
|
<ul>
|
|||
|
|
<li>В директории <strong>templates</strong> создаём файл шаблона "<strong>postgresql.conf.j2</strong>":</li>
|
|||
|
|
</ul>
|
|||
|
|
<pre class="language-markup"><code>vim templates/postgresql.conf.j2</code></pre>
|
|||
|
|
<ul>
|
|||
|
|
<li style="list-style-type: none;">
|
|||
|
|
<ul>
|
|||
|
|
<li>и указываем следующее содержимое:
|
|||
|
|
<ul>
|
|||
|
|
<li>дефолтный конфиг за исключением изменения строки <strong>listen_addresses = '*'</strong></li>
|
|||
|
|
<li>и пары параметров для корретной настройки репликации;</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<pre class="language-markup"><code># -----------------------------
|
|||
|
|
# PostgreSQL configuration file
|
|||
|
|
# -----------------------------
|
|||
|
|
#
|
|||
|
|
# This file consists of lines of the form:
|
|||
|
|
#
|
|||
|
|
# name = value
|
|||
|
|
#
|
|||
|
|
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
|
|||
|
|
# "#" anywhere on a line. The complete list of parameter names and allowed
|
|||
|
|
# values can be found in the PostgreSQL documentation.
|
|||
|
|
#
|
|||
|
|
# The commented-out settings shown in this file represent the default values.
|
|||
|
|
# Re-commenting a setting is NOT sufficient to revert it to the default value;
|
|||
|
|
# you need to reload the server.
|
|||
|
|
#
|
|||
|
|
# This file is read on server startup and when the server receives a SIGHUP
|
|||
|
|
# signal. If you edit the file on a running system, you have to SIGHUP the
|
|||
|
|
# server for the changes to take effect, run "pg_ctl reload", or execute
|
|||
|
|
# "SELECT pg_reload_conf()". Some parameters, which are marked below,
|
|||
|
|
# require a server shutdown and restart to take effect.
|
|||
|
|
#
|
|||
|
|
# Any parameter can also be given as a command-line option to the server, e.g.,
|
|||
|
|
# "postgres -c log_connections=on". Some parameters can be changed at run time
|
|||
|
|
# with the "SET" SQL command.
|
|||
|
|
#
|
|||
|
|
# Memory units: B = bytes Time units: us = microseconds
|
|||
|
|
# kB = kilobytes ms = milliseconds
|
|||
|
|
# MB = megabytes s = seconds
|
|||
|
|
# GB = gigabytes min = minutes
|
|||
|
|
# TB = terabytes h = hours
|
|||
|
|
# d = days
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# FILE LOCATIONS
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# The default values of these variables are driven from the -D command-line
|
|||
|
|
# option or PGDATA environment variable, represented here as ConfigDir.
|
|||
|
|
|
|||
|
|
#data_directory = 'ConfigDir' # use data in another directory
|
|||
|
|
# (change requires restart)
|
|||
|
|
#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
|
|||
|
|
# (change requires restart)
|
|||
|
|
#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
# If external_pid_file is not explicitly set, no extra PID file is written.
|
|||
|
|
#external_pid_file = '' # write an extra PID file
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# CONNECTIONS AND AUTHENTICATION
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Connection Settings -
|
|||
|
|
|
|||
|
|
listen_addresses = '*' # what IP address(es) to listen on;
|
|||
|
|
# comma-separated list of addresses;
|
|||
|
|
# defaults to 'localhost'; use '*' for all
|
|||
|
|
# (change requires restart)
|
|||
|
|
#port = 5432 # (change requires restart)
|
|||
|
|
max_connections = 100 # (change requires restart)
|
|||
|
|
#reserved_connections = 0 # (change requires restart)
|
|||
|
|
#superuser_reserved_connections = 3 # (change requires restart)
|
|||
|
|
#unix_socket_directories = '/tmp' # comma-separated list of directories
|
|||
|
|
# (change requires restart)
|
|||
|
|
#unix_socket_group = '' # (change requires restart)
|
|||
|
|
#unix_socket_permissions = 0777 # begin with 0 to use octal notation
|
|||
|
|
# (change requires restart)
|
|||
|
|
#bonjour = off # advertise server via Bonjour
|
|||
|
|
# (change requires restart)
|
|||
|
|
#bonjour_name = '' # defaults to the computer name
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
# - TCP settings -
|
|||
|
|
# see "man tcp" for details
|
|||
|
|
|
|||
|
|
#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
|
|||
|
|
# 0 selects the system default
|
|||
|
|
#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
|
|||
|
|
# 0 selects the system default
|
|||
|
|
#tcp_keepalives_count = 0 # TCP_KEEPCNT;
|
|||
|
|
# 0 selects the system default
|
|||
|
|
#tcp_user_timeout = 0 # TCP_USER_TIMEOUT, in milliseconds;
|
|||
|
|
# 0 selects the system default
|
|||
|
|
|
|||
|
|
#client_connection_check_interval = 0 # time between checks for client
|
|||
|
|
# disconnection while running queries;
|
|||
|
|
# 0 for never
|
|||
|
|
|
|||
|
|
# - Authentication -
|
|||
|
|
|
|||
|
|
#authentication_timeout = 1min # 1s-600s
|
|||
|
|
#password_encryption = scram-sha-256 # scram-sha-256 or md5
|
|||
|
|
#scram_iterations = 4096
|
|||
|
|
#db_user_namespace = off
|
|||
|
|
|
|||
|
|
# GSSAPI using Kerberos
|
|||
|
|
#krb_server_keyfile = 'FILE:${sysconfdir}/krb5.keytab'
|
|||
|
|
#krb_caseins_users = off
|
|||
|
|
#gss_accept_delegation = off
|
|||
|
|
|
|||
|
|
# - SSL -
|
|||
|
|
|
|||
|
|
#ssl = off
|
|||
|
|
#ssl_ca_file = ''
|
|||
|
|
#ssl_cert_file = 'server.crt'
|
|||
|
|
#ssl_crl_file = ''
|
|||
|
|
#ssl_crl_dir = ''
|
|||
|
|
#ssl_key_file = 'server.key'
|
|||
|
|
#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
|
|||
|
|
#ssl_prefer_server_ciphers = on
|
|||
|
|
#ssl_ecdh_curve = 'prime256v1'
|
|||
|
|
#ssl_min_protocol_version = 'TLSv1.2'
|
|||
|
|
#ssl_max_protocol_version = ''
|
|||
|
|
#ssl_dh_params_file = ''
|
|||
|
|
#ssl_passphrase_command = ''
|
|||
|
|
#ssl_passphrase_command_supports_reload = off
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# RESOURCE USAGE (except WAL)
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Memory -
|
|||
|
|
|
|||
|
|
shared_buffers = 128MB # min 128kB
|
|||
|
|
# (change requires restart)
|
|||
|
|
#huge_pages = try # on, off, or try
|
|||
|
|
# (change requires restart)
|
|||
|
|
#huge_page_size = 0 # zero for system default
|
|||
|
|
# (change requires restart)
|
|||
|
|
#temp_buffers = 8MB # min 800kB
|
|||
|
|
#max_prepared_transactions = 0 # zero disables the feature
|
|||
|
|
# (change requires restart)
|
|||
|
|
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
|
|||
|
|
# you actively intend to use prepared transactions.
|
|||
|
|
#work_mem = 4MB # min 64kB
|
|||
|
|
#hash_mem_multiplier = 2.0 # 1-1000.0 multiplier on hash table work_mem
|
|||
|
|
#maintenance_work_mem = 64MB # min 1MB
|
|||
|
|
#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
|
|||
|
|
#logical_decoding_work_mem = 64MB # min 64kB
|
|||
|
|
#max_stack_depth = 2MB # min 100kB
|
|||
|
|
#shared_memory_type = mmap # the default is the first option
|
|||
|
|
# supported by the operating system:
|
|||
|
|
# mmap
|
|||
|
|
# sysv
|
|||
|
|
# windows
|
|||
|
|
# (change requires restart)
|
|||
|
|
dynamic_shared_memory_type = posix # the default is usually the first option
|
|||
|
|
# supported by the operating system:
|
|||
|
|
# posix
|
|||
|
|
# sysv
|
|||
|
|
# windows
|
|||
|
|
# mmap
|
|||
|
|
# (change requires restart)
|
|||
|
|
#min_dynamic_shared_memory = 0MB # (change requires restart)
|
|||
|
|
#vacuum_buffer_usage_limit = 256kB # size of vacuum and analyze buffer access strategy ring;
|
|||
|
|
# 0 to disable vacuum buffer access strategy;
|
|||
|
|
# range 128kB to 16GB
|
|||
|
|
|
|||
|
|
# - Disk -
|
|||
|
|
|
|||
|
|
#temp_file_limit = -1 # limits per-process temp file space
|
|||
|
|
# in kilobytes, or -1 for no limit
|
|||
|
|
|
|||
|
|
# - Kernel Resources -
|
|||
|
|
|
|||
|
|
#max_files_per_process = 1000 # min 64
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
# - Cost-Based Vacuum Delay -
|
|||
|
|
|
|||
|
|
#vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables)
|
|||
|
|
#vacuum_cost_page_hit = 1 # 0-10000 credits
|
|||
|
|
#vacuum_cost_page_miss = 2 # 0-10000 credits
|
|||
|
|
#vacuum_cost_page_dirty = 20 # 0-10000 credits
|
|||
|
|
#vacuum_cost_limit = 200 # 1-10000 credits
|
|||
|
|
|
|||
|
|
# - Background Writer -
|
|||
|
|
|
|||
|
|
#bgwriter_delay = 200ms # 10-10000ms between rounds
|
|||
|
|
#bgwriter_lru_maxpages = 100 # max buffers written/round, 0 disables
|
|||
|
|
#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round
|
|||
|
|
#bgwriter_flush_after = 512kB # measured in pages, 0 disables
|
|||
|
|
|
|||
|
|
# - Asynchronous Behavior -
|
|||
|
|
|
|||
|
|
#backend_flush_after = 0 # measured in pages, 0 disables
|
|||
|
|
#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
|
|||
|
|
#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
|
|||
|
|
#max_worker_processes = 8 # (change requires restart)
|
|||
|
|
#max_parallel_workers_per_gather = 2 # limited by max_parallel_workers
|
|||
|
|
#max_parallel_maintenance_workers = 2 # limited by max_parallel_workers
|
|||
|
|
#max_parallel_workers = 8 # number of max_worker_processes that
|
|||
|
|
# can be used in parallel operations
|
|||
|
|
#parallel_leader_participation = on
|
|||
|
|
#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# WRITE-AHEAD LOG
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Settings -
|
|||
|
|
|
|||
|
|
wal_level = replica # minimal, replica, or logical
|
|||
|
|
# (change requires restart)
|
|||
|
|
#fsync = on # flush data to disk for crash safety
|
|||
|
|
# (turning this off can cause
|
|||
|
|
# unrecoverable data corruption)
|
|||
|
|
#synchronous_commit = on # synchronization level;
|
|||
|
|
# off, local, remote_write, remote_apply, or on
|
|||
|
|
#wal_sync_method = fsync # the default is the first option
|
|||
|
|
# supported by the operating system:
|
|||
|
|
# open_datasync
|
|||
|
|
# fdatasync (default on Linux and FreeBSD)
|
|||
|
|
# fsync
|
|||
|
|
# fsync_writethrough
|
|||
|
|
# open_sync
|
|||
|
|
#full_page_writes = on # recover from partial page writes
|
|||
|
|
#wal_log_hints = off # also do full page writes of non-critical updates
|
|||
|
|
# (change requires restart)
|
|||
|
|
#wal_compression = off # enables compression of full-page writes;
|
|||
|
|
# off, pglz, lz4, zstd, or on
|
|||
|
|
#wal_init_zero = on # zero-fill new WAL files
|
|||
|
|
#wal_recycle = on # recycle WAL files
|
|||
|
|
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
|
|||
|
|
# (change requires restart)
|
|||
|
|
#wal_writer_delay = 200ms # 1-10000 milliseconds
|
|||
|
|
#wal_writer_flush_after = 1MB # measured in pages, 0 disables
|
|||
|
|
#wal_skip_threshold = 2MB
|
|||
|
|
|
|||
|
|
#commit_delay = 0 # range 0-100000, in microseconds
|
|||
|
|
#commit_siblings = 5 # range 1-1000
|
|||
|
|
|
|||
|
|
# - Checkpoints -
|
|||
|
|
|
|||
|
|
#checkpoint_timeout = 5min # range 30s-1d
|
|||
|
|
#checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0
|
|||
|
|
#checkpoint_flush_after = 256kB # measured in pages, 0 disables
|
|||
|
|
#checkpoint_warning = 30s # 0 disables
|
|||
|
|
max_wal_size = 1GB
|
|||
|
|
min_wal_size = 80MB
|
|||
|
|
|
|||
|
|
# - Prefetching during recovery -
|
|||
|
|
|
|||
|
|
#recovery_prefetch = try # prefetch pages referenced in the WAL?
|
|||
|
|
#wal_decode_buffer_size = 512kB # lookahead window used for prefetching
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
# - Archiving -
|
|||
|
|
|
|||
|
|
#archive_mode = off # enables archiving; off, on, or always
|
|||
|
|
# (change requires restart)
|
|||
|
|
#archive_library = '' # library to use to archive a WAL file
|
|||
|
|
# (empty string indicates archive_command should
|
|||
|
|
# be used)
|
|||
|
|
#archive_command = '' # command to use to archive a WAL file
|
|||
|
|
# placeholders: %p = path of file to archive
|
|||
|
|
# %f = file name only
|
|||
|
|
# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
|
|||
|
|
#archive_timeout = 0 # force a WAL file switch after this
|
|||
|
|
# number of seconds; 0 disables
|
|||
|
|
|
|||
|
|
# - Archive Recovery -
|
|||
|
|
|
|||
|
|
# These are only used in recovery mode.
|
|||
|
|
|
|||
|
|
#restore_command = '' # command to use to restore an archived WAL file
|
|||
|
|
# placeholders: %p = path of file to restore
|
|||
|
|
# %f = file name only
|
|||
|
|
# e.g. 'cp /mnt/server/archivedir/%f %p'
|
|||
|
|
#archive_cleanup_command = '' # command to execute at every restartpoint
|
|||
|
|
#recovery_end_command = '' # command to execute at completion of recovery
|
|||
|
|
|
|||
|
|
# - Recovery Target -
|
|||
|
|
|
|||
|
|
# Set these only when performing a targeted recovery.
|
|||
|
|
|
|||
|
|
#recovery_target = '' # 'immediate' to end recovery as soon as a
|
|||
|
|
# consistent state is reached
|
|||
|
|
# (change requires restart)
|
|||
|
|
#recovery_target_name = '' # the named restore point to which recovery will proceed
|
|||
|
|
# (change requires restart)
|
|||
|
|
#recovery_target_time = '' # the time stamp up to which recovery will proceed
|
|||
|
|
# (change requires restart)
|
|||
|
|
#recovery_target_xid = '' # the transaction ID up to which recovery will proceed
|
|||
|
|
# (change requires restart)
|
|||
|
|
#recovery_target_lsn = '' # the WAL LSN up to which recovery will proceed
|
|||
|
|
# (change requires restart)
|
|||
|
|
#recovery_target_inclusive = on # Specifies whether to stop:
|
|||
|
|
# just after the specified recovery target (on)
|
|||
|
|
# just before the recovery target (off)
|
|||
|
|
# (change requires restart)
|
|||
|
|
#recovery_target_timeline = 'latest' # 'current', 'latest', or timeline ID
|
|||
|
|
# (change requires restart)
|
|||
|
|
#recovery_target_action = 'pause' # 'pause', 'promote', 'shutdown'
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# REPLICATION
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Sending Servers -
|
|||
|
|
|
|||
|
|
# Set these on the primary and on any standby that will send replication data.
|
|||
|
|
|
|||
|
|
max_wal_senders = 10 # max number of walsender processes
|
|||
|
|
# (change requires restart)
|
|||
|
|
max_replication_slots = 10 # max number of replication slots
|
|||
|
|
# (change requires restart)
|
|||
|
|
#wal_keep_size = 0 # in megabytes; 0 disables
|
|||
|
|
#max_slot_wal_keep_size = -1 # in megabytes; -1 disables
|
|||
|
|
#wal_sender_timeout = 60s # in milliseconds; 0 disables
|
|||
|
|
#track_commit_timestamp = off # collect timestamp of transaction commit
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
# - Primary Server -
|
|||
|
|
|
|||
|
|
# These settings are ignored on a standby server.
|
|||
|
|
|
|||
|
|
#synchronous_standby_names = '' # standby servers that provide sync rep
|
|||
|
|
# method to choose sync standbys, number of sync standbys,
|
|||
|
|
# and comma-separated list of application_name
|
|||
|
|
# from standby(s); '*' = all
|
|||
|
|
|
|||
|
|
# - Standby Servers -
|
|||
|
|
|
|||
|
|
# These settings are ignored on a primary server.
|
|||
|
|
|
|||
|
|
#primary_conninfo = '' # connection string to sending server
|
|||
|
|
#primary_slot_name = '' # replication slot on sending server
|
|||
|
|
hot_standby = on # "off" disallows queries during recovery
|
|||
|
|
# (change requires restart)
|
|||
|
|
#max_standby_archive_delay = 30s # max delay before canceling queries
|
|||
|
|
# when reading WAL from archive;
|
|||
|
|
# -1 allows indefinite delay
|
|||
|
|
#max_standby_streaming_delay = 30s # max delay before canceling queries
|
|||
|
|
# when reading streaming WAL;
|
|||
|
|
# -1 allows indefinite delay
|
|||
|
|
#wal_receiver_create_temp_slot = off # create temp slot if primary_slot_name
|
|||
|
|
# is not set
|
|||
|
|
#wal_receiver_status_interval = 10s # send replies at least this often
|
|||
|
|
# 0 disables
|
|||
|
|
hot_standby_feedback = on # send info from standby to prevent
|
|||
|
|
# query conflicts
|
|||
|
|
#wal_receiver_timeout = 60s # time that receiver waits for
|
|||
|
|
# communication from primary
|
|||
|
|
# in milliseconds; 0 disables
|
|||
|
|
#wal_retrieve_retry_interval = 5s # time to wait before retrying to
|
|||
|
|
# retrieve WAL after a failed attempt
|
|||
|
|
#recovery_min_apply_delay = 0 # minimum delay for applying changes during recovery
|
|||
|
|
|
|||
|
|
# - Subscribers -
|
|||
|
|
|
|||
|
|
# These settings are ignored on a publisher.
|
|||
|
|
|
|||
|
|
#max_logical_replication_workers = 4 # taken from max_worker_processes
|
|||
|
|
# (change requires restart)
|
|||
|
|
#max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers
|
|||
|
|
#max_parallel_apply_workers_per_subscription = 2 # taken from max_logical_replication_workers
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# QUERY TUNING
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Planner Method Configuration -
|
|||
|
|
|
|||
|
|
#enable_async_append = on
|
|||
|
|
#enable_bitmapscan = on
|
|||
|
|
#enable_gathermerge = on
|
|||
|
|
#enable_hashagg = on
|
|||
|
|
#enable_hashjoin = on
|
|||
|
|
#enable_incremental_sort = on
|
|||
|
|
#enable_indexscan = on
|
|||
|
|
#enable_indexonlyscan = on
|
|||
|
|
#enable_material = on
|
|||
|
|
#enable_memoize = on
|
|||
|
|
#enable_mergejoin = on
|
|||
|
|
#enable_nestloop = on
|
|||
|
|
#enable_parallel_append = on
|
|||
|
|
#enable_parallel_hash = on
|
|||
|
|
#enable_partition_pruning = on
|
|||
|
|
#enable_partitionwise_join = off
|
|||
|
|
#enable_partitionwise_aggregate = off
|
|||
|
|
#enable_presorted_aggregate = on
|
|||
|
|
#enable_seqscan = on
|
|||
|
|
#enable_sort = on
|
|||
|
|
#enable_tidscan = on
|
|||
|
|
|
|||
|
|
# - Planner Cost Constants -
|
|||
|
|
|
|||
|
|
#seq_page_cost = 1.0 # measured on an arbitrary scale
|
|||
|
|
#random_page_cost = 4.0 # same scale as above
|
|||
|
|
#cpu_tuple_cost = 0.01 # same scale as above
|
|||
|
|
#cpu_index_tuple_cost = 0.005 # same scale as above
|
|||
|
|
#cpu_operator_cost = 0.0025 # same scale as above
|
|||
|
|
#parallel_setup_cost = 1000.0 # same scale as above
|
|||
|
|
#parallel_tuple_cost = 0.1 # same scale as above
|
|||
|
|
#min_parallel_table_scan_size = 8MB
|
|||
|
|
#min_parallel_index_scan_size = 512kB
|
|||
|
|
#effective_cache_size = 4GB
|
|||
|
|
|
|||
|
|
#jit_above_cost = 100000 # perform JIT compilation if available
|
|||
|
|
# and query more expensive than this;
|
|||
|
|
# -1 disables
|
|||
|
|
#jit_inline_above_cost = 500000 # inline small functions if query is
|
|||
|
|
# more expensive than this; -1 disables
|
|||
|
|
#jit_optimize_above_cost = 500000 # use expensive JIT optimizations if
|
|||
|
|
# query is more expensive than this;
|
|||
|
|
# -1 disables
|
|||
|
|
|
|||
|
|
# - Genetic Query Optimizer -
|
|||
|
|
|
|||
|
|
#geqo = on
|
|||
|
|
#geqo_threshold = 12
|
|||
|
|
#geqo_effort = 5 # range 1-10
|
|||
|
|
#geqo_pool_size = 0 # selects default based on effort
|
|||
|
|
#geqo_generations = 0 # selects default based on effort
|
|||
|
|
#geqo_selection_bias = 2.0 # range 1.5-2.0
|
|||
|
|
#geqo_seed = 0.0 # range 0.0-1.0
|
|||
|
|
|
|||
|
|
# - Other Planner Options -
|
|||
|
|
|
|||
|
|
#default_statistics_target = 100 # range 1-10000
|
|||
|
|
#constraint_exclusion = partition # on, off, or partition
|
|||
|
|
#cursor_tuple_fraction = 0.1 # range 0.0-1.0
|
|||
|
|
#from_collapse_limit = 8
|
|||
|
|
#jit = on # allow JIT compilation
|
|||
|
|
#join_collapse_limit = 8 # 1 disables collapsing of explicit
|
|||
|
|
# JOIN clauses
|
|||
|
|
#plan_cache_mode = auto # auto, force_generic_plan or
|
|||
|
|
# force_custom_plan
|
|||
|
|
#recursive_worktable_factor = 10.0 # range 0.001-1000000
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# REPORTING AND LOGGING
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Where to Log -
|
|||
|
|
|
|||
|
|
log_destination = 'stderr' # Valid values are combinations of
|
|||
|
|
# stderr, csvlog, jsonlog, syslog, and
|
|||
|
|
# eventlog, depending on platform.
|
|||
|
|
# csvlog and jsonlog require
|
|||
|
|
# logging_collector to be on.
|
|||
|
|
|
|||
|
|
# This is used when logging to stderr:
|
|||
|
|
logging_collector = on # Enable capturing of stderr, jsonlog,
|
|||
|
|
# and csvlog into log files. Required
|
|||
|
|
# to be on for csvlogs and jsonlogs.
|
|||
|
|
# (change requires restart)
|
|||
|
|
|
|||
|
|
# These are only used if logging_collector is on:
|
|||
|
|
log_directory = 'log' # directory where log files are written,
|
|||
|
|
# can be absolute or relative to PGDATA
|
|||
|
|
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
|
|||
|
|
# can include strftime() escapes
|
|||
|
|
log_file_mode = 0600 # creation mode for log files,
|
|||
|
|
# begin with 0 to use octal notation
|
|||
|
|
#log_rotation_age = 1d # Automatic rotation of logfiles will
|
|||
|
|
# happen after that time. 0 disables.
|
|||
|
|
log_rotation_size = 10MB # Automatic rotation of logfiles will
|
|||
|
|
# happen after that much log output.
|
|||
|
|
# 0 disables.
|
|||
|
|
#log_truncate_on_rotation = off # If on, an existing log file with the
|
|||
|
|
# same name as the new log file will be
|
|||
|
|
# truncated rather than appended to.
|
|||
|
|
# But such truncation only occurs on
|
|||
|
|
# time-driven rotation, not on restarts
|
|||
|
|
# or size-driven rotation. Default is
|
|||
|
|
# off, meaning append to existing files
|
|||
|
|
# in all cases.
|
|||
|
|
|
|||
|
|
# These are relevant when logging to syslog:
|
|||
|
|
#syslog_facility = 'LOCAL0'
|
|||
|
|
#syslog_ident = 'postgres'
|
|||
|
|
#syslog_sequence_numbers = on
|
|||
|
|
#syslog_split_messages = on
|
|||
|
|
|
|||
|
|
# This is only relevant when logging to eventlog (Windows):
|
|||
|
|
# (change requires restart)
|
|||
|
|
#event_source = 'PostgreSQL'
|
|||
|
|
|
|||
|
|
# - When to Log -
|
|||
|
|
|
|||
|
|
log_min_messages = warning # values in order of decreasing detail:
|
|||
|
|
# debug5
|
|||
|
|
# debug4
|
|||
|
|
# debug3
|
|||
|
|
# debug2
|
|||
|
|
# debug1
|
|||
|
|
# info
|
|||
|
|
# notice
|
|||
|
|
# warning
|
|||
|
|
# error
|
|||
|
|
# log
|
|||
|
|
# fatal
|
|||
|
|
# panic
|
|||
|
|
|
|||
|
|
#log_min_error_statement = error # values in order of decreasing detail:
|
|||
|
|
# debug5
|
|||
|
|
# debug4
|
|||
|
|
# debug3
|
|||
|
|
# debug2
|
|||
|
|
# debug1
|
|||
|
|
# info
|
|||
|
|
# notice
|
|||
|
|
# warning
|
|||
|
|
# error
|
|||
|
|
# log
|
|||
|
|
# fatal
|
|||
|
|
# panic (effectively off)
|
|||
|
|
|
|||
|
|
#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
|
|||
|
|
# and their durations, > 0 logs only
|
|||
|
|
# statements running at least this number
|
|||
|
|
# of milliseconds
|
|||
|
|
|
|||
|
|
#log_min_duration_sample = -1 # -1 is disabled, 0 logs a sample of statements
|
|||
|
|
# and their durations, > 0 logs only a sample of
|
|||
|
|
# statements running at least this number
|
|||
|
|
# of milliseconds;
|
|||
|
|
# sample fraction is determined by log_statement_sample_rate
|
|||
|
|
|
|||
|
|
#log_statement_sample_rate = 1.0 # fraction of logged statements exceeding
|
|||
|
|
# log_min_duration_sample to be logged;
|
|||
|
|
# 1.0 logs all such statements, 0.0 never logs
|
|||
|
|
|
|||
|
|
|
|||
|
|
#log_transaction_sample_rate = 0.0 # fraction of transactions whose statements
|
|||
|
|
# are logged regardless of their duration; 1.0 logs all
|
|||
|
|
# statements from all transactions, 0.0 never logs
|
|||
|
|
|
|||
|
|
#log_startup_progress_interval = 10s # Time between progress updates for
|
|||
|
|
# long-running startup operations.
|
|||
|
|
# 0 disables the feature, > 0 indicates
|
|||
|
|
# the interval in milliseconds.
|
|||
|
|
|
|||
|
|
# - What to Log -
|
|||
|
|
|
|||
|
|
#debug_print_parse = off
|
|||
|
|
#debug_print_rewritten = off
|
|||
|
|
#debug_print_plan = off
|
|||
|
|
#debug_pretty_print = on
|
|||
|
|
#log_autovacuum_min_duration = 10min # log autovacuum activity;
|
|||
|
|
# -1 disables, 0 logs all actions and
|
|||
|
|
# their durations, > 0 logs only
|
|||
|
|
# actions running at least this number
|
|||
|
|
# of milliseconds.
|
|||
|
|
log_checkpoints = off
|
|||
|
|
log_connections = off
|
|||
|
|
log_disconnections = off
|
|||
|
|
#log_duration = off
|
|||
|
|
#log_error_verbosity = default # terse, default, or verbose messages
|
|||
|
|
#log_hostname = off
|
|||
|
|
#log_line_prefix = '%m [%p] ' # special values:
|
|||
|
|
# %a = application name
|
|||
|
|
# %u = user name
|
|||
|
|
# %d = database name
|
|||
|
|
# %r = remote host and port
|
|||
|
|
# %h = remote host
|
|||
|
|
# %b = backend type
|
|||
|
|
# %p = process ID
|
|||
|
|
# %P = process ID of parallel group leader
|
|||
|
|
# %t = timestamp without milliseconds
|
|||
|
|
# %m = timestamp with milliseconds
|
|||
|
|
# %n = timestamp with milliseconds (as a Unix epoch)
|
|||
|
|
# %Q = query ID (0 if none or not computed)
|
|||
|
|
# %i = command tag
|
|||
|
|
# %e = SQL state
|
|||
|
|
# %c = session ID
|
|||
|
|
# %l = session line number
|
|||
|
|
# %s = session start timestamp
|
|||
|
|
# %v = virtual transaction ID
|
|||
|
|
# %x = transaction ID (0 if none)
|
|||
|
|
# %q = stop here in non-session
|
|||
|
|
# processes
|
|||
|
|
# %% = '%'
|
|||
|
|
# e.g. '<%u%%%d> '
|
|||
|
|
#log_lock_waits = off # log lock waits >= deadlock_timeout
|
|||
|
|
#log_recovery_conflict_waits = off # log standby recovery conflict waits
|
|||
|
|
# >= deadlock_timeout
|
|||
|
|
#log_parameter_max_length = -1 # when logging statements, limit logged
|
|||
|
|
# bind-parameter values to N bytes;
|
|||
|
|
# -1 means print in full, 0 disables
|
|||
|
|
#log_parameter_max_length_on_error = 0 # when logging an error, limit logged
|
|||
|
|
# bind-parameter values to N bytes;
|
|||
|
|
# -1 means print in full, 0 disables
|
|||
|
|
#log_statement = 'none' # none, ddl, mod, all
|
|||
|
|
#log_replication_commands = off
|
|||
|
|
#log_temp_files = -1 # log temporary files equal or larger
|
|||
|
|
# than the specified size in kilobytes;
|
|||
|
|
# -1 disables, 0 logs all temp files
|
|||
|
|
log_timezone = UTC
|
|||
|
|
|
|||
|
|
# - Process Title -
|
|||
|
|
|
|||
|
|
#cluster_name = '' # added to process titles if nonempty
|
|||
|
|
# (change requires restart)
|
|||
|
|
#update_process_title = on
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# STATISTICS
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Cumulative Query and Index Statistics -
|
|||
|
|
|
|||
|
|
#track_activities = on
|
|||
|
|
#track_activity_query_size = 1024 # (change requires restart)
|
|||
|
|
#track_counts = on
|
|||
|
|
#track_io_timing = off
|
|||
|
|
#track_wal_io_timing = off
|
|||
|
|
#track_functions = none # none, pl, all
|
|||
|
|
#stats_fetch_consistency = cache # cache, none, snapshot
|
|||
|
|
|
|||
|
|
|
|||
|
|
# - Monitoring -
|
|||
|
|
|
|||
|
|
#compute_query_id = auto
|
|||
|
|
#log_statement_stats = off
|
|||
|
|
#log_parser_stats = off
|
|||
|
|
#log_planner_stats = off
|
|||
|
|
#log_executor_stats = off
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# AUTOVACUUM
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
#autovacuum = on # Enable autovacuum subprocess? 'on'
|
|||
|
|
# requires track_counts to also be on.
|
|||
|
|
#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
|
|||
|
|
# (change requires restart)
|
|||
|
|
#autovacuum_naptime = 1min # time between autovacuum runs
|
|||
|
|
#autovacuum_vacuum_threshold = 50 # min number of row updates before
|
|||
|
|
# vacuum
|
|||
|
|
#autovacuum_vacuum_insert_threshold = 1000 # min number of row inserts
|
|||
|
|
# before vacuum; -1 disables insert
|
|||
|
|
# vacuums
|
|||
|
|
#autovacuum_analyze_threshold = 50 # min number of row updates before
|
|||
|
|
# analyze
|
|||
|
|
#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
|
|||
|
|
#autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of inserts over table
|
|||
|
|
# size before insert vacuum
|
|||
|
|
#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
|
|||
|
|
#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
|
|||
|
|
# (change requires restart)
|
|||
|
|
#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
|
|||
|
|
# before forced vacuum
|
|||
|
|
# (change requires restart)
|
|||
|
|
#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
|
|||
|
|
# autovacuum, in milliseconds;
|
|||
|
|
# -1 means use vacuum_cost_delay
|
|||
|
|
#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
|
|||
|
|
# autovacuum, -1 means use
|
|||
|
|
# vacuum_cost_limit
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# CLIENT CONNECTION DEFAULTS
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Statement Behavior -
|
|||
|
|
|
|||
|
|
#client_min_messages = notice # values in order of decreasing detail:
|
|||
|
|
# debug5
|
|||
|
|
# debug4
|
|||
|
|
# debug3
|
|||
|
|
# debug2
|
|||
|
|
# debug1
|
|||
|
|
# log
|
|||
|
|
# notice
|
|||
|
|
# warning
|
|||
|
|
# error
|
|||
|
|
#search_path = '"$user", public' # schema names
|
|||
|
|
#row_security = on
|
|||
|
|
#default_table_access_method = 'heap'
|
|||
|
|
#default_tablespace = '' # a tablespace name, '' uses the default
|
|||
|
|
#default_toast_compression = 'pglz' # 'pglz' or 'lz4'
|
|||
|
|
#temp_tablespaces = '' # a list of tablespace names, '' uses
|
|||
|
|
# only default tablespace
|
|||
|
|
#check_function_bodies = on
|
|||
|
|
#default_transaction_isolation = 'read committed'
|
|||
|
|
#default_transaction_read_only = off
|
|||
|
|
#default_transaction_deferrable = off
|
|||
|
|
#session_replication_role = 'origin'
|
|||
|
|
#statement_timeout = 0 # in milliseconds, 0 is disabled
|
|||
|
|
#lock_timeout = 0 # in milliseconds, 0 is disabled
|
|||
|
|
#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
|
|||
|
|
#idle_session_timeout = 0 # in milliseconds, 0 is disabled
|
|||
|
|
#vacuum_freeze_table_age = 150000000
|
|||
|
|
#vacuum_freeze_min_age = 50000000
|
|||
|
|
#vacuum_failsafe_age = 1600000000
|
|||
|
|
#vacuum_multixact_freeze_table_age = 150000000
|
|||
|
|
#vacuum_multixact_freeze_min_age = 5000000
|
|||
|
|
#vacuum_multixact_failsafe_age = 1600000000
|
|||
|
|
#bytea_output = 'hex' # hex, escape
|
|||
|
|
#xmlbinary = 'base64'
|
|||
|
|
#xmloption = 'content'
|
|||
|
|
#gin_pending_list_limit = 4MB
|
|||
|
|
#createrole_self_grant = '' # set and/or inherit
|
|||
|
|
|
|||
|
|
# - Locale and Formatting -
|
|||
|
|
|
|||
|
|
datestyle = 'iso, mdy'
|
|||
|
|
#intervalstyle = 'postgres'
|
|||
|
|
timezone = UTC
|
|||
|
|
#timezone_abbreviations = 'Default' # Select the set of available time zone
|
|||
|
|
# abbreviations. Currently, there are
|
|||
|
|
# Default
|
|||
|
|
# Australia (historical usage)
|
|||
|
|
# India
|
|||
|
|
# You can create your own file in
|
|||
|
|
# share/timezonesets/.
|
|||
|
|
#extra_float_digits = 1 # min -15, max 3; any value >0 actually
|
|||
|
|
# selects precise output mode
|
|||
|
|
#client_encoding = sql_ascii # actually, defaults to database
|
|||
|
|
# encoding
|
|||
|
|
|
|||
|
|
# These settings are initialized by initdb, but they can be changed.
|
|||
|
|
lc_messages = 'en_US.UTF-8' # locale for system error message
|
|||
|
|
# strings
|
|||
|
|
lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
|
|||
|
|
lc_numeric = 'en_US.UTF-8' # locale for number formatting
|
|||
|
|
lc_time = 'en_US.UTF-8' # locale for time formatting
|
|||
|
|
|
|||
|
|
#icu_validation_level = warning # report ICU locale validation
|
|||
|
|
# errors at the given level
|
|||
|
|
|
|||
|
|
# default configuration for text search
|
|||
|
|
default_text_search_config = 'pg_catalog.english'
|
|||
|
|
|
|||
|
|
# - Shared Library Preloading -
|
|||
|
|
|
|||
|
|
#local_preload_libraries = ''
|
|||
|
|
#session_preload_libraries = ''
|
|||
|
|
#shared_preload_libraries = '' # (change requires restart)
|
|||
|
|
#jit_provider = 'llvmjit' # JIT library to use
|
|||
|
|
|
|||
|
|
# - Other Defaults -
|
|||
|
|
|
|||
|
|
#dynamic_library_path = '$libdir'
|
|||
|
|
#gin_fuzzy_search_limit = 0
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# LOCK MANAGEMENT
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
#deadlock_timeout = 1s
|
|||
|
|
#max_locks_per_transaction = 64 # min 10
|
|||
|
|
# (change requires restart)
|
|||
|
|
#max_pred_locks_per_transaction = 64 # min 10
|
|||
|
|
# (change requires restart)
|
|||
|
|
#max_pred_locks_per_relation = -2 # negative values mean
|
|||
|
|
# (max_pred_locks_per_transaction
|
|||
|
|
# / -max_pred_locks_per_relation) - 1
|
|||
|
|
#max_pred_locks_per_page = 2 # min 0
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# VERSION AND PLATFORM COMPATIBILITY
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# - Previous PostgreSQL Versions -
|
|||
|
|
|
|||
|
|
#array_nulls = on
|
|||
|
|
#backslash_quote = safe_encoding # on, off, or safe_encoding
|
|||
|
|
#escape_string_warning = on
|
|||
|
|
#lo_compat_privileges = off
|
|||
|
|
#quote_all_identifiers = off
|
|||
|
|
#standard_conforming_strings = on
|
|||
|
|
#synchronize_seqscans = on
|
|||
|
|
|
|||
|
|
# - Other Platforms and Clients -
|
|||
|
|
|
|||
|
|
#transform_null_equals = off
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# ERROR HANDLING
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
#exit_on_error = off # terminate session on any error?
|
|||
|
|
#restart_after_crash = on # reinitialize after backend crash?
|
|||
|
|
#data_sync_retry = off # retry or panic on failure to fsync
|
|||
|
|
# data?
|
|||
|
|
# (change requires restart)
|
|||
|
|
#recovery_init_sync_method = fsync # fsync, syncfs (Linux 5.8+)
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# CONFIG FILE INCLUDES
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# These options allow settings to be loaded from files other than the
|
|||
|
|
# default postgresql.conf. Note that these are directives, not variable
|
|||
|
|
# assignments, so they can usefully be given more than once.
|
|||
|
|
|
|||
|
|
#include_dir = '...' # include files ending in '.conf' from
|
|||
|
|
# a directory, e.g., 'conf.d'
|
|||
|
|
#include_if_exists = '...' # include file only if it exists
|
|||
|
|
#include = '...' # include file
|
|||
|
|
|
|||
|
|
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
# CUSTOMIZED OPTIONS
|
|||
|
|
#------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
# Add settings for extensions here</code></pre>
|
|||
|
|
<ul>
|
|||
|
|
<li>В директории <strong>templates</strong> создаём файл шаблона "<strong>pg_hba.conf.j2</strong>":</li>
|
|||
|
|
</ul>
|
|||
|
|
<pre class="language-markup"><code>vim templates/pg_hba.conf.j2</code></pre>
|
|||
|
|
<ul>
|
|||
|
|
<li style="list-style-type: none;">
|
|||
|
|
<ul>
|
|||
|
|
<li>и указываем следующее содержимое:</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<pre class="language-markup"><code># PostgreSQL Client Authentication Configuration File
|
|||
|
|
# ===================================================
|
|||
|
|
#
|
|||
|
|
# Refer to the "Client Authentication" section in the PostgreSQL
|
|||
|
|
# documentation for a complete description of this file. A short
|
|||
|
|
# synopsis follows.
|
|||
|
|
#
|
|||
|
|
# ----------------------
|
|||
|
|
# Authentication Records
|
|||
|
|
# ----------------------
|
|||
|
|
#
|
|||
|
|
# This file controls: which hosts are allowed to connect, how clients
|
|||
|
|
# are authenticated, which PostgreSQL user names they can use, which
|
|||
|
|
# databases they can access. Records take one of these forms:
|
|||
|
|
#
|
|||
|
|
# local DATABASE USER METHOD [OPTIONS]
|
|||
|
|
# host DATABASE USER ADDRESS METHOD [OPTIONS]
|
|||
|
|
# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
|
|||
|
|
# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
|
|||
|
|
# hostgssenc DATABASE USER ADDRESS METHOD [OPTIONS]
|
|||
|
|
# hostnogssenc DATABASE USER ADDRESS METHOD [OPTIONS]
|
|||
|
|
#
|
|||
|
|
# (The uppercase items must be replaced by actual values.)
|
|||
|
|
#
|
|||
|
|
# The first field is the connection type:
|
|||
|
|
# - "local" is a Unix-domain socket
|
|||
|
|
# - "host" is a TCP/IP socket (encrypted or not)
|
|||
|
|
# - "hostssl" is a TCP/IP socket that is SSL-encrypted
|
|||
|
|
# - "hostnossl" is a TCP/IP socket that is not SSL-encrypted
|
|||
|
|
# - "hostgssenc" is a TCP/IP socket that is GSSAPI-encrypted
|
|||
|
|
# - "hostnogssenc" is a TCP/IP socket that is not GSSAPI-encrypted
|
|||
|
|
#
|
|||
|
|
# DATABASE can be "all", "sameuser", "samerole", "replication", a
|
|||
|
|
# database name, a regular expression (if it starts with a slash (/))
|
|||
|
|
# or a comma-separated list thereof. The "all" keyword does not match
|
|||
|
|
# "replication". Access to replication must be enabled in a separate
|
|||
|
|
# record (see example below).
|
|||
|
|
#
|
|||
|
|
# USER can be "all", a user name, a group name prefixed with "+", a
|
|||
|
|
# regular expression (if it starts with a slash (/)) or a comma-separated
|
|||
|
|
# list thereof. In both the DATABASE and USER fields you can also write
|
|||
|
|
# a file name prefixed with "@" to include names from a separate file.
|
|||
|
|
#
|
|||
|
|
# ADDRESS specifies the set of hosts the record matches. It can be a
|
|||
|
|
# host name, or it is made up of an IP address and a CIDR mask that is
|
|||
|
|
# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that
|
|||
|
|
# specifies the number of significant bits in the mask. A host name
|
|||
|
|
# that starts with a dot (.) matches a suffix of the actual host name.
|
|||
|
|
# Alternatively, you can write an IP address and netmask in separate
|
|||
|
|
# columns to specify the set of hosts. Instead of a CIDR-address, you
|
|||
|
|
# can write "samehost" to match any of the server's own IP addresses,
|
|||
|
|
# or "samenet" to match any address in any subnet that the server is
|
|||
|
|
# directly connected to.
|
|||
|
|
#
|
|||
|
|
# METHOD can be "trust", "reject", "md5", "password", "scram-sha-256",
|
|||
|
|
# "gss", "sspi", "ident", "peer", "pam", "ldap", "radius" or "cert".
|
|||
|
|
# Note that "password" sends passwords in clear text; "md5" or
|
|||
|
|
# "scram-sha-256" are preferred since they send encrypted passwords.
|
|||
|
|
#
|
|||
|
|
# OPTIONS are a set of options for the authentication in the format
|
|||
|
|
# NAME=VALUE. The available options depend on the different
|
|||
|
|
# authentication methods -- refer to the "Client Authentication"
|
|||
|
|
# section in the documentation for a list of which options are
|
|||
|
|
# available for which authentication methods.
|
|||
|
|
#
|
|||
|
|
# Database and user names containing spaces, commas, quotes and other
|
|||
|
|
# special characters must be quoted. Quoting one of the keywords
|
|||
|
|
# "all", "sameuser", "samerole" or "replication" makes the name lose
|
|||
|
|
# its special character, and just match a database or username with
|
|||
|
|
# that name.
|
|||
|
|
#
|
|||
|
|
# ---------------
|
|||
|
|
# Include Records
|
|||
|
|
# ---------------
|
|||
|
|
#
|
|||
|
|
# This file allows the inclusion of external files or directories holding
|
|||
|
|
# more records, using the following keywords:
|
|||
|
|
#
|
|||
|
|
# include FILE
|
|||
|
|
# include_if_exists FILE
|
|||
|
|
# include_dir DIRECTORY
|
|||
|
|
#
|
|||
|
|
# FILE is the file name to include, and DIR is the directory name containing
|
|||
|
|
# the file(s) to include. Any file in a directory will be loaded if suffixed
|
|||
|
|
# with ".conf". The files of a directory are ordered by name.
|
|||
|
|
# include_if_exists ignores missing files. FILE and DIRECTORY can be
|
|||
|
|
# specified as a relative or an absolute path, and can be double-quoted if
|
|||
|
|
# they contain spaces.
|
|||
|
|
#
|
|||
|
|
# -------------
|
|||
|
|
# Miscellaneous
|
|||
|
|
# -------------
|
|||
|
|
#
|
|||
|
|
# This file is read on server startup and when the server receives a
|
|||
|
|
# SIGHUP signal. If you edit the file on a running system, you have to
|
|||
|
|
# SIGHUP the server for the changes to take effect, run "pg_ctl reload",
|
|||
|
|
# or execute "SELECT pg_reload_conf()".
|
|||
|
|
#
|
|||
|
|
# ----------------------------------
|
|||
|
|
# Put your actual configuration here
|
|||
|
|
# ----------------------------------
|
|||
|
|
#
|
|||
|
|
# If you want to allow non-local connections, you need to add more
|
|||
|
|
# "host" records. In that case you will also need to make PostgreSQL
|
|||
|
|
# listen on a non-local interface via the listen_addresses
|
|||
|
|
# configuration parameter, or via the -i or -h command line switches.
|
|||
|
|
|
|||
|
|
# CAUTION: Configuring the system for local "trust" authentication
|
|||
|
|
# allows any local user to connect as any PostgreSQL user, including
|
|||
|
|
# the database superuser. If you do not trust all your local users,
|
|||
|
|
# use another authentication method.
|
|||
|
|
|
|||
|
|
|
|||
|
|
# TYPE DATABASE USER ADDRESS METHOD
|
|||
|
|
|
|||
|
|
# "local" is for Unix domain socket connections only
|
|||
|
|
local all all trust
|
|||
|
|
# IPv4 local connections:
|
|||
|
|
host all all 127.0.0.1/32 trust
|
|||
|
|
host all all 0.0.0.0/0 md5
|
|||
|
|
# IPv6 local connections:
|
|||
|
|
host all all ::1/128 trust
|
|||
|
|
# Allow replication connections from localhost, by a user with the
|
|||
|
|
# replication privilege.
|
|||
|
|
local replication all trust
|
|||
|
|
host replication all 0.0.0.0/0 trust
|
|||
|
|
host replication all 127.0.0.1/32 trust
|
|||
|
|
host replication all ::1/128 trust</code></pre>
|
|||
|
|
<ul>
|
|||
|
|
<li>Запускаем <strong>playbook</strong> для настройки веб-серверов:</li>
|
|||
|
|
</ul>
|
|||
|
|
<pre class="language-markup"><code>ansible-playbook postgresql_deploy_playbook.yml</code></pre>
|
|||
|
|
<ul>
|
|||
|
|
<li style="list-style-type: none;">
|
|||
|
|
<ul>
|
|||
|
|
<li>Результат:</li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<p><img height="848" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2YAAAM0CAIAAABf8aZVAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4Xuy9D1BTZ77//yThHIRwL8TVxD+p3aTdG+y96c9JdjvhttC9xv5J18KUxbGXqReqA1ehZWDkpsPiFHHkMsvqwNjFujKtMnb41pG1A7WNtuK3Juuab+9NpmvuVHMvDatNi4m2gVuCcE7+/J6TBAjJOSERrIqfM4yS58/n+Tyv5zknb55/h7dixQoEFxAAAkAACAABIAAEgAAQ4CbA546CGCAABIAAEAACQAAIAAEgwBAAyQj9AAgAASAABIAAEAACQGAOAml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sQxa0/HAC7Aae1tOnFFotmgjvE5+mPRJvWYobPLxKS3DbT12oSaoqh5d7aclLXnYCh9MvYRR30NBqekoDBiPkf3ghJZDcbwRxb/Cc0mndRxor3bzOCx9rd0WYQFmwoQV3jYEI2kOYxe1Li6tjQZ2KoyK4ylXgnsc7TLCG4nl4uiqLFQk+ErXIZcKUdXjANuZrjRZrR6RFLp9Pc9KaKNHW29JpvdZjUZzKEBY8524ShXq5V7jF0HTQwfc1eD0TVnddkTzLZTb/w6kozTHyzMk+8P3DwT9Ad2R1MqF5u4T/ohJwevzWQespptLuQ09lntZqsTiUQiLjYQDgQeFALJTkxjHgG1wqdewQzmkRkBEvETDaYsID4fbzBqptKLgkQiqYoL5p/6KH1t6eRrAv6HH6VfZiaC8aQwoskgnvq0MKaYuXXajzLxdLI/8PDfoMGk9y8vWxoQ3hIMzgxD8i+PohexJBpkrzC
|
|||
|
|
<p><img height="385" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA5oAAAGLCAIAAAApgnrLAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4XuydD1BTV973L3/utRq6EquJ2vRP0m5D+246nWTbCduF7Tb2T1wLUxpHN1MeWB14FCoDA286LI6II8u7PDIy9MG6ZbQw7rB1pHagttn6SMcmr2ve3U2m2+y0Zh83tDZPaaI2uCUKNxDec/OHhHCTgNJW7PeWscm55/zO73zOuTffnPzOuWmrV6+mcIAACIAACIAACIAACIDA4iSQvjjdhtcgAAIgAAIgAAIgAAIgwBGAnMU4AAEQAAEQAAEQAAEQWMQEIGcXcefBdRAAARAAARAAARAAAchZjAEQAAEQAAEQAAEQAIFFTABydhF3HlwHARAAARAAARAAARCAnMUYAAEQAAEQAAEQAAEQWMQEIGcXcefBdRAAARAAARAAARAAAchZjAEQAAEQAAEQAAEQAIFFTABydhF3HlwHARAAARAAARAAARCAnMUYAAEQAAEQAAEQAAEQWMQEIGcXcefBdRAAARAAARAAARAAgUUpZ7NFoSMb/UcIiET8HJAeGh7gAA6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Pbgtdvb2/tbTIYfn+CeDrqfLd9bxCMIk8tI0vCCne2FUZqYs/+tij4hAUcIAACIAACIAACIAAC8yUQjZ2db8mFzM8TOzvDPJn59HjmukMCefa0xxOdNg4ZEmSLfKn2HVvIFsXYyhZlj8zyJ0ldiJ1NAgenQAAEQAAEQAAEQCCOwBxnZ795boxQXda2z8d
|
|||
|
|
</section>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="moove-container-fluid p-0 mb-4">
|
|||
|
|
<div class="card activity-navigation mdl-bottom">
|
|||
|
|
<div class="card-body">
|
|||
|
|
<div class="row">
|
|||
|
|
<div class="col-md-4"> <div id="prev-activity">
|
|||
|
|
<div class="larrow">
|
|||
|
|
<i class="icon-arrow-left"></i>
|
|||
|
|
</div>
|
|||
|
|
<div class="text">
|
|||
|
|
<span class="nav-guide">
|
|||
|
|
Предыдущий элемент курса
|
|||
|
|
</span>
|
|||
|
|
<a class="btn btn-link" href="https://sysahelper.ru/mod/page/view.php?id=648&forceview=1" id="prev-activity-link">11) Настройка веб-серверов (apache2_deploy_playbook.yml)</a>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="col-md-4"> <div class="mdl-align">
|
|||
|
|
<div class="urlselect">
|
|||
|
|
<form action="https://sysahelper.ru/course/jumpto.php" class="form-inline" id="url_select_f69fc9746d26fc4" method="post">
|
|||
|
|
<input name="sesskey" type="hidden" value="I78ejZljGV"/>
|
|||
|
|
<label class="sr-only" for="jump-to-activity">
|
|||
|
|
Перейти на...
|
|||
|
|
</label>
|
|||
|
|
<select class="custom-select urlselect" id="jump-to-activity" name="jump">
|
|||
|
|
<option selected="" value="">Перейти на...</option>
|
|||
|
|
<option value="/mod/folder/view.php?id=572&forceview=1">Материалы</option>
|
|||
|
|
<option value="/mod/folder/view.php?id=578&forceview=1">WebApp</option>
|
|||
|
|
<option value="/mod/page/view.php?id=579&forceview=1">1) Подготовка машины Cloud-ADM (создание инстанса, доступ по SSH)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=580&forceview=1">2) Подготовка машины Cloud-ADM (доступ по RDP)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=581&forceview=1">3) Развёртывание облачной инфраструктуры (установка необходимых инструментов)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=582&forceview=1">4) Развёртывание облачной инфраструктуры (cloudinit.conf)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=583&forceview=1">5) Развёртывание облачной инфраструктуры (Разбираемся с сетями 'network.tf')</option>
|
|||
|
|
<option value="/mod/page/view.php?id=584&forceview=1">6) Развёртывание облачной инфраструктуры (Разбираемся с виртуальными машинами (инстансами) 'instance.tf')</option>
|
|||
|
|
<option value="/mod/page/view.php?id=585&forceview=1">7) Развёртывание облачной инфраструктуры (Разбираемся с балансировщиком нагрузки 'loadbalancer.tf')</option>
|
|||
|
|
<option value="/mod/page/view.php?id=586&forceview=1">8) Развёртывание облачной инфраструктуры (Разбираемся с плавающим IP 'floatingip.tf')</option>
|
|||
|
|
<option value="/mod/page/view.php?id=587&forceview=1">9) Реализация скрипта автоматизации (deploy-cloudinfra.sh)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=588&forceview=1">10) Настройка облачной инфраструктуры (Основные моменты и подготовка к работе)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=648&forceview=1">11) Настройка веб-серверов (apache2_deploy_playbook.yml)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=650&forceview=1">13) Настройка HAProxy (haproxy_deploy_playbook.yml)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=651&forceview=1">14) Настройка Keepalived (keepalive_deploy_playbook.yml)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=652&forceview=1">15) Реализация скрипта автоматизации (configure-cloudinfra.sh)</option>
|
|||
|
|
<option value="/mod/page/view.php?id=653&forceview=1">16) Удаление автоматически созданных ресурсов</option>
|
|||
|
|
</select>
|
|||
|
|
<noscript>
|
|||
|
|
<input class="btn btn-secondary ml-1" type="submit" value="Применить"/>
|
|||
|
|
</noscript>
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="col-md-4"> <div id="next-activity">
|
|||
|
|
<div class="text">
|
|||
|
|
<span class="nav-guide">
|
|||
|
|
Следующий элемент курса
|
|||
|
|
</span>
|
|||
|
|
<a class="btn btn-link" href="https://sysahelper.ru/mod/page/view.php?id=650&forceview=1" id="next-activity-link">13) Настройка HAProxy (haproxy_deploy_playbook.yml)</a>
|
|||
|
|
</div>
|
|||
|
|
<div class="rarrow">
|
|||
|
|
<i class="icon-arrow-right"></i>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<footer id="page-footer">
|
|||
|
|
<div class="moove-container-fluid footer-columns">
|
|||
|
|
<div class="row">
|
|||
|
|
<div class="col-md-4 column-left">
|
|||
|
|
<div class="contact">
|
|||
|
|
<h3 class="footer-title">Обратная связь</h3>
|
|||
|
|
<ul>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
<div class="socialnetworks">
|
|||
|
|
<h3 class="footer-title">Подпишитесь</h3>
|
|||
|
|
<ul class="mb-0">
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="col-md-4 column-center">
|
|||
|
|
<div class="logininfo">Вы используете гостевой доступ (<a href="https://sysahelper.ru/login/index.php">Вход</a>)</div>
|
|||
|
|
<div class="tool_dataprivacy"><a href="https://sysahelper.ru/admin/tool/dataprivacy/summary.php">Сводка хранения данных</a></div>
|
|||
|
|
<div class="tool_usertours-resettourcontainer"></div>
|
|||
|
|
</div>
|
|||
|
|
<div class="col-md-4 column-right">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="footer-content-debugging footer-dark bg-dark text-light">
|
|||
|
|
<div class="moove-container-fluid footer-dark-inner">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div data-region="footer-container-popover">
|
|||
|
|
<button aria-label="Показать нижний колонтитул" class="btn btn-icon bg-secondary icon-no-margin btn-footer-popover" data-action="footer-popover">
|
|||
|
|
<i aria-hidden="true" class="icon fa fa-question fa-fw"></i>
|
|||
|
|
</button>
|
|||
|
|
</div>
|
|||
|
|
<div class="footer-content-popover container" data-region="footer-content-popover">
|
|||
|
|
<div class="footer-section p-3">
|
|||
|
|
<div>На платформе <a href="https://moodle.com">Moodle</a></div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="copyright">
|
|||
|
|
<div class="madeby">
|
|||
|
|
<p>Тема оформления сайта разработана</p>
|
|||
|
|
<a href="https://conecti.me">
|
|||
|
|
<img alt="Conecti.me" src="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE0NiIgdmlld0JveD0iMCAwIDU3MiAxNDYiIHdpZHRoPSI1NzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtMTg4LjA1NTk4IDEwMS40MzA4NGM1LjIzNTEyIDAgOS41OTc3Mi0xLjYyMzg1NjcgMTMuMDg3OC00Ljg3MTU3LjU4MTY4LS41ODE2OC44NzI1Mi0xLjIzNjA3Ljg3MjUyLTEuOTYzMTcgMC0uOTY5NDY2Ny0uNDYwNDk3LTEuODQxOTg2Ny0xLjM4MTQ5LTIuNjE3NTYtLjU4MTY4LS40MzYyNi0xLjIxMTgzMy0uNjU0MzktMS44OTA0Ni0uNjU0MzktLjg3MjUyIDAtMS43NjkyNzcuMzM5MzEzMy0yLjY5MDI3IDEuMDE3OTQtMi4wMzU4OCAxLjY5NjU2NjctNC43MDE5MTMgMi41NDQ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c1MDE3IDEuMDE3OTQtMi42NTM5MTV2LTIwLjUwNDIyYzAtMS43NDUwNC40NzI2MTUtMy4zMjA0MjMzIDEuNDE3ODQ1LTQuNzI2MTVzMi4yNTQwMS0yLjUyMDYxMzMgMy45MjYzNC0zLjM0NDY2IDMuNTI2NDM1LTEuMjM2MDcgNS41NjIzMTUtMS4yMzYwN2MzLjQ5MDA4IDAgNi4yODk0MTUgMS4wMDU4MjE3IDguMzk4MDA1IDMuMDE3NDY1czMuMTYyODg1IDQuOTgwNjM1IDMuMTYyODg1IDguOTA2OTc1djE3Ljg4NjY2Yz
|
|||
|
|
</a>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</footer>
|
|||
|
|
<!-- Yandex.Metrika counter -->
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
|||
|
|
m[i].l=1*new Date();
|
|||
|
|
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
|
|||
|
|
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
|
|||
|
|
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
|||
|
|
|
|||
|
|
ym(96198090, "init", {
|
|||
|
|
clickmap:true,
|
|||
|
|
trackLinks:true,
|
|||
|
|
accurateTrackBounce:true
|
|||
|
|
});
|
|||
|
|
</script>
|
|||
|
|
<noscript><div><img alt="" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" style="position:absolute; left:-9999px;"/></div></noscript>
|
|||
|
|
<!-- /Yandex.Metrika counter --><script>
|
|||
|
|
//<![CDATA[
|
|||
|
|
var require = {
|
|||
|
|
baseUrl : 'https://sysahelper.ru/lib/requirejs.php/1703880200/',
|
|||
|
|
// We only support AMD modules with an explicit define() statement.
|
|||
|
|
enforceDefine: true,
|
|||
|
|
skipDataMain: true,
|
|||
|
|
waitSeconds : 0,
|
|||
|
|
|
|||
|
|
paths: {
|
|||
|
|
jquery: 'https://sysahelper.ru/lib/javascript.php/1703880200/lib/jquery/jquery-3.7.1.min',
|
|||
|
|
jqueryui: 'https://sysahelper.ru/lib/javascript.php/1703880200/lib/jquery/ui-1.13.2/jquery-ui.min',
|
|||
|
|
jqueryprivate: 'https://sysahelper.ru/lib/javascript.php/1703880200/lib/requirejs/jquery-private'
|
|||
|
|
},
|
|||
|
|
|
|||
|
|
// Custom jquery config map.
|
|||
|
|
map: {
|
|||
|
|
// '*' means all modules will get 'jqueryprivate'
|
|||
|
|
// for their 'jquery' dependency.
|
|||
|
|
'*': { jquery: 'jqueryprivate' },
|
|||
|
|
// Stub module for 'process'. This is a workaround for a bug in MathJax (see MDL-60458).
|
|||
|
|
'*': { process: 'core/first' },
|
|||
|
|
|
|||
|
|
// 'jquery-private' wants the real jQuery module
|
|||
|
|
// though. If this line was not here, there would
|
|||
|
|
// be an unresolvable cyclic dependency.
|
|||
|
|
jqueryprivate: { jquery: 'jquery' }
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
//]]>
|
|||
|
|
</script>
|
|||
|
|
<script src="https://sysahelper.ru/lib/javascript.php/1703880200/lib/requirejs/require.min.js"></script>
|
|||
|
|
<script>
|
|||
|
|
//<![CDATA[
|
|||
|
|
M.util.js_pending("core/first");
|
|||
|
|
require(['core/first'], function() {
|
|||
|
|
require(['core/prefetch'])
|
|||
|
|
;
|
|||
|
|
M.util.js_pending('filter_mathjaxloader/loader'); require(['filter_mathjaxloader/loader'], function(amd) {amd.configure({"mathjaxconfig":"\nMathJax.Hub.Config({\n config: [\"Accessible.js\", \"Safe.js\"],\n errorSettings: { message: [\"!\"] },\n skipStartupTypeset: true,\n messageStyle: \"none\"\n});\n","lang":"ru"}); M.util.js_complete('filter_mathjaxloader/loader');});;
|
|||
|
|
require(["media_videojs/loader"], function(loader) {
|
|||
|
|
loader.setUp('ru');
|
|||
|
|
});;
|
|||
|
|
M.util.js_pending('core_courseformat/courseeditor'); require(['core_courseformat/courseeditor'], function(amd) {amd.setViewFormat("39", {"editing":false,"supportscomponents":true,"statekey":"1763961859_1778160112","overriddenStrings":[{"component":"format_topics","key":"sectionavailability_title"},{"component":"format_topics","key":"sectiondelete_title"},{"component":"format_topics","key":"sectionsdelete_title"},{"component":"format_topics","key":"sectionsdelete_info"},{"component":"format_topics","key":"sectionmove_title"},{"component":"format_topics","key":"sectionsavailability_title"},{"component":"format_topics","key":"sectionsmove_title"},{"component":"format_topics","key":"sectionsmove_info"},{"component":"format_topics","key":"selectsection"}]}); M.util.js_complete('core_courseformat/courseeditor');});;
|
|||
|
|
|
|||
|
|
require(['core_courseformat/local/courseindex/placeholder'], function(component) {
|
|||
|
|
component.init('course-index-placeholder');
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(['core_courseformat/local/courseindex/drawer'], function(component) {
|
|||
|
|
component.init('courseindex');
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
M.util.js_pending('core_courseformat/local/content/activity_header'); require(['core_courseformat/local/content/activity_header'], function(amd) {amd.init(); M.util.js_complete('core_courseformat/local/content/activity_header');});;
|
|||
|
|
|
|||
|
|
require(['theme_moove/accessibilitybar'], function(AccessibilityBar) {
|
|||
|
|
AccessibilityBar.init();
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(['core/moremenu'], function(moremenu) {
|
|||
|
|
moremenu(document.querySelector('#moremenu-69fc9746d2108-navbar-nav'));
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(
|
|||
|
|
[
|
|||
|
|
'jquery',
|
|||
|
|
],
|
|||
|
|
function(
|
|||
|
|
$
|
|||
|
|
) {
|
|||
|
|
var uniqid = "69fc9746d36ea69fc9746d26fc2";
|
|||
|
|
var container = $('#searchinput-navbar-' + uniqid);
|
|||
|
|
var opensearch = container.find('[data-action="opensearch"]');
|
|||
|
|
var input = container.find('[data-region="input"]');
|
|||
|
|
var submit = container.find('[data-action="submit"]');
|
|||
|
|
|
|||
|
|
submit.on('click', function(e) {
|
|||
|
|
if (input.val() === '') {
|
|||
|
|
e.preventDefault();
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
container.on('hidden.bs.collapse', function() {
|
|||
|
|
opensearch.removeClass('d-none');
|
|||
|
|
input.val('');
|
|||
|
|
});
|
|||
|
|
container.on('show.bs.collapse', function() {
|
|||
|
|
opensearch.addClass('d-none');
|
|||
|
|
});
|
|||
|
|
container.on('shown.bs.collapse', function() {
|
|||
|
|
input.focus();
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(
|
|||
|
|
[
|
|||
|
|
'jquery',
|
|||
|
|
],
|
|||
|
|
function(
|
|||
|
|
$
|
|||
|
|
) {
|
|||
|
|
var uniqid = "69fc9746d3c3669fc9746d26fc3";
|
|||
|
|
var container = $('#searchinput-navbar-' + uniqid);
|
|||
|
|
var opensearch = container.find('[data-action="opensearch"]');
|
|||
|
|
var input = container.find('[data-region="input"]');
|
|||
|
|
var submit = container.find('[data-action="submit"]');
|
|||
|
|
|
|||
|
|
submit.on('click', function(e) {
|
|||
|
|
if (input.val() === '') {
|
|||
|
|
e.preventDefault();
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
container.on('hidden.bs.collapse', function() {
|
|||
|
|
opensearch.removeClass('d-none');
|
|||
|
|
input.val('');
|
|||
|
|
});
|
|||
|
|
container.on('show.bs.collapse', function() {
|
|||
|
|
opensearch.addClass('d-none');
|
|||
|
|
});
|
|||
|
|
container.on('shown.bs.collapse', function() {
|
|||
|
|
input.focus();
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(['core/usermenu', 'theme_moove/accessibilitysettings'], function(UserMenu, AccessibilitySettings) {
|
|||
|
|
UserMenu.init();
|
|||
|
|
|
|||
|
|
AccessibilitySettings.init();
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(['theme_boost/drawers']);
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(['theme_boost/drawers']);
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(['jquery', 'core/custom_interaction_events'], function($, CustomEvents) {
|
|||
|
|
CustomEvents.define('#jump-to-activity', [CustomEvents.events.accessibleChange]);
|
|||
|
|
$('#jump-to-activity').on(CustomEvents.events.accessibleChange, function() {
|
|||
|
|
if ($(this).val()) {
|
|||
|
|
$('#url_select_f69fc9746d26fc4').submit();
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
require(['theme_boost/footer-popover'], function(FooterPopover) {
|
|||
|
|
FooterPopover.init();
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
M.util.js_pending('theme_boost/loader');
|
|||
|
|
require(['theme_boost/loader', 'theme_boost/drawer'], function(Loader, Drawer) {
|
|||
|
|
Drawer.init();
|
|||
|
|
M.util.js_complete('theme_boost/loader');
|
|||
|
|
});
|
|||
|
|
;
|
|||
|
|
M.util.js_pending('core/notification'); require(['core/notification'], function(amd) {amd.init(1017, []); M.util.js_complete('core/notification');});;
|
|||
|
|
M.util.js_pending('core/log'); require(['core/log'], function(amd) {amd.setConfig({"level":"warn"}); M.util.js_complete('core/log');});;
|
|||
|
|
M.util.js_pending('core/page_global'); require(['core/page_global'], function(amd) {amd.init(); M.util.js_complete('core/page_global');});;
|
|||
|
|
M.util.js_pending('core/utility'); require(['core/utility'], function(amd) {M.util.js_complete('core/utility');});
|
|||
|
|
M.util.js_complete("core/first");
|
|||
|
|
});
|
|||
|
|
//]]>
|
|||
|
|
</script>
|
|||
|
|
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?delayStartupUntil=configured"></script>
|
|||
|
|
<script>
|
|||
|
|
//<![CDATA[
|
|||
|
|
M.str = {"moodle":{"lastmodified":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435","name":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435","error":"\u041e\u0448\u0438\u0431\u043a\u0430","info":"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f","yes":"\u0414\u0430","no":"\u041d\u0435\u0442","cancel":"\u041e\u0442\u043c\u0435\u043d\u0430","confirm":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c","areyousure":"\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b?","closebuttontitle":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c","unknownerror":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","file":"\u0424\u0430\u0439\u043b","url":"URL","collapseall":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0451","expandall":"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0451"},"repository":{"type":"\u0422\u0438\u043f","size":"\u0420\u0430\u0437\u043c\u0435\u0440","invalidjson":"\u041d\u0435\u0432\u0435\u0440\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 JSON","nofilesattached":"\u041d\u0435 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d \u043d\u0438 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b","filepicker":"\u0412\u044b\u0431\u043e\u0440 \u0444\u0430\u0439\u043b\u0430","logout":"\u0412\u044b\u0445\u043e\u0434","nofilesavailable":"\u041d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430","norepositoriesavailable":"\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0438 \u043e\u0434\u043d\u043e \u0438\u0437 \u0412\u0430\u0448\u0438\u0445 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0432 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435.","fileexistsdialogheader":"\u0424\u0430\u0439\u043b \u0441\u043e\u0437\u0434\u0430\u043d","fileexistsdialog_editor":"\u0424\u0430\u0439\u043b \u0441 \u044d\u0442\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u0443\u0436\u0435 \u0431\u044b\u043b \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d \u043a \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u043c\u0443 \u0442\u0435\u043a\u0441\u0442\u0443","fileexistsdialog_filemanager":"\u0424\u0430\u0439\u043b \u0441 \u044d\u0442\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u0443\u0436\u0435 \u0431\u044b\u043b \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d","renameto":"\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0432 \u00ab{$a}\u00bb","referencesexist":"\u041d\u0430 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0435\u0441\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438: {$a}","select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"},"admin":{"confirmdeletecomments":"\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438?","confirmation":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435"},"debug":{"debuginfo":"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435","line":"\u0421\u0442\u0440\u043e\u043a\u0430","stacktrace":"\u0422\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0438 \u0441\u0442\u0435\u043a\u0430"},"langconfig":{"labelsep":":"}};
|
|||
|
|
//]]>
|
|||
|
|
</script>
|
|||
|
|
<script>
|
|||
|
|
//<![CDATA[
|
|||
|
|
(function() {M.util.help_popups.setup(Y);
|
|||
|
|
M.util.js_pending('random69fc9746d26fc5'); Y.on('domready', function() { M.util.js_complete("init"); M.util.js_complete('random69fc9746d26fc5'); });
|
|||
|
|
})();
|
|||
|
|
//]]>
|
|||
|
|
</script>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</body></html>
|