1.
1 2 | # vi /etc/gitlab/gitlab.rb | cs |
1-1.
1 2 3 | # unicorn['port'] = 8080 unicorn['port'] = 9000 | cs |
2. 재설정
1 2 | # gitlab-ctl reconfigure | cs |
'Server > Git' 카테고리의 다른 글
GitLab 설정 파일 및 명령어 (0) | 2018.06.22 |
---|---|
ubuntu 사설 Git Server 구축 (0) | 2018.06.22 |
1.
1 2 | # vi /etc/gitlab/gitlab.rb | cs |
1-1.
1 2 3 | # unicorn['port'] = 8080 unicorn['port'] = 9000 | cs |
2. 재설정
1 2 | # gitlab-ctl reconfigure | cs |
GitLab 설정 파일 및 명령어 (0) | 2018.06.22 |
---|---|
ubuntu 사설 Git Server 구축 (0) | 2018.06.22 |
설적 적용
# gitlab-ctl reconfigure
서비스 재시작
# gitlab-ctl restart
서비스 상태 확인
# gitlab-ctl status
서비스 중지
# gitlab-ctl stop
서비스 삭제
# gitlab-ctl uninstall
혹은
# gitlab-ctl appt-get autoremove gitlab-ce
ubuntu 16.04 gitlab 설정 파일 경로
/etc/gitlab/gitlab.rb
/var/opt/gitlab/
/opt/gitlab/embedded/service/gitlab-rails/app/views
gitlab port 변경 시 (0) | 2018.06.22 |
---|---|
ubuntu 사설 Git Server 구축 (0) | 2018.06.22 |
os version: ubuntu 16.04
1.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | # apt-get install curl openssh-server ca-certificates postfix Reading package lists... Done Building dependency tree Reading state information... Done ca-certificates is already the newest version (20170717~16.04.1). curl is already the newest version (7.47.0-1ubuntu2.8). openssh-server is already the newest version (1:7.2p2-4ubuntu2.4). The following additional packages will be installed: ssl-cert Suggested packages: procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin dovecot-common postfix-cdb mail-reader postfix-doc openssl-blacklist The following NEW packages will be installed: postfix ssl-cert 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1,169 kB of archives. After this operation, 3,759 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 ssl-cert all 1.0.37 [16.9 kB] Get:2 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 postfix amd64 3.1.0-3ubuntu0.3 [1,152 kB] Fetched 1,169 kB in 0s (2,836 kB/s) Preconfiguring packages ... Selecting previously unselected package ssl-cert. (Reading database ... 92628 files and directories currently installed.) Preparing to unpack .../ssl-cert_1.0.37_all.deb ... Unpacking ssl-cert (1.0.37) ... Selecting previously unselected package postfix. Preparing to unpack .../postfix_3.1.0-3ubuntu0.3_amd64.deb ... Unpacking postfix (3.1.0-3ubuntu0.3) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for libc-bin (2.23-0ubuntu10) ... Processing triggers for ufw (0.35-0ubuntu2) ... Processing triggers for systemd (229-4ubuntu21.2) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up ssl-cert (1.0.37) ... Setting up postfix (3.1.0-3ubuntu0.3) ... Adding group `postfix' (GID 118) ... Done. Adding system user `postfix' (UID 111) ... Adding new user `postfix' (UID 111) with group `postfix' ... Not creating home directory `/var/spool/postfix'. Creating /etc/postfix/dynamicmaps.cf Adding group `postdrop' (GID 119) ... Done. /etc/aliases does not exist, creating it. Postfix was not set up. Start with cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf . If you need to make changes, edit /etc/postfix/main.cf (and others) as needed. To view Postfix configuration values, see postconf(1). After modifying main.cf, be sure to run '/etc/init.d/postfix reload'. Processing triggers for libc-bin (2.23-0ubuntu10) ... Processing triggers for systemd (229-4ubuntu21.2) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for ufw (0.35-0ubuntu2) ... | cs |
2. "No configuration"을 선택
3.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash Detected operating system as Ubuntu/xenial. Checking for curl... Detected curl... Checking for gpg... Detected gpg... Running apt-get update... done. Installing apt-transport-https... done. Installing /etc/apt/sources.list.d/gitlab_gitlab-ce.list...done. Importing packagecloud gpg key... done. Running apt-get update... done. The repository is setup! You can now install packages. | cs |
4.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # apt-get install gitlab-ce Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: gitlab-ce 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 423 MB of archives. After this operation, 1,361 MB of additional disk space will be used. Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial/main amd64 gitlab-ce amd64 10.8.4-ce.0 [423 MB] Fetched 423 MB in 41s (10.1 MB/s) Selecting previously unselected package gitlab-ce. (Reading database ... 92828 files and directories currently installed.) Preparing to unpack .../gitlab-ce_10.8.4-ce.0_amd64.deb ... Unpacking gitlab-ce (10.8.4-ce.0) ... Setting up gitlab-ce (10.8.4-ce.0) ... It looks like GitLab has not been configured yet; skipping the upgrade script. *. *. *** *** ***** ***** .****** ******* ******** ******** ,,,,,,,,,***********,,,,,,,,, ,,,,,,,,,,,*********,,,,,,,,,,, .,,,,,,,,,,,*******,,,,,,,,,,,, ,,,,,,,,,*****,,,,,,,,,. ,,,,,,,****,,,,,, .,,,***,,,, ,*,. _______ __ __ __ / ____(_) /_/ / ____ _/ /_ / / __/ / __/ / / __ `/ __ \ / /_/ / / /_/ /___/ /_/ / /_/ / \____/_/\__/_____/\__,_/_.___/ Thank you for installing GitLab! GitLab was unable to detect a valid hostname for your instance. Please configure a URL for your GitLab instance by setting `external_url` configuration in /etc/gitlab/gitlab.rb file. Then, you can start your GitLab instance by running the following command: sudo gitlab-ctl reconfigure For a comprehensive list of configuration options please see the Omnibus GitLab readme https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md | cs |
5.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 | # gitlab-ctl reconfigure Starting Chef Client, version 13.6.4 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks: - gitlab (0.0.1) - package (0.1.0) - postgresql (0.1.0) - registry (0.1.0) - mattermost (0.1.0) - consul (0.0.0) - gitaly (0.1.0) - letsencrypt (0.1.0) - nginx (0.1.0) - runit (0.14.2) - acme (3.1.0) - crond (0.1.0) - compat_resource (12.19.0) Installing Cookbook Gems: Compiling Cookbooks... Recipe: gitlab::default * directory[/etc/gitlab] action create - change mode from '0755' to '0775' Converging 465 resources * directory[/etc/gitlab] action create (up to date) * directory[Create /var/opt/gitlab] action create - create new directory /var/opt/gitlab - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/embedded/etc] action create - create new directory /opt/gitlab/embedded/etc - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/embedded/etc/gitconfig] action create - create new file /opt/gitlab/embedded/etc/gitconfig - update content in file /opt/gitlab/embedded/etc/gitconfig from none to 987af3 --- /opt/gitlab/embedded/etc/gitconfig 2018-06-22 15:40:37.732539977 +0900 +++ /opt/gitlab/embedded/etc/.chef-gitconfig20180622-11711-1sfzytd 2018-06-22 15:40:37.728540122 +0900 @@ -1 +1,11 @@ +[pack] + threads = 1 +[receive] + fsckObjects = true +advertisePushOptions = true +[repack] + writeBitmaps = true +[transfer] + hideRefs=^refs/tmp/ +hideRefs=^refs/keep-around/ - change mode from '' to '0755' Recipe: gitlab::web-server * account[Webserver user and group] action create * group[Webserver user and group] action create - create group gitlab-www * linux_user[Webserver user and group] action create - create user gitlab-www Recipe: gitlab::users * directory[/var/opt/gitlab] action create (up to date) * account[GitLab user and group] action create * group[GitLab user and group] action create - create group git * linux_user[GitLab user and group] action create - create user git * template[/var/opt/gitlab/.gitconfig] action create - create new file /var/opt/gitlab/.gitconfig - update content in file /var/opt/gitlab/.gitconfig from none to b924e8 --- /var/opt/gitlab/.gitconfig 2018-06-22 15:40:38.072527759 +0900 +++ /var/opt/gitlab/.chef-.gitconfig20180622-11711-w7dkhk.gitconfig 2018-06-22 15:40:38.072527759 +0900 @@ -1 +1,12 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +[user] + name = GitLab + email = gitlab@gitlab.example.com +[core] + autocrlf = input +[gc] + auto = 0 - change mode from '' to '0644' - change owner from '' to 'git' - change group from '' to 'git' Recipe: gitlab::gitlab-shell * storage_directory[/var/opt/gitlab/.ssh] action create * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run - execute the ruby block directory resource: /var/opt/gitlab/.ssh * directory[/var/log/gitlab/gitlab-shell/] action create - create new directory /var/log/gitlab/gitlab-shell/ - change mode from '' to '0700' - change owner from '' to 'git' * directory[/var/opt/gitlab/gitlab-shell] action create - create new directory /var/opt/gitlab/gitlab-shell - change mode from '' to '0700' - change owner from '' to 'git' * templatesymlink[Create a config.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-shell/config.yml] action create - create new file /var/opt/gitlab/gitlab-shell/config.yml - update content in file /var/opt/gitlab/gitlab-shell/config.yml from none to d824f9 --- /var/opt/gitlab/gitlab-shell/config.yml 2018-06-22 15:40:38.400516097 +0900 +++ /var/opt/gitlab/gitlab-shell/.chef-config20180622-11711-wysr7y.yml 2018-06-22 15:40:38.396516239 +0900 @@ -1 +1,44 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +# GitLab user. git by default +user: git + +# Url to gitlab instance. Used for api calls. Should end with a slash. +gitlab_url: "http://127.0.0.1:8080" + +http_settings: + +# user: someone +# password: somepass +# ca_file: /etc/ssl/cert.pem +# ca_path: /etc/pki/tls/certs +# self_signed_cert: false + +# File used as authorized_keys for gitlab user +auth_file: "/var/opt/gitlab/.ssh/authorized_keys" + +# Redis settings used for pushing commit notices to gitlab +redis: + host: 127.0.0.1 + port: + socket: /var/opt/gitlab/redis/redis.socket + database: + namespace: resque:gitlab + +# Log file. +# Default is gitlab-shell.log in the root directory. +log_file: "/var/log/gitlab/gitlab-shell/gitlab-shell.log" + +# Log level. INFO by default +log_level: + + +# Audit usernames. +# Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but +# incurs an extra API call on every gitlab-shell command. +audit_usernames: + + * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create - create symlink at /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create - create symlink at /opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret to /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret * execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions] action run - execute /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions * bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if) Recipe: gitlab::gitlab-rails * storage_directory[/var/opt/gitlab/git-data] action create * ruby_block[directory resource: /var/opt/gitlab/git-data] action run - execute the ruby block directory resource: /var/opt/gitlab/git-data * storage_directory[/var/opt/gitlab/git-data/repositories] action create * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run - execute the ruby block directory resource: /var/opt/gitlab/git-data/repositories * directory[/var/log/gitlab] action create - change owner from 'root' to 'git' * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run - execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/shared * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run - execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run - execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run - execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/uploads * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run - execute the ruby block directory resource: /var/opt/gitlab/gitlab-ci/builds * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run - execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/shared/cache * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run - execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run - execute the ruby block directory resource: /var/opt/gitlab/gitlab-rails/shared/pages * directory[create /var/opt/gitlab/gitlab-rails/etc] action create - create new directory /var/opt/gitlab/gitlab-rails/etc - change mode from '' to '0700' - change owner from '' to 'git' * directory[create /opt/gitlab/etc/gitlab-rails] action create - create new directory /opt/gitlab/etc/gitlab-rails - change mode from '' to '0700' - change owner from '' to 'git' * directory[create /var/opt/gitlab/gitlab-rails/working] action create - create new directory /var/opt/gitlab/gitlab-rails/working - change mode from '' to '0700' - change owner from '' to 'git' * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create - create new directory /var/opt/gitlab/gitlab-rails/tmp - change mode from '' to '0700' - change owner from '' to 'git' * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create - create new directory /var/opt/gitlab/gitlab-rails/upgrade-status - change mode from '' to '0700' - change owner from '' to 'git' * directory[create /var/log/gitlab/gitlab-rails] action create - create new directory /var/log/gitlab/gitlab-rails - change mode from '' to '0700' - change owner from '' to 'git' * storage_directory[/var/opt/gitlab/backups] action create * ruby_block[directory resource: /var/opt/gitlab/backups] action run - execute the ruby block directory resource: /var/opt/gitlab/backups * directory[/var/opt/gitlab/gitlab-rails] action create - change owner from 'root' to 'git' * directory[/var/opt/gitlab/gitlab-ci] action create - change owner from 'root' to 'git' * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if) * template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create - create new file /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc - update content in file /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc from none to 15c7d9 --- /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc 2018-06-22 15:40:41.292415129 +0900 +++ /opt/gitlab/etc/gitlab-rails/.chef-gitlab-rails-rc20180622-11711-1te6k3q 2018-06-22 15:40:41.292415129 +0900 @@ -1 +1,2 @@ +gitlab_user='git' * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date) * templatesymlink[Create a database.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create - create new file /var/opt/gitlab/gitlab-rails/etc/database.yml - update content in file /var/opt/gitlab/gitlab-rails/etc/database.yml from none to 00a743 --- /var/opt/gitlab/gitlab-rails/etc/database.yml 2018-06-22 15:40:41.304414720 +0900 +++ /var/opt/gitlab/gitlab-rails/etc/.chef-database20180622-11711-1f0ik2r.yml 2018-06-22 15:40:41.304414720 +0900 @@ -1 +1,23 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +production: + adapter: postgresql + encoding: unicode + collation: + database: gitlabhq_production + pool: 10 + username: "gitlab" + password: + host: "/var/opt/gitlab/postgresql" + port: 5432 + socket: + sslmode: + sslrootcert: + sslca: + load_balancing: {"hosts":[]} + prepared_statements: false + statements_limit: 1000 + fdw: - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create - create new file /var/opt/gitlab/gitlab-rails/etc/secrets.yml - update content in file /var/opt/gitlab/gitlab-rails/etc/secrets.yml from none to 0f3cbe - suppressed sensitive resource - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create - create new file /var/opt/gitlab/gitlab-rails/etc/resque.yml - update content in file /var/opt/gitlab/gitlab-rails/etc/resque.yml from none to ec4232 --- /var/opt/gitlab/gitlab-rails/etc/resque.yml 2018-06-22 15:40:41.328413901 +0900 +++ /var/opt/gitlab/gitlab-rails/etc/.chef-resque20180622-11711-rsxn7l.yml 2018-06-22 15:40:41.328413901 +0900 @@ -1 +1,3 @@ +production: + url: unix:/var/opt/gitlab/redis/redis.socket - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a aws.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/aws.yml] action delete (up to date) (up to date) * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date) (up to date) * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create - create new file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from none to 094b72 --- /var/opt/gitlab/gitlab-rails/etc/gitlab.yml 2018-06-22 15:40:41.352413082 +0900 +++ /var/opt/gitlab/gitlab-rails/etc/.chef-gitlab20180622-11711-1illqxd.yml 2018-06-22 15:40:41.352413082 +0900 @@ -1 +1,509 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +production: &base + # + # 1. GitLab app settings + # ========================== + + ## GitLab settings + gitlab: + ## Web server settings (note: host is the FQDN, do not include http://) + host: gitlab.example.com + port: 80 + https: false + + # Uncommment this line below if your ssh host is different from HTTP/HTTPS one + # (you'd obviously need to replace ssh.host_example.com with your own host). + # Otherwise, ssh host will be set to the `host:` value above + ssh_host: + + # WARNING: See config/application.rb under "Relative url support" for the list of + # other files that need to be changed for relative url support + relative_url_root: + + # Trusted Proxies + # Customize if you have GitLab behind a reverse proxy which is running on a different machine. + # Add the IP address for your reverse proxy to the list, otherwise users will appear signed in from that address. + trusted_proxies: + + # Uncomment and customize if you can't use the default user to run GitLab (default: 'git') + user: git + + ## Date & Time settings + time_zone: + + ## Email settings + # Uncomment and set to false if you need to disable email sending from GitLab (default: true) + email_enabled: + # Email address used in the "From" field in mails sent by GitLab + email_from: gitlab@gitlab.example.com + email_display_name: + email_reply_to: + email_subject_suffix: + + # Email server smtp settings are in [a separate file](initializers/smtp_settings.rb.sample). + + ## User settings + default_can_create_group: # default: true + username_changing_enabled: # default: true - User can change her username/namespace + ## Default theme + ## 1 - Graphite + ## 2 - Charcoal + ## 3 - Green + ## 4 - Gray + ## 5 - Violet + ## 6 - Blue + default_theme: # default: 2 + + ## Automatic issue closing + # If a commit message matches this regular expression, all issues referenced from the matched text will be closed. + # This happens when the commit is pushed or merged into the default branch of a project. + # When not specified the default issue_closing_pattern as specified below will be used. + # Tip: you can test your closing pattern at http://rubular.com + issue_closing_pattern: + + ## Default project features settings + default_projects_features: + issues: + merge_requests: + wiki: + snippets: + builds: + container_registry: + + ## Webhook settings + # Number of seconds to wait for HTTP response after sending webhook HTTP POST request (default: 10) + webhook_timeout: + + ## Repository downloads directory + # When a user clicks e.g. 'Download zip' on a project, a temporary zip file is created in the following directory. + # The default is 'tmp/repositories' relative to the root of the Rails app. + repository_downloads_path: + + usage_ping_enabled: + + ## Reply by email + # Allow users to comment on issues and merge requests by replying to notification emails. + # For documentation on how to set this up, see https://docs.gitlab.com/ce/administration/reply_by_email.html + incoming_email: + enabled: false + + # The email address including the `%{key}` placeholder that will be replaced to reference the item being replied to. + # The placeholder can be omitted but if present, it must appear in the "user" part of the address (before the `@`). + address: + + # Email account username + # With third party providers, this is usually the full email address. + # With self-hosted email servers, this is usually the user part of the email address. + user: + # Email account password + password: + + # IMAP server host + host: + # IMAP server port + port: + # Whether the IMAP server uses SSL + ssl: + # Whether the IMAP server uses StartTLS + start_tls: + + # The mailbox where incoming mail will end up. Usually "inbox". + mailbox: "inbox" + # The IDLE command timeout. + idle_timeout: + + ## Build Artifacts + artifacts: + enabled: true + # The location where Build Artifacts are stored (default: shared/artifacts). + path: /var/opt/gitlab/gitlab-rails/shared/artifacts + object_store: + enabled: false + direct_upload: false + background_upload: true + proxy_download: false + remote_directory: "artifacts" + connection: {} + + ## Git LFS + lfs: + enabled: + # The location where LFS objects are stored (default: shared/lfs-objects). + storage_path: /var/opt/gitlab/gitlab-rails/shared/lfs-objects + object_store: + enabled: false + direct_upload: false + background_upload: true + proxy_download: false + remote_directory: "lfs-objects" + connection: {} + + ## Uploads + uploads: + # The location where uploads objects are stored (default: public/). + storage_path: /opt/gitlab/embedded/service/gitlab-rails/public + object_store: + enabled: false + direct_upload: false + background_upload: true + proxy_download: false + remote_directory: "uploads" + connection: {} + + ## Container Registry + registry: + enabled: false + host: + port: + api_url: # internal address to the registry, will be used by GitLab to directly communicate with API + path: + key: /var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key + issuer: omnibus-gitlab-issuer + + mattermost: + enabled: false + host: + + ## GitLab Pages + pages: + enabled: false + path: /var/opt/gitlab/gitlab-rails/shared/pages + host: + port: + https: false + external_http: null + external_https: null + artifacts_server: true + + ## Gravatar + ## For Libravatar see: https://docs.gitlab.com/ce/customization/libravatar.html + gravatar: + # gravatar urls: possible placeholders: %{hash} %{size} %{email} + plain_url: # default: http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon + ssl_url: # default: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon + + ## Sidekiq + sidekiq: + log_format: default + + ## Auxiliary jobs + # Periodically executed jobs, to self-heal GitLab, do external synchronizations, etc. + # Please read here for more information: https://github.com/ondrejbartas/sidekiq-cron#adding-cron-job + cron_jobs: + # Flag stuck CI builds as failed + stuck_ci_jobs_worker: + cron: + # Remove expired build artifacts + expire_build_artifacts_worker: + cron: + # Schedule pipelines in the near future + pipeline_schedule_worker: + cron: + # Periodically run 'git fsck' on all repositories. If started more than + # once per hour you will have concurrent 'git fsck' jobs. + repository_check_worker: + cron: + # Send admin emails once a week + admin_email_worker: + cron: + + # Remove outdated repository archives + repository_archive_cache_worker: + cron: + + # Verify custom GitLab Pages domains + pages_domain_verification_cron_worker: + cron: + + ## + # GitLab EE only jobs: + + # Snapshot active users statistics + + # In addition to refreshing users when they log in, + # periodically refresh LDAP users membership. + # NOTE: This will only take effect if LDAP is enabled + + # GitLab LDAP group sync worker + # NOTE: This will only take effect if LDAP is enabled + + # GitLab Geo repository sync worker + # NOTE: This will only take effect if Geo is enabled + + # GitLab Geo file download dispatch worker + # NOTE: This will only take effect if Geo is enabled + + # GitLab Geo repository verification primary batch worker + # NOTE: This will only take effect if Geo is enabled + + # GitLab Geo repository verification secondary scheduler worker + # NOTE: This will only take effect if Geo is enabled + + # GitLab Geo migrated local files clean up worker + # NOTE: This will only take effect if Geo is enabled (secondary nodes only) + + # + # 2. GitLab CI settings + # ========================== + + gitlab_ci: + # Default project notifications settings: + # + # Send emails only on broken builds (default: true) + all_broken_builds: + # + # Add pusher to recipients list (default: false) + add_pusher: + + # The location where build traces are stored (default: builds/). Relative paths are relative to Rails.root + builds_path: /var/opt/gitlab/gitlab-ci/builds + + # + # 3. Auth settings + # ========================== + + ## LDAP settings + # You can inspect a sample of the LDAP users with login access by running: + # bundle exec rake gitlab:ldap:check RAILS_ENV=production + ldap: + enabled: false + sync_time: + host: + port: + uid: + method: # "tls" or "ssl" or "plain" + bind_dn: + password: + active_directory: + allow_username_or_email_login: + lowercase_usernames: + base: + user_filter: + + ## EE only + group_base: + admin_group: + sync_ssh_keys: + sync_time: + + ## Kerberos settings + kerberos: + # Allow the HTTP Negotiate authentication method for Git clients + enabled: + + # Kerberos 5 keytab file. The keytab file must be readable by the GitLab user, + # and should be different from other keytabs in the system. + # (default: use default keytab from Krb5 config) + keytab: + + # The Kerberos service name to be used by GitLab. + # (default: accept any service name in keytab file) + service_principal_name: + + # Dedicated port: Git before 2.4 does not fall back to Basic authentication if Negotiate fails. + # To support both Basic and Negotiate methods with older versions of Git, configure + # nginx to proxy GitLab on an extra port (e.g. 8443) and uncomment the following lines + # to dedicate this port to Kerberos authentication. (default: false) + use_dedicated_port: + port: + https: + + + ## OmniAuth settings + omniauth: + # Allow login via Twitter, Google, etc. using OmniAuth providers + enabled: false + + # Uncomment this to automatically sign in with a specific omniauth provider's without + # showing GitLab's sign-in page (default: show the GitLab sign-in page) + auto_sign_in_with_provider: + + # Sync user's email address from the specified Omniauth provider every time the user logs + # in (default: nil). And consequently make this field read-only. + + # Sync user's profile from the specified Omniauth providers every time the user logs in (default: empty). + # Define the allowed providers using an array, e.g. ["cas3", "saml", "twitter"], + # or as true/false to allow all providers or none. + # sync_profile_from_provider: [] + + # Select which info to sync from the providers above. (default: email). + # Define the synced profile info using an array. Available options are "name", "email" and "location" + # e.g. ["name", "email", "location"] or as true to sync all available. + # This consequently will make the selected attributes read-only. + # sync_profile_attributes: true + + # CAUTION! + # This allows users to login without having a user account first. Define the allowed + # providers using an array, e.g. ["saml", "twitter"] + # User accounts will be created automatically when authentication was successful. + allow_single_sign_on: ["saml"] + + # Locks down those users until they have been cleared by the admin (default: true). + block_auto_created_users: + # Look up new users in LDAP servers. If a match is found (same uid), automatically + # link the omniauth identity with the LDAP account. (default: false) + auto_link_ldap_user: + + # Allow users with existing accounts to login and auto link their account via SAML + # login, without having to do a manual login first and manually add SAML + # (default: false) + auto_link_saml_user: null + + # Set different Omniauth providers as external so that all users creating accounts + # via these providers will not be able to have access to internal projects. You + # will need to use the full name of the provider, like `google_oauth2` for Google. + # Refer to the examples below for the full names of the supported providers. + # (default: []) + external_providers: null + + ## Auth providers + # Uncomment the following lines and fill in the data of the auth provider you want to use + # If your favorite auth provider is not listed you can use others: + # see https://github.com/gitlabhq/gitlab-public-wiki/wiki/Custom-omniauth-provider-configurations + # The 'app_id' and 'app_secret' parameters are always passed as the first two + # arguments, followed by optional 'args' which can be either a hash or an array. + # Documentation for this is available at https://docs.gitlab.com/ce/integration/omniauth.html + providers: + # - { name: 'google_oauth2', app_id: 'YOUR APP ID', + # app_secret: 'YOUR APP SECRET', + # args: { access_type: 'offline', approval_prompt: '' } } + # - { name: 'twitter', app_id: 'YOUR APP ID', + # app_secret: 'YOUR APP SECRET'} + # - { name: 'github', app_id: 'YOUR APP ID', + # app_secret: 'YOUR APP SECRET', + # args: { scope: 'user:email' } } + + # Shared file storage settings + shared: + path: /var/opt/gitlab/gitlab-rails/shared + + # Gitaly settings + # This setting controls whether GitLab uses Gitaly + # Eventually Gitaly use will become mandatory and + # this option will disappear. + gitaly: + client_path: /opt/gitlab/embedded/bin + token: "" + + + # + # 4. Advanced settings + # ========================== + + ## Repositories settings + repositories: + # Paths where repositories can be stored. Give the canonicalized absolute pathname. + # NOTE: REPOS PATHS MUST NOT CONTAIN ANY SYMLINK!!! + storages: {"default":{"path":"/var/opt/gitlab/git-data/repositories","gitaly_address":"unix:/var/opt/gitlab/gitaly/gitaly.socket"}} + + ## Backup settings + backup: + path: "/var/opt/gitlab/backups" # Relative paths are relative to Rails.root (default: tmp/backups/) + archive_permissions: # Permissions for the resulting backup.tar file (default: 0600) + keep_time: # default: 0 (forever) (in seconds) + pg_schema: # default: nil, it means that all schemas will be backed up + upload: + # Fog storage connection settings, see http://fog.io/storage/ . + connection: + # The remote 'directory' to store your backups. For S3, this would be the bucket name. + remote_directory: + multipart_chunk_size: + encryption: + storage_class: + + ## GitLab Shell settings + gitlab_shell: + path: /opt/gitlab/embedded/service/gitlab-shell/ + hooks_path: /opt/gitlab/embedded/service/gitlab-shell/hooks/ + + # Git over HTTP + upload_pack: + receive_pack: + + # If you use non-standard ssh port you need to specify it + ssh_port: + + # Git import/fetch timeout + git_timeout: 10800 + + ## Git settings + # CAUTION! + # Use the default values unless you really know what you are doing + git: + bin_path: /opt/gitlab/embedded/bin/git + + monitoring: + # Time between sampling of unicorn socket metrics, in seconds + unicorn_sampler_interval: 10 + # IP whitelist controlling access to monitoring endpoints + ip_whitelist: + - 127.0.0.0/8 + # Sidekiq exporter is webserver built in to Sidekiq to expose Prometheus metrics + sidekiq_exporter: + enabled: true + address: 127.0.0.1 + port: 8082 + + # + # 5. Extra customization + # ========================== + + extra: + + + rack_attack: + git_basic_auth: + + +development: + <<: *base + +test: + <<: *base + gravatar: + enabled: true + gitlab: + host: localhost + port: 80 + + # When you run tests we clone and setup gitlab-shell + # In order to setup it correctly you need to specify + # your system username you use to run GitLab + # user: YOUR_USERNAME + repositories: + storages: + default: { "path": "tmp/tests/repositories/" } + gitlab_shell: + path: tmp/tests/gitlab-shell/ + hooks_path: tmp/tests/gitlab-shell/hooks/ + issues_tracker: + redmine: + title: "Redmine" + project_url: "http://redmine/projects/:issues_tracker_id" + issues_url: "http://redmine/:project_id/:issues_tracker_id/:id" + new_issue_url: "http://redmine/projects/:issues_tracker_id/issues/new" + jira: + title: "JIRA" + url: https://samplecompany.example.net + project_key: PROJECT + ldap: + enabled: false + servers: + main: + label: ldap + host: 127.0.0.1 + port: 3890 + uid: 'uid' + method: 'plain' # "tls" or "ssl" or "plain" + base: 'dc=example,dc=com' + user_filter: '' + group_base: 'ou=groups,dc=example,dc=com' + admin_group: '' + sync_ssh_keys: false + +staging: + <<: *base - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml * templatesymlink[Create a rack_attack.rb and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create - create new file /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb - update content in file /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb from none to a61b95 --- /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb 2018-06-22 15:40:41.404411308 +0900 +++ /var/opt/gitlab/gitlab-rails/etc/.chef-rack_attack20180622-11711-19km3d6.rb 2018-06-22 15:40:41.404411308 +0900 @@ -1 +1,32 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +# 1. Rename this file to rack_attack.rb +# 2. Review the paths_to_be_protected and add any other path you need protecting +# + +paths_to_be_protected = [ + "#{Rails.application.config.relative_url_root}/users/password", + "#{Rails.application.config.relative_url_root}/users/sign_in", + "#{Rails.application.config.relative_url_root}/api/#{API::API.version}/session.json", + "#{Rails.application.config.relative_url_root}/api/#{API::API.version}/session", + "#{Rails.application.config.relative_url_root}/users", + "#{Rails.application.config.relative_url_root}/users/confirmation", + "#{Rails.application.config.relative_url_root}/unsubscribes/", + "#{Rails.application.config.relative_url_root}/import/github/personal_access_token", +] + +# Create one big regular expression that matches strings starting with any of +# the paths_to_be_protected. +paths_regex = Regexp.union(paths_to_be_protected.map { |path| /\A#{Regexp.escape(path)}/ }) +rack_attack_enabled = Gitlab.config.rack_attack.git_basic_auth['enabled'] + +unless Rails.env.test? || !rack_attack_enabled + Rack::Attack.throttle('protected paths', limit: 10, period: 60.seconds) do |req| + if req.post? && req.path =~ paths_regex + req.ip + end + end +end - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create - create new file /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret from none to 8afc03 - suppressed sensitive resource - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create - create new file /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret from none to 33395a - suppressed sensitive resource - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date) * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create * directory[/opt/gitlab/etc/gitlab-rails/env] action create - create new directory /opt/gitlab/etc/gitlab-rails/env * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create - create new file /opt/gitlab/etc/gitlab-rails/env/HOME - update content in file /opt/gitlab/etc/gitlab-rails/env/HOME from none to 205bb9 --- /opt/gitlab/etc/gitlab-rails/env/HOME 2018-06-22 15:40:41.452409669 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-HOME20180622-11711-1r5n42e 2018-06-22 15:40:41.452409669 +0900 @@ -1 +1,2 @@ +/var/opt/gitlab * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create - create new file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV - update content in file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV from none to ab8e18 --- /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV 2018-06-22 15:40:41.456409533 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-RAILS_ENV20180622-11711-1baxywj 2018-06-22 15:40:41.456409533 +0900 @@ -1 +1,2 @@ +production * file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create - create new file /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD - update content in file /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD from none to f79114 --- /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD 2018-06-22 15:40:41.460409396 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-LD_PRELOAD20180622-11711-fguhbv 2018-06-22 15:40:41.460409396 +0900 @@ -1 +1,2 @@ +/opt/gitlab/embedded/lib/libjemalloc.so * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create - create new file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS - update content in file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS from none to 6cce36 --- /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS 2018-06-22 15:40:41.460409396 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-SIDEKIQ_MEMORY_KILLER_MAX_RSS20180622-11711-w3tmzx 2018-06-22 15:40:41.460409396 +0900 @@ -1 +1,2 @@ +1000000 * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create - create new file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE - update content in file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE from none to 28d586 --- /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE 2018-06-22 15:40:41.464409260 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-BUNDLE_GEMFILE20180622-11711-1xmpl3 2018-06-22 15:40:41.464409260 +0900 @@ -1 +1,2 @@ +/opt/gitlab/embedded/service/gitlab-rails/Gemfile * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create - create new file /opt/gitlab/etc/gitlab-rails/env/PATH - update content in file /opt/gitlab/etc/gitlab-rails/env/PATH from none to d5dc07 --- /opt/gitlab/etc/gitlab-rails/env/PATH 2018-06-22 15:40:41.468409123 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-PATH20180622-11711-tpmftl 2018-06-22 15:40:41.468409123 +0900 @@ -1 +1,2 @@ +/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create - create new file /opt/gitlab/etc/gitlab-rails/env/ICU_DATA - update content in file /opt/gitlab/etc/gitlab-rails/env/ICU_DATA from none to a04260 --- /opt/gitlab/etc/gitlab-rails/env/ICU_DATA 2018-06-22 15:40:41.472408987 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-ICU_DATA20180622-11711-obvgsv 2018-06-22 15:40:41.472408987 +0900 @@ -1 +1,2 @@ +/opt/gitlab/embedded/share/icu/current * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create - create new file /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH - update content in file /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH from none to 990cc2 --- /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH 2018-06-22 15:40:41.472408987 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-PYTHONPATH20180622-11711-2ztm97 2018-06-22 15:40:41.472408987 +0900 @@ -1 +1,2 @@ +/opt/gitlab/embedded/lib/python3.4/site-packages * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create - create new file /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME - update content in file /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME from none to 75081b --- /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME 2018-06-22 15:40:41.476408850 +0900 +++ /opt/gitlab/etc/gitlab-rails/env/.chef-EXECJS_RUNTIME20180622-11711-1bop7vx 2018-06-22 15:40:41.476408850 +0900 @@ -1 +1,2 @@ +Disabled * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/tmp to /var/opt/gitlab/gitlab-rails/tmp * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/public/uploads to /var/opt/gitlab/gitlab-rails/uploads * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create - create symlink at /opt/gitlab/embedded/service/gitlab-rails/log to /var/log/gitlab/gitlab-rails * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create - create symlink at /var/log/gitlab/gitlab-rails/sidekiq.log to /var/log/gitlab/sidekiq/current * file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create - change owner from 'root' to 'git' * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create - create new file /var/opt/gitlab/gitlab-rails/VERSION - update content in file /var/opt/gitlab/gitlab-rails/VERSION from none to c1f384 --- /var/opt/gitlab/gitlab-rails/VERSION 2018-06-22 15:40:41.492408304 +0900 +++ /var/opt/gitlab/gitlab-rails/.chef-VERSION20180622-11711-lpvb23 2018-06-22 15:40:41.488408441 +0900 @@ -1 +1,2 @@ +10.8.4 * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create - create new file /var/opt/gitlab/gitlab-rails/REVISION - update content in file /var/opt/gitlab/gitlab-rails/REVISION from none to d0b175 --- /var/opt/gitlab/gitlab-rails/REVISION 2018-06-22 15:40:41.492408304 +0900 +++ /var/opt/gitlab/gitlab-rails/.chef-REVISION20180622-11711-15uchv 2018-06-22 15:40:41.492408304 +0900 @@ -1 +1,2 @@ +2268d0c * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create - create new file /var/opt/gitlab/gitlab-rails/RUBY_VERSION - update content in file /var/opt/gitlab/gitlab-rails/RUBY_VERSION from none to 3dd12e --- /var/opt/gitlab/gitlab-rails/RUBY_VERSION 2018-06-22 15:40:41.496408168 +0900 +++ /var/opt/gitlab/gitlab-rails/.chef-RUBY_VERSION20180622-11711-1sqi4vu 2018-06-22 15:40:41.496408168 +0900 @@ -1 +1,2 @@ +ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-linux] * execute[chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public] action run - execute chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date) Recipe: gitlab::add_trusted_certs * directory[/etc/gitlab/trusted-certs] action create - create new directory /etc/gitlab/trusted-certs - change mode from '' to '0755' * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date) * file[/opt/gitlab/embedded/ssl/certs/README] action create - create new file /opt/gitlab/embedded/ssl/certs/README - update content in file /opt/gitlab/embedded/ssl/certs/README from none to 623059 --- /opt/gitlab/embedded/ssl/certs/README 2018-06-22 15:40:41.556406120 +0900 +++ /opt/gitlab/embedded/ssl/certs/.chef-README20180622-11711-1saih90 2018-06-22 15:40:41.556406120 +0900 @@ -1 +1,4 @@ +This directory is managed by omnibus-gitlab. + Any file placed in this directory will be ignored +. Place certificates in /etc/gitlab/trusted-certs. - change mode from '' to '0644' * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run * Moving existing certificates found in /opt/gitlab/embedded/ssl/certs * Symlinking existing certificates found in /etc/gitlab/trusted-certs - execute the ruby block Move existing certs and link to /opt/gitlab/embedded/ssl/certs Recipe: gitlab::default * service[create a temporary unicorn service] action nothing (skipped due to action :nothing) * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing) * service[create a temporary mailroom service] action nothing (skipped due to action :nothing) Recipe: runit::systemd * directory[/usr/lib/systemd/system] action create - create new directory /usr/lib/systemd/system * cookbook_file[/usr/lib/systemd/system/gitlab-runsvdir.service] action create - create new file /usr/lib/systemd/system/gitlab-runsvdir.service - update content in file /usr/lib/systemd/system/gitlab-runsvdir.service from none to bf758a --- /usr/lib/systemd/system/gitlab-runsvdir.service 2018-06-22 15:40:41.632403526 +0900 +++ /usr/lib/systemd/system/.chef-gitlab-runsvdir20180622-11711-x4sgyi.service 2018-06-22 15:40:41.632403526 +0900 @@ -1 +1,11 @@ +[Unit] +Description=GitLab Runit supervision process +After=basic.target + +[Service] +ExecStart=/opt/gitlab/embedded/bin/runsvdir-start +Restart=always + +[Install] +WantedBy=basic.target - change mode from '' to '0644' * execute[systemctl daemon-reload] action run - execute systemctl daemon-reload * execute[systemctl enable gitlab-runsvdir] action run [execute] Created symlink from /etc/systemd/system/basic.target.wants/gitlab-runsvdir.service to /usr/lib/systemd/system/gitlab-runsvdir.service. - execute systemctl enable gitlab-runsvdir * execute[systemctl start gitlab-runsvdir] action run - execute systemctl start gitlab-runsvdir * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date) * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing) * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing) * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing) Recipe: gitlab::redis * account[user and group for redis] action create * group[user and group for redis] action create - create group gitlab-redis * linux_user[user and group for redis] action create - create user gitlab-redis * group[Socket group] action create (up to date) * directory[/var/opt/gitlab/redis] action create - create new directory /var/opt/gitlab/redis - change mode from '' to '0750' - change owner from '' to 'gitlab-redis' - change group from '' to 'git' * directory[/var/log/gitlab/redis] action create - create new directory /var/log/gitlab/redis - change mode from '' to '0700' - change owner from '' to 'gitlab-redis' * template[/var/opt/gitlab/redis/redis.conf] action create - create new file /var/opt/gitlab/redis/redis.conf - update content in file /var/opt/gitlab/redis/redis.conf from none to d493be --- /var/opt/gitlab/redis/redis.conf 2018-06-22 15:40:42.056389081 +0900 +++ /var/opt/gitlab/redis/.chef-redis20180622-11711-9xg440.conf 2018-06-22 15:40:42.056389081 +0900 @@ -1 +1,1062 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +# Redis configuration file example. +# +# Note that in order to read the configuration file, Redis must be +# started with the file path as first argument: +# +# ./redis-server /path/to/redis.conf + +# Note on units: when memory size is needed, it is possible to specify +# it in the usual form of 1k 5GB 4M and so forth: +# +# 1k => 1000 bytes +# 1kb => 1024 bytes +# 1m => 1000000 bytes +# 1mb => 1024*1024 bytes +# 1g => 1000000000 bytes +# 1gb => 1024*1024*1024 bytes +# +# units are case insensitive so 1GB 1Gb 1gB are all the same. + +################################## INCLUDES ################################### + +# Include one or more other config files here. This is useful if you +# have a standard template that goes to all Redis servers but also need +# to customize a few per-server settings. Include files can include +# other files, so use this wisely. +# +# Notice option "include" won't be rewritten by command "CONFIG REWRITE" +# from admin or Redis Sentinel. Since Redis always uses the last processed +# line as value of a configuration directive, you'd better put includes +# at the beginning of this file to avoid overwriting config change at runtime. +# +# If instead you are interested in using includes to override configuration +# options, it is better to use include as the last line. +# +# include /path/to/local.conf +# include /path/to/other.conf + +################################## NETWORK ##################################### + +# By default, if no "bind" configuration directive is specified, Redis listens +# for connections from all the network interfaces available on the server. +# It is possible to listen to just one or multiple selected interfaces using +# the "bind" configuration directive, followed by one or more IP addresses. +# +# Examples: +# +# bind 192.168.1.100 10.0.0.1 +# bind 127.0.0.1 ::1 +# +# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the +# internet, binding to all the interfaces is dangerous and will expose the +# instance to everybody on the internet. So by default we uncomment the +# following bind directive, that will force Redis to listen only into +# the IPv4 lookback interface address (this means Redis will be able to +# accept connections only from clients running into the same computer it +# is running). +# +# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES +# JUST COMMENT THE FOLLOWING LINE. +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +bind 127.0.0.1 + +# Protected mode is a layer of security protection, in order to avoid that +# Redis instances left open on the internet are accessed and exploited. +# +# When protected mode is on and if: +# +# 1) The server is not binding explicitly to a set of addresses using the +# "bind" directive. +# 2) No password is configured. +# +# The server only accepts connections from clients connecting from the +# IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain +# sockets. +# +# By default protected mode is enabled. You should disable it only if +# you are sure you want clients from other hosts to connect to Redis +# even if no authentication is configured, nor a specific set of interfaces +# are explicitly listed using the "bind" directive. +# protected-mode yes + +# Accept connections on the specified port, default is 6379 (IANA #815344). +# If port 0 is specified Redis will not listen on a TCP socket. +port 0 + +# TCP listen() backlog. +# +# In high requests-per-second environments you need an high backlog in order +# to avoid slow clients connections issues. Note that the Linux kernel +# will silently truncate it to the value of /proc/sys/net/core/somaxconn so +# make sure to raise both the value of somaxconn and tcp_max_syn_backlog +# in order to get the desired effect. +# tcp-backlog 511 + +# Unix socket. +# +# Specify the path for the Unix socket that will be used to listen for +# incoming connections. There is no default, so Redis will not listen +# on a unix socket when not specified. +# +unixsocket /var/opt/gitlab/redis/redis.socket +unixsocketperm 777 + +# Close the connection after a client is idle for N seconds (0 to disable) +timeout 60 + +# TCP keepalive. +# +# If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence +# of communication. This is useful for two reasons: +# +# 1) Detect dead peers. +# 2) Take the connection alive from the point of view of network +# equipment in the middle. +# +# On Linux, the specified value (in seconds) is the period used to send ACKs. +# Note that to close the connection the double of the time is needed. +# On other kernels the period depends on the kernel configuration. +# +# A reasonable value for this option is 300 seconds, which is the new +# Redis default starting with Redis 3.2.1. +tcp-keepalive 300 + +################################# GENERAL ##################################### + +# By default Redis does not run as a daemon. Use 'yes' if you need it. +# Note that Redis will write a pid file in /var/run/redis.pid when daemonized. +daemonize no + +# If you run Redis from upstart or systemd, Redis can interact with your +# supervision tree. Options: +# supervised no - no supervision interaction +# supervised upstart - signal upstart by putting Redis into SIGSTOP mode +# supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET +# supervised auto - detect upstart or systemd method based on +# UPSTART_JOB or NOTIFY_SOCKET environment variables +# Note: these supervision methods only signal "process is ready." +# They do not enable continuous liveness pings back to your supervisor. +# supervised no + +# If a pid file is specified, Redis writes it where specified at startup +# and removes it at exit. +# +# When the server runs non daemonized, no pid file is created if none is +# specified in the configuration. When the server is daemonized, the pid file +# is used even if not specified, defaulting to "/var/run/redis.pid". +# +# Creating a pid file is best effort: if Redis is not able to create it +# nothing bad happens, the server will start and run normally. +pidfile "/var/run/redis_0.pid" + +# Specify the server verbosity level. +# This can be one of: +# debug (a lot of information, useful for development/testing) +# verbose (many rarely useful info, but not a mess like the debug level) +# notice (moderately verbose, what you want in production probably) +# warning (only very important / critical messages are logged) +loglevel notice + +# Specify the log file name. Also the empty string can be used to force +# Redis to log on the standard output. Note that if you use standard +# output for logging but daemonize, logs will be sent to /dev/null +logfile "" + +# To enable logging to the system logger, just set 'syslog-enabled' to yes, +# and optionally update the other syslog parameters to suit your needs. +# syslog-enabled no + +# Specify the syslog identity. +# syslog-ident redis + +# Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7. +# syslog-facility local0 + +# Set the number of databases. The default database is DB 0, you can select +# a different one on a per-connection basis using SELECT <dbid> where +# dbid is a number between 0 and 'databases'-1 +databases 16 + +################################ SNAPSHOTTING ################################ +# +# Save the DB on disk: +# +# save <seconds> <changes> +# +# Will save the DB if both the given number of seconds and the given +# number of write operations against the DB occurred. +# +# In the example below the behaviour will be to save: +# after 900 sec (15 min) if at least 1 key changed +# after 300 sec (5 min) if at least 10 keys changed +# after 60 sec if at least 10000 keys changed +# +# Note: you can disable saving completely by commenting out all "save" lines. +# +# It is also possible to remove all the previously configured save +# points by adding a save directive with a single empty string argument +# like in the following example: +# +# save "" + +save 900 1 +save 300 10 +save 60 10000 + +# By default Redis will stop accepting writes if RDB snapshots are enabled +# (at least one save point) and the latest background save failed. +# This will make the user aware (in a hard way) that data is not persisting +# on disk properly, otherwise chances are that no one will notice and some +# disaster will happen. +# +# If the background saving process will start working again Redis will +# automatically allow writes again. +# +# However if you have setup your proper monitoring of the Redis server +# and persistence, you may want to disable this feature so that Redis will +# continue to work as usual even if there are problems with disk, +# permissions, and so forth. +stop-writes-on-bgsave-error yes + +# Compress string objects using LZF when dump .rdb databases? +# For default that's set to 'yes' as it's almost always a win. +# If you want to save some CPU in the saving child set it to 'no' but +# the dataset will likely be bigger if you have compressible values or keys. +rdbcompression yes + +# Since version 5 of RDB a CRC64 checksum is placed at the end of the file. +# This makes the format more resistant to corruption but there is a performance +# hit to pay (around 10%) when saving and loading RDB files, so you can disable it +# for maximum performances. +# +# RDB files created with checksum disabled have a checksum of zero that will +# tell the loading code to skip the check. +rdbchecksum yes + +# The filename where to dump the DB +dbfilename "dump.rdb" + +# The working directory. +# +# The DB will be written inside this directory, with the filename specified +# above using the 'dbfilename' configuration directive. +# +# The Append Only File will also be created inside this directory. +# +# Note that you must specify a directory here, not a file name. +dir "/var/opt/gitlab/redis" + +################################# REPLICATION ################################# + +# Master-Slave replication. Use slaveof to make a Redis instance a copy of +# another Redis server. A few things to understand ASAP about Redis replication. +# +# 1) Redis replication is asynchronous, but you can configure a master to +# stop accepting writes if it appears to be not connected with at least +# a given number of slaves. +# 2) Redis slaves are able to perform a partial resynchronization with the +# master if the replication link is lost for a relatively small amount of +# time. You may want to configure the replication backlog size (see the next +# sections of this file) with a sensible value depending on your needs. +# 3) Replication is automatic and does not need user intervention. After a +# network partition slaves automatically try to reconnect to masters +# and resynchronize with them. +# +# slaveof <masterip> <masterport> + + +# If the master is password protected (using the "requirepass" configuration +# directive below) it is possible to tell the slave to authenticate before +# starting the replication synchronization process, otherwise the master will +# refuse the slave request. +# +# masterauth <master-password> + + +# When a slave loses its connection with the master, or when the replication +# is still in progress, the slave can act in two different ways: +# +# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will +# still reply to client requests, possibly with out of date data, or the +# data set may just be empty if this is the first synchronization. +# +# 2) if slave-serve-stale-data is set to 'no' the slave will reply with +# an error "SYNC with master in progress" to all the kind of commands +# but to INFO and SLAVEOF. +# +slave-serve-stale-data yes + +# You can configure a slave instance to accept writes or not. Writing against +# a slave instance may be useful to store some ephemeral data (because data +# written on a slave will be easily deleted after resync with the master) but +# may also cause problems if clients are writing to it because of a +# misconfiguration. +# +# Since Redis 2.6 by default slaves are read-only. +# +# Note: read only slaves are not designed to be exposed to untrusted clients +# on the internet. It's just a protection layer against misuse of the instance. +# Still a read only slave exports by default all the administrative commands +# such as CONFIG, DEBUG, and so forth. To a limited extent you can improve +# security of read only slaves using 'rename-command' to shadow all the +# administrative / dangerous commands. +slave-read-only yes + +# Replication SYNC strategy: disk or socket. +# +# ------------------------------------------------------- +# WARNING: DISKLESS REPLICATION IS EXPERIMENTAL CURRENTLY +# ------------------------------------------------------- +# +# New slaves and reconnecting slaves that are not able to continue the replication +# process just receiving differences, need to do what is called a "full +# synchronization". An RDB file is transmitted from the master to the slaves. +# The transmission can happen in two different ways: +# +# 1) Disk-backed: The Redis master creates a new process that writes the RDB +# file on disk. Later the file is transferred by the parent +# process to the slaves incrementally. +# 2) Diskless: The Redis master creates a new process that directly writes the +# RDB file to slave sockets, without touching the disk at all. +# +# With disk-backed replication, while the RDB file is generated, more slaves +# can be queued and served with the RDB file as soon as the current child producing +# the RDB file finishes its work. With diskless replication instead once +# the transfer starts, new slaves arriving will be queued and a new transfer +# will start when the current one terminates. +# +# When diskless replication is used, the master waits a configurable amount of +# time (in seconds) before starting the transfer in the hope that multiple slaves +# will arrive and the transfer can be parallelized. +# +# With slow disks and fast (large bandwidth) networks, diskless replication +# works better. +# repl-diskless-sync no + +# When diskless replication is enabled, it is possible to configure the delay +# the server waits in order to spawn the child that transfers the RDB via socket +# to the slaves. +# +# This is important since once the transfer starts, it is not possible to serve +# new slaves arriving, that will be queued for the next RDB transfer, so the server +# waits a delay in order to let more slaves arrive. +# +# The delay is specified in seconds, and by default is 5 seconds. To disable +# it entirely just set it to 0 seconds and the transfer will start ASAP. +# repl-diskless-sync-delay 5 + +# Slaves send PINGs to server in a predefined interval. It's possible to change +# this interval with the repl_ping_slave_period option. The default value is 10 +# seconds. +# +# repl-ping-slave-period 10 + +# The following option sets the replication timeout for: +# +# 1) Bulk transfer I/O during SYNC, from the point of view of slave. +# 2) Master timeout from the point of view of slaves (data, pings). +# 3) Slave timeout from the point of view of masters (REPLCONF ACK pings). +# +# It is important to make sure that this value is greater than the value +# specified for repl-ping-slave-period otherwise a timeout will be detected +# every time there is low traffic between the master and the slave. +# +# repl-timeout 60 + +# Disable TCP_NODELAY on the slave socket after SYNC? +# +# If you select "yes" Redis will use a smaller number of TCP packets and +# less bandwidth to send data to slaves. But this can add a delay for +# the data to appear on the slave side, up to 40 milliseconds with +# Linux kernels using a default configuration. +# +# If you select "no" the delay for data to appear on the slave side will +# be reduced but more bandwidth will be used for replication. +# +# By default we optimize for low latency, but in very high traffic conditions +# or when the master and slaves are many hops away, turning this to "yes" may +# be a good idea. +repl-disable-tcp-nodelay no + +# Set the replication backlog size. The backlog is a buffer that accumulates +# slave data when slaves are disconnected for some time, so that when a slave +# wants to reconnect again, often a full resync is not needed, but a partial +# resync is enough, just passing the portion of data the slave missed while +# disconnected. +# +# The bigger the replication backlog, the longer the time the slave can be +# disconnected and later be able to perform a partial resynchronization. +# +# The backlog is only allocated once there is at least a slave connected. +# +# repl-backlog-size 1mb + +# After a master has no longer connected slaves for some time, the backlog +# will be freed. The following option configures the amount of seconds that +# need to elapse, starting from the time the last slave disconnected, for +# the backlog buffer to be freed. +# +# A value of 0 means to never release the backlog. +# +# repl-backlog-ttl 3600 + +# The slave priority is an integer number published by Redis in the INFO output. +# It is used by Redis Sentinel in order to select a slave to promote into a +# master if the master is no longer working correctly. +# +# A slave with a low priority number is considered better for promotion, so +# for instance if there are three slaves with priority 10, 100, 25 Sentinel will +# pick the one with priority 10, that is the lowest. +# +# However a special priority of 0 marks the slave as not able to perform the +# role of master, so a slave with priority of 0 will never be selected by +# Redis Sentinel for promotion. +# +# By default the priority is 100. +slave-priority 100 + +# It is possible for a master to stop accepting writes if there are less than +# N slaves connected, having a lag less or equal than M seconds. +# +# The N slaves need to be in "online" state. +# +# The lag in seconds, that must be <= the specified value, is calculated from +# the last ping received from the slave, that is usually sent every second. +# +# This option does not GUARANTEE that N replicas will accept the write, but +# will limit the window of exposure for lost writes in case not enough slaves +# are available, to the specified number of seconds. +# +# For example to require at least 3 slaves with a lag <= 10 seconds use: +# +# min-slaves-to-write 3 +# min-slaves-max-lag 10 +# +# Setting one or the other to 0 disables the feature. +# +# By default min-slaves-to-write is set to 0 (feature disabled) and +# min-slaves-max-lag is set to 10. + +# A Redis master is able to list the address and port of the attached +# slaves in different ways. For example the "INFO replication" section +# offers this information, which is used, among other tools, by +# Redis Sentinel in order to discover slave instances. +# Another place where this info is available is in the output of the +# "ROLE" command of a masteer. +# +# The listed IP and address normally reported by a slave is obtained +# in the following way: +# +# IP: The address is auto detected by checking the peer address +# of the socket used by the slave to connect with the master. +# +# Port: The port is communicated by the slave during the replication +# handshake, and is normally the port that the slave is using to +# list for connections. +# +# However when port forwarding or Network Address Translation (NAT) is +# used, the slave may be actually reachable via different IP and port +# pairs. The following two options can be used by a slave in order to +# report to its master a specific set of IP and port, so that both INFO +# and ROLE will report those values. +# +# There is no need to use both the options if you need to override just +# the port or the IP address. +# + + + +################################## SECURITY ################################### + +# Require clients to issue AUTH <PASSWORD> before processing any other +# commands. This might be useful in environments in which you do not trust +# others with access to the host running redis-server. +# +# This should stay commented out for backward compatibility and because most +# people do not need auth (e.g. they run their own servers). +# +# Warning: since Redis is pretty fast an outside user can try up to +# 150k passwords per second against a good box. This means that you should +# use a very strong password otherwise it will be very easy to break. +# + + +# Command renaming. +# +# It is possible to change the name of dangerous commands in a shared +# environment. For instance the CONFIG command may be renamed into something +# hard to guess so that it will still be available for internal-use tools +# but not available for general clients. +# +# Example: +# +# rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52 +# +# It is also possible to completely kill a command by renaming it into +# an empty string: +# +# rename-command CONFIG "" +# +# Please note that changing the name of commands that are logged into the +# AOF file or transmitted to slaves may cause problems. + +################################### LIMITS #################################### + +# Set the max number of connected clients at the same time. By default +# this limit is set to 10000 clients, however if the Redis server is not +# able to configure the process file limit to allow for the specified limit +# the max number of allowed clients is set to the current file limit +# minus 32 (as Redis reserves a few file descriptors for internal uses). +# +# Once the limit is reached Redis will close all the new connections sending +# an error 'max number of clients reached'. +# +maxclients 10000 + +# Don't use more memory than the specified amount of bytes. +# When the memory limit is reached Redis will try to remove keys +# according to the eviction policy selected (see maxmemory-policy). +# +# If Redis can't remove keys according to the policy, or if the policy is +# set to 'noeviction', Redis will start to reply with errors to commands +# that would use more memory, like SET, LPUSH, and so on, and will continue +# to reply to read-only commands like GET. +# +# This option is usually useful when using Redis as an LRU cache, or to set +# a hard memory limit for an instance (using the 'noeviction' policy). +# +# WARNING: If you have slaves attached to an instance with maxmemory on, +# the size of the output buffers needed to feed the slaves are subtracted +# from the used memory count, so that network problems / resyncs will +# not trigger a loop where keys are evicted, and in turn the output +# buffer of slaves is full with DELs of keys evicted triggering the deletion +# of more keys, and so forth until the database is completely emptied. +# +# In short... if you have slaves attached it is suggested that you set a lower +# limit for maxmemory so that there is some free RAM on the system for slave +# output buffers (but this is not needed if the policy is 'noeviction'). +# +# maxmemory <bytes> +maxmemory 0 + +# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory +# is reached. You can select among five behaviors: +# +# volatile-lru -> remove the key with an expire set using an LRU algorithm +# allkeys-lru -> remove any key according to the LRU algorithm +# volatile-random -> remove a random key with an expire set +# allkeys-random -> remove a random key, any key +# volatile-ttl -> remove the key with the nearest expire time (minor TTL) +# noeviction -> don't expire at all, just return an error on write operations +# +# Note: with any of the above policies, Redis will return an error on write +# operations, when there are no suitable keys for eviction. +# +# At the date of writing these commands are: set setnx setex append +# incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd +# sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby +# zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby +# getset mset msetnx exec sort +# +# The default is: +# +# maxmemory-policy noeviction +maxmemory-policy noeviction + +# LRU and minimal TTL algorithms are not precise algorithms but approximated +# algorithms (in order to save memory), so you can tune it for speed or +# accuracy. For default Redis will check five keys and pick the one that was +# used less recently, you can change the sample size using the following +# configuration directive. +# +# The default of 5 produces good enough results. 10 Approximates very closely +# true LRU but costs a bit more CPU. 3 is very fast but not very accurate. +# +# maxmemory-samples 5 +maxmemory-samples 5 + +############################## APPEND ONLY MODE ############################### + +# By default Redis asynchronously dumps the dataset on disk. This mode is +# good enough in many applications, but an issue with the Redis process or +# a power outage may result into a few minutes of writes lost (depending on +# the configured save points). +# +# The Append Only File is an alternative persistence mode that provides +# much better durability. For instance using the default data fsync policy +# (see later in the config file) Redis can lose just one second of writes in a +# dramatic event like a server power outage, or a single write if something +# wrong with the Redis process itself happens, but the operating system is +# still running correctly. +# +# AOF and RDB persistence can be enabled at the same time without problems. +# If the AOF is enabled on startup Redis will load the AOF, that is the file +# with the better durability guarantees. +# +# Please check http://redis.io/topics/persistence for more information. + +appendonly no + +# The name of the append only file (default: "appendonly.aof") + +# appendfilename "appendonly.aof" + +# The fsync() call tells the Operating System to actually write data on disk +# instead of waiting for more data in the output buffer. Some OS will really flush +# data on disk, some other OS will just try to do it ASAP. +# +# Redis supports three different modes: +# +# no: don't fsync, just let the OS flush the data when it wants. Faster. +# always: fsync after every write to the append only log. Slow, Safest. +# everysec: fsync only one time every second. Compromise. +# +# The default is "everysec", as that's usually the right compromise between +# speed and data safety. It's up to you to understand if you can relax this to +# "no" that will let the operating system flush the output buffer when +# it wants, for better performances (but if you can live with the idea of +# some data loss consider the default persistence mode that's snapshotting), +# or on the contrary, use "always" that's very slow but a bit safer than +# everysec. +# +# More details please check the following article: +# http://antirez.com/post/redis-persistence-demystified.html +# +# If unsure, use "everysec". + +# appendfsync always +appendfsync everysec +# appendfsync no + +# When the AOF fsync policy is set to always or everysec, and a background +# saving process (a background save or AOF log background rewriting) is +# performing a lot of I/O against the disk, in some Linux configurations +# Redis may block too long on the fsync() call. Note that there is no fix for +# this currently, as even performing fsync in a different thread will block +# our synchronous write(2) call. +# +# In order to mitigate this problem it's possible to use the following option +# that will prevent fsync() from being called in the main process while a +# BGSAVE or BGREWRITEAOF is in progress. +# +# This means that while another child is saving, the durability of Redis is +# the same as "appendfsync none". In practical terms, this means that it is +# possible to lose up to 30 seconds of log in the worst scenario (with the +# default Linux settings). +# +# If you have latency problems turn this to "yes". Otherwise leave it as +# "no" that is the safest pick from the point of view of durability. + +no-appendfsync-on-rewrite no + +# Automatic rewrite of the append only file. +# Redis is able to automatically rewrite the log file implicitly calling +# BGREWRITEAOF when the AOF log size grows by the specified percentage. +# +# This is how it works: Redis remembers the size of the AOF file after the +# latest rewrite (if no rewrite has happened since the restart, the size of +# the AOF at startup is used). +# +# This base size is compared to the current size. If the current size is +# bigger than the specified percentage, the rewrite is triggered. Also +# you need to specify a minimal size for the AOF file to be rewritten, this +# is useful to avoid rewriting the AOF file even if the percentage increase +# is reached but it is still pretty small. +# +# Specify a percentage of zero in order to disable the automatic AOF +# rewrite feature. + +auto-aof-rewrite-percentage 100 +auto-aof-rewrite-min-size 64mb + +# An AOF file may be found to be truncated at the end during the Redis +# startup process, when the AOF data gets loaded back into memory. +# This may happen when the system where Redis is running +# crashes, especially when an ext4 filesystem is mounted without the +# data=ordered option (however this can't happen when Redis itself +# crashes or aborts but the operating system still works correctly). +# +# Redis can either exit with an error when this happens, or load as much +# data as possible (the default now) and start if the AOF file is found +# to be truncated at the end. The following option controls this behavior. +# +# If aof-load-truncated is set to yes, a truncated AOF file is loaded and +# the Redis server starts emitting a log to inform the user of the event. +# Otherwise if the option is set to no, the server aborts with an error +# and refuses to start. When the option is set to no, the user requires +# to fix the AOF file using the "redis-check-aof" utility before to restart +# the server. +# +# Note that if the AOF file will be found to be corrupted in the middle +# the server will still exit with an error. This option only applies when +# Redis will try to read more data from the AOF file but not enough bytes +# will be found. +# aof-load-truncated yes + +################################ LUA SCRIPTING ############################### + +# Max execution time of a Lua script in milliseconds. +# +# If the maximum execution time is reached Redis will log that a script is +# still in execution after the maximum allowed time and will start to +# reply to queries with an error. +# +# When a long running script exceeds the maximum execution time only the +# SCRIPT KILL and SHUTDOWN NOSAVE commands are available. The first can be +# used to stop a script that did not yet called write commands. The second +# is the only way to shut down the server in the case a write command was +# already issued by the script but the user doesn't want to wait for the natural +# termination of the script. +# +# Set it to 0 or a negative value for unlimited execution without warnings. +lua-time-limit 5000 + +################################ REDIS CLUSTER ############################### +# +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# WARNING EXPERIMENTAL: Redis Cluster is considered to be stable code, however +# in order to mark it as "mature" we need to wait for a non trivial percentage +# of users to deploy it in production. +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# +# Normal Redis instances can't be part of a Redis Cluster; only nodes that are +# started as cluster nodes can. In order to start a Redis instance as a +# cluster node enable the cluster support uncommenting the following: +# +# cluster-enabled yes + +# Every cluster node has a cluster configuration file. This file is not +# intended to be edited by hand. It is created and updated by Redis nodes. +# Every Redis Cluster node requires a different cluster configuration file. +# Make sure that instances running in the same system do not have +# overlapping cluster configuration file names. +# +# cluster-config-file nodes-6379.conf + +# Cluster node timeout is the amount of milliseconds a node must be unreachable +# for it to be considered in failure state. +# Most other internal time limits are multiple of the node timeout. +# +# cluster-node-timeout 15000 + +# A slave of a failing master will avoid to start a failover if its data +# looks too old. +# +# There is no simple way for a slave to actually have a exact measure of +# its "data age", so the following two checks are performed: +# +# 1) If there are multiple slaves able to failover, they exchange messages +# in order to try to give an advantage to the slave with the best +# replication offset (more data from the master processed). +# Slaves will try to get their rank by offset, and apply to the start +# of the failover a delay proportional to their rank. +# +# 2) Every single slave computes the time of the last interaction with +# its master. This can be the last ping or command received (if the master +# is still in the "connected" state), or the time that elapsed since the +# disconnection with the master (if the replication link is currently down). +# If the last interaction is too old, the slave will not try to failover +# at all. +# +# The point "2" can be tuned by user. Specifically a slave will not perform +# the failover if, since the last interaction with the master, the time +# elapsed is greater than: +# +# (node-timeout * slave-validity-factor) + repl-ping-slave-period +# +# So for example if node-timeout is 30 seconds, and the slave-validity-factor +# is 10, and assuming a default repl-ping-slave-period of 10 seconds, the +# slave will not try to failover if it was not able to talk with the master +# for longer than 310 seconds. +# +# A large slave-validity-factor may allow slaves with too old data to failover +# a master, while a too small value may prevent the cluster from being able to +# elect a slave at all. +# +# For maximum availability, it is possible to set the slave-validity-factor +# to a value of 0, which means, that slaves will always try to failover the +# master regardless of the last time they interacted with the master. +# (However they'll always try to apply a delay proportional to their +# offset rank). +# +# Zero is the only value able to guarantee that when all the partitions heal +# the cluster will always be able to continue. +# +# cluster-slave-validity-factor 10 + +# Cluster slaves are able to migrate to orphaned masters, that are masters +# that are left without working slaves. This improves the cluster ability +# to resist to failures as otherwise an orphaned master can't be failed over +# in case of failure if it has no working slaves. +# +# Slaves migrate to orphaned masters only if there are still at least a +# given number of other working slaves for their old master. This number +# is the "migration barrier". A migration barrier of 1 means that a slave +# will migrate only if there is at least 1 other working slave for its master +# and so forth. It usually reflects the number of slaves you want for every +# master in your cluster. +# +# Default is 1 (slaves migrate only if their masters remain with at least +# one slave). To disable migration just set it to a very large value. +# A value of 0 can be set but is useful only for debugging and dangerous +# in production. +# +# cluster-migration-barrier 1 + +# By default Redis Cluster nodes stop accepting queries if they detect there +# is at least an hash slot uncovered (no available node is serving it). +# This way if the cluster is partially down (for example a range of hash slots +# are no longer covered) all the cluster becomes, eventually, unavailable. +# It automatically returns available as soon as all the slots are covered again. +# +# However sometimes you want the subset of the cluster which is working, +# to continue to accept queries for the part of the key space that is still +# covered. In order to do so, just set the cluster-require-full-coverage +# option to no. +# +# cluster-require-full-coverage yes + +# In order to setup your cluster make sure to read the documentation +# available at http://redis.io web site. + +################################## SLOW LOG ################################### + +# The Redis Slow Log is a system to log queries that exceeded a specified +# execution time. The execution time does not include the I/O operations +# like talking with the client, sending the reply and so forth, +# but just the time needed to actually execute the command (this is the only +# stage of command execution where the thread is blocked and can not serve +# other requests in the meantime). +# +# You can configure the slow log with two parameters: one tells Redis +# what is the execution time, in microseconds, to exceed in order for the +# command to get logged, and the other parameter is the length of the +# slow log. When a new command is logged the oldest one is removed from the +# queue of logged commands. + +# The following time is expressed in microseconds, so 1000000 is equivalent +# to one second. Note that a negative number disables the slow log, while +# a value of zero forces the logging of every command. +slowlog-log-slower-than 10000 + +# There is no limit to this length. Just be aware that it will consume memory. +# You can reclaim memory used by the slow log with SLOWLOG RESET. +slowlog-max-len 128 + +################################ LATENCY MONITOR ############################## + +# The Redis latency monitoring subsystem samples different operations +# at runtime in order to collect data related to possible sources of +# latency of a Redis instance. +# +# Via the LATENCY command this information is available to the user that can +# print graphs and obtain reports. +# +# The system only logs operations that were performed in a time equal or +# greater than the amount of milliseconds specified via the +# latency-monitor-threshold configuration directive. When its value is set +# to zero, the latency monitor is turned off. +# +# By default latency monitoring is disabled since it is mostly not needed +# if you don't have latency issues, and collecting data has a performance +# impact, that while very small, can be measured under big load. Latency +# monitoring can easily be enabled at runtime using the command +# "CONFIG SET latency-monitor-threshold <milliseconds>" if needed. +# latency-monitor-threshold 0 + +############################# EVENT NOTIFICATION ############################## + +# Redis can notify Pub/Sub clients about events happening in the key space. +# This feature is documented at http://redis.io/topics/notifications +# +# For instance if keyspace events notification is enabled, and a client +# performs a DEL operation on key "foo" stored in the Database 0, two +# messages will be published via Pub/Sub: +# +# PUBLISH __keyspace@0__:foo del +# PUBLISH __keyevent@0__:del foo +# +# It is possible to select the events that Redis will notify among a set +# of classes. Every class is identified by a single character: +# +# K Keyspace events, published with __keyspace@<db>__ prefix. +# E Keyevent events, published with __keyevent@<db>__ prefix. +# g Generic commands (non-type specific) like DEL, EXPIRE, RENAME, ... +# $ String commands +# l List commands +# s Set commands +# h Hash commands +# z Sorted set commands +# x Expired events (events generated every time a key expires) +# e Evicted events (events generated when a key is evicted for maxmemory) +# A Alias for g$lshzxe, so that the "AKE" string means all the events. +# +# The "notify-keyspace-events" takes as argument a string that is composed +# of zero or multiple characters. The empty string means that notifications +# are disabled. +# +# Example: to enable list and generic events, from the point of view of the +# event name, use: +# +# notify-keyspace-events Elg +# +# Example 2: to get the stream of the expired keys subscribing to channel +# name __keyevent@0__:expired use: +# +# notify-keyspace-events Ex +# +# By default all notifications are disabled because most users don't need +# this feature and the feature has some overhead. Note that if you don't +# specify at least one of K or E, no events will be delivered. +notify-keyspace-events "" + +############################### ADVANCED CONFIG ############################### + +# Hashes are encoded using a memory efficient data structure when they have a +# small number of entries, and the biggest entry does not exceed a given +# threshold. These thresholds can be configured using the following directives. +hash-max-ziplist-entries 512 +hash-max-ziplist-value 64 + +# Lists are also encoded in a special way to save a lot of space. +# The number of entries allowed per internal list node can be specified +# as a fixed maximum size or a maximum number of elements. +# For a fixed maximum size, use -5 through -1, meaning: +# -5: max size: 64 Kb <-- not recommended for normal workloads +# -4: max size: 32 Kb <-- not recommended +# -3: max size: 16 Kb <-- probably not recommended +# -2: max size: 8 Kb <-- good +# -1: max size: 4 Kb <-- good +# Positive numbers mean store up to _exactly_ that number of elements +# per list node. +# The highest performing option is usually -2 (8 Kb size) or -1 (4 Kb size), +# but if your use case is unique, adjust the settings as necessary. +# list-max-ziplist-size -2 + +# Lists may also be compressed. +# Compress depth is the number of quicklist ziplist nodes from *each* side of +# the list to *exclude* from compression. The head and tail of the list +# are always uncompressed for fast push/pop operations. Settings are: +# 0: disable all list compression +# 1: depth 1 means "don't start compressing until after 1 node into the list, +# going from either the head or tail" +# So: [head]->node->node->...->node->[tail] +# [head], [tail] will always be uncompressed; inner nodes will compress. +# 2: [head]->[next]->node->node->...->node->[prev]->[tail] +# 2 here means: don't compress head or head->next or tail->prev or tail, +# but compress all nodes between them. +# 3: [head]->[next]->[next]->node->node->...->node->[prev]->[prev]->[tail] +# etc. +# list-compress-depth 0 + +# Sets have a special encoding in just one case: when a set is composed +# of just strings that happen to be integers in radix 10 in the range +# of 64 bit signed integers. +# The following configuration setting sets the limit in the size of the +# set in order to use this special memory saving encoding. +set-max-intset-entries 512 + +# Similarly to hashes and lists, sorted sets are also specially encoded in +# order to save a lot of space. This encoding is only used when the length and +# elements of a sorted set are below the following limits: +zset-max-ziplist-entries 128 +zset-max-ziplist-value 64 + +# HyperLogLog sparse representation bytes limit. The limit includes the +# 16 bytes header. When an HyperLogLog using the sparse representation crosses +# this limit, it is converted into the dense representation. +# +# A value greater than 16000 is totally useless, since at that point the +# dense representation is more memory efficient. +# +# The suggested value is ~ 3000 in order to have the benefits of +# the space efficient encoding without slowing down too much PFADD, +# which is O(N) with the sparse encoding. The value can be raised to +# ~ 10000 when CPU is not a concern, but space is, and the data set is +# composed of many HyperLogLogs with cardinality in the 0 - 15000 range. +# hll-sparse-max-bytes 3000 + +# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in +# order to help rehashing the main Redis hash table (the one mapping top-level +# keys to values). The hash table implementation Redis uses (see dict.c) +# performs a lazy rehashing: the more operation you run into a hash table +# that is rehashing, the more rehashing "steps" are performed, so if the +# server is idle the rehashing is never complete and some more memory is used +# by the hash table. +# +# The default is to use this millisecond 10 times every second in order to +# actively rehash the main dictionaries, freeing memory when possible. +# +# If unsure: +# use "activerehashing no" if you have hard latency requirements and it is +# not a good thing in your environment that Redis can reply from time to time +# to queries with 2 milliseconds delay. +# +# use "activerehashing yes" if you don't have such hard requirements but +# want to free memory asap when possible. +activerehashing yes + +# The client output buffer limits can be used to force disconnection of clients +# that are not reading data from the server fast enough for some reason (a +# common reason is that a Pub/Sub client can't consume messages as fast as the +# publisher can produce them). +# +# The limit can be set differently for the three different classes of clients: +# +# normal -> normal clients including MONITOR clients +# slave -> slave clients +# pubsub -> clients subscribed to at least one pubsub channel or pattern +# +# The syntax of every client-output-buffer-limit directive is the following: +# +# client-output-buffer-limit <class> <hard limit> <soft limit> <soft seconds> +# +# A client is immediately disconnected once the hard limit is reached, or if +# the soft limit is reached and remains reached for the specified number of +# seconds (continuously). +# So for instance if the hard limit is 32 megabytes and the soft limit is +# 16 megabytes / 10 seconds, the client will get disconnected immediately +# if the size of the output buffers reach 32 megabytes, but will also get +# disconnected if the client reaches 16 megabytes and continuously overcomes +# the limit for 10 seconds. +# +# By default normal clients are not limited because they don't receive data +# without asking (in a push way), but just after a request, so only +# asynchronous clients may create a scenario where data is requested faster +# than it can read. +# +# Instead there is a default limit for pubsub and slave clients, since +# subscribers and slaves receive data in a push fashion. +# +# Both the hard or the soft limit can be disabled by setting them to zero. +client-output-buffer-limit normal 0 0 0 +client-output-buffer-limit slave 256mb 64mb 60 +client-output-buffer-limit pubsub 32mb 8mb 60 + +# Redis calls an internal function to perform many background tasks, like +# closing connections of clients in timeout, purging expired keys that are +# never requested, and so forth. +# +# Not all tasks are performed with the same frequency, but Redis checks for +# tasks to perform according to the specified "hz" value. +# +# By default "hz" is set to 10. Raising the value will use more CPU when +# Redis is idle, but at the same time will make Redis more responsive when +# there are many keys expiring at the same time, and timeouts may be +# handled with more precision. +# +# The range is between 1 and 500, however a value over 100 is usually not +# a good idea. Most users should use the default of 10 and raise this up to +# 100 only in environments where very low latency is required. +hz 10 + +# When a child rewrites the AOF file, if the following option is enabled +# the file will be fsync-ed every 32 MB of data generated. This is useful +# in order to commit the file to the disk more incrementally and avoid +# big latency spikes. +aof-rewrite-incremental-fsync yes - change mode from '' to '0644' - change owner from '' to 'gitlab-redis' * directory[/opt/gitlab/sv/redis] action create - create new directory /opt/gitlab/sv/redis - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/redis/log] action create - create new directory /opt/gitlab/sv/redis/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/redis/log/main] action create - create new directory /opt/gitlab/sv/redis/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/redis/run] action create - create new file /opt/gitlab/sv/redis/run - update content in file /opt/gitlab/sv/redis/run from none to 535f80 --- /opt/gitlab/sv/redis/run 2018-06-22 15:40:42.152385849 +0900 +++ /opt/gitlab/sv/redis/.chef-run20180622-11711-1n9hvkl 2018-06-22 15:40:42.152385849 +0900 @@ -1 +1,6 @@ +#!/bin/sh +exec 2>&1 + +umask 077 +exec chpst -P -U gitlab-redis -u gitlab-redis /opt/gitlab/embedded/bin/redis-server /var/opt/gitlab/redis/redis.conf - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/redis/log/run] action create - create new file /opt/gitlab/sv/redis/log/run - update content in file /opt/gitlab/sv/redis/log/run from none to af1017 --- /opt/gitlab/sv/redis/log/run 2018-06-22 15:40:42.160385579 +0900 +++ /opt/gitlab/sv/redis/log/.chef-run20180622-11711-v4ruxi 2018-06-22 15:40:42.160385579 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/redis - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/redis/config] action create - create new file /var/log/gitlab/redis/config - update content in file /var/log/gitlab/redis/config from none to 623c00 --- /var/log/gitlab/redis/config 2018-06-22 15:40:42.188384636 +0900 +++ /var/log/gitlab/redis/.chef-config20180622-11711-czwcp1 2018-06-22 15:40:42.188384636 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload redis svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart redis svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/redis/down] action delete (up to date) * link[/opt/gitlab/init/redis] action create - create symlink at /opt/gitlab/init/redis to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/redis] action create - create symlink at /opt/gitlab/service/redis to /opt/gitlab/sv/redis * ruby_block[supervise_redis_sleep] action run - execute the ruby block supervise_redis_sleep * directory[/opt/gitlab/sv/redis/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/redis/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/redis/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/log/supervise/control] action touch (skipped due to only_if) * service[redis] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start redis] action run [execute] ok: run: redis: (pid 12505) 1s - execute /opt/gitlab/bin/gitlab-ctl start redis Recipe: postgresql::user * account[Postgresql user and group] action create * group[Postgresql user and group] action create - create group gitlab-psql * linux_user[Postgresql user and group] action create - create user gitlab-psql Recipe: postgresql::enable * directory[/var/opt/gitlab/postgresql] action create - create new directory /var/opt/gitlab/postgresql - change mode from '' to '0755' - change owner from '' to 'gitlab-psql' * directory[/var/opt/gitlab/postgresql/data] action create - create new directory /var/opt/gitlab/postgresql/data - change mode from '' to '0700' - change owner from '' to 'gitlab-psql' * directory[/var/log/gitlab/postgresql] action create - create new directory /var/log/gitlab/postgresql - change mode from '' to '0700' - change owner from '' to 'gitlab-psql' * link[/var/opt/gitlab/postgresql/data] action create (skipped due to not_if) * file[/var/opt/gitlab/postgresql/.profile] action create - create new file /var/opt/gitlab/postgresql/.profile - update content in file /var/opt/gitlab/postgresql/.profile from none to 3b0387 --- /var/opt/gitlab/postgresql/.profile 2018-06-22 15:40:48.172190246 +0900 +++ /var/opt/gitlab/postgresql/.chef-.profile20180622-11711-1pmvcxc.profile 2018-06-22 15:40:48.172190246 +0900 @@ -1 +1,2 @@ +PATH=/opt/gitlab/embedded/bin:/opt/gitlab/bin:$PATH - change mode from '' to '0600' - change owner from '' to 'gitlab-psql' * sysctl[kernel.shmmax] action create * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create - create new file /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf - update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf from none to 75a195 --- /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf 2018-06-22 15:40:48.196189501 +0900 +++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-kernel20180622-11711-xn923l.shmmax.conf 2018-06-22 15:40:48.196189501 +0900 @@ -1 +1,2 @@ +kernel.shmmax = 17179869184 * execute[load sysctl conf kernel.shmmax] action run [execute] kernel.printk = 4 4 1 7 net.ipv6.conf.all.use_tempaddr = 2 net.ipv6.conf.default.use_tempaddr = 2 kernel.kptr_restrict = 1 fs.protected_hardlinks = 1 fs.protected_symlinks = 1 fs.inotify.max_user_instances = 1024 kernel.sysrq = 176 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.all.rp_filter = 1 net.ipv4.tcp_syncookies = 1 kernel.yama.ptrace_scope = 1 vm.mmap_min_addr = 65536 - execute cat /etc/sysctl.conf /etc/sysctl.d/*.conf | sysctl -e -p - * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create - create symlink at /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf to /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf * file[delete /etc/sysctl.d/90-postgresql.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.shmmax] action delete (skipped due to only_if) * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing) * sysctl[kernel.shmall] action create * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create - create new file /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf - update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf from none to 6d765d --- /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf 2018-06-22 15:40:48.252187761 +0900 +++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-kernel20180622-11711-1qke0ea.shmall.conf 2018-06-22 15:40:48.252187761 +0900 @@ -1 +1,2 @@ +kernel.shmall = 4194304 * execute[load sysctl conf kernel.shmall] action run [execute] kernel.printk = 4 4 1 7 net.ipv6.conf.all.use_tempaddr = 2 net.ipv6.conf.default.use_tempaddr = 2 kernel.kptr_restrict = 1 fs.protected_hardlinks = 1 fs.protected_symlinks = 1 fs.inotify.max_user_instances = 1024 kernel.sysrq = 176 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.all.rp_filter = 1 net.ipv4.tcp_syncookies = 1 kernel.yama.ptrace_scope = 1 vm.mmap_min_addr = 65536 kernel.shmmax = 17179869184 - execute cat /etc/sysctl.conf /etc/sysctl.d/*.conf | sysctl -e -p - * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create - create symlink at /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf to /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf * file[delete /etc/sysctl.d/90-postgresql.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.shmall] action delete (skipped due to only_if) * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing) * sysctl[kernel.sem] action create * directory[create /etc/sysctl.d for kernel.sem] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create - create new file /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf - update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf from none to 09a346 --- /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf 2018-06-22 15:40:48.280186892 +0900 +++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-kernel20180622-11711-652ry4.sem.conf 2018-06-22 15:40:48.280186892 +0900 @@ -1 +1,2 @@ +kernel.sem = 250 32000 32 262 * execute[load sysctl conf kernel.sem] action run [execute] kernel.printk = 4 4 1 7 net.ipv6.conf.all.use_tempaddr = 2 net.ipv6.conf.default.use_tempaddr = 2 kernel.kptr_restrict = 1 fs.protected_hardlinks = 1 fs.protected_symlinks = 1 fs.inotify.max_user_instances = 1024 kernel.sysrq = 176 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.all.rp_filter = 1 net.ipv4.tcp_syncookies = 1 kernel.yama.ptrace_scope = 1 vm.mmap_min_addr = 65536 kernel.shmall = 4194304 kernel.shmmax = 17179869184 - execute cat /etc/sysctl.conf /etc/sysctl.d/*.conf | sysctl -e -p - * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create - create symlink at /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf to /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf * file[delete /etc/sysctl.d/90-postgresql.conf kernel.sem] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.sem] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.sem] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.sem] action delete (skipped due to only_if) * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run [execute] The files belonging to this database system will be owned by user "gitlab-psql". This user must also own the server process. The database cluster will be initialized with locale "en_US.UTF-8". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory /var/opt/gitlab/postgresql/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting dynamic shared memory implementation ... posix creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok Success. You can now start the database server using: /opt/gitlab/embedded/bin/pg_ctl -D /var/opt/gitlab/postgresql/data -l logfile start WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. - execute /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 * file[/var/opt/gitlab/postgresql/data/server.crt] action create - create new file /var/opt/gitlab/postgresql/data/server.crt - update content in file /var/opt/gitlab/postgresql/data/server.crt from none to afae02 - suppressed sensitive resource - change mode from '' to '0400' - change owner from '' to 'gitlab-psql' - change group from '' to 'gitlab-psql' * file[/var/opt/gitlab/postgresql/data/server.key] action create - create new file /var/opt/gitlab/postgresql/data/server.key - update content in file /var/opt/gitlab/postgresql/data/server.key from none to 812d0a - suppressed sensitive resource - change mode from '' to '0400' - change owner from '' to 'gitlab-psql' - change group from '' to 'gitlab-psql' * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create - update content in file /var/opt/gitlab/postgresql/data/postgresql.conf from 565923 to f4b749 --- /var/opt/gitlab/postgresql/data/postgresql.conf 2018-06-22 15:40:48.388183538 +0900 +++ /var/opt/gitlab/postgresql/data/.chef-postgresql20180622-11711-qu10ch.conf 2018-06-22 15:40:49.704142956 +0900 @@ -1,3 +1,7 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + # ----------------------------- # PostgreSQL configuration file # ----------------------------- @@ -27,7 +31,7 @@ # Memory units: kB = kilobytes Time units: ms = milliseconds # MB = megabytes s = seconds # GB = gigabytes min = minutes -# TB = terabytes h = hours +# h = hours # d = days @@ -38,16 +42,16 @@ # 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) +#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) +#external_pid_file = '(none)' # write an extra PID file + # (change requires restart) #------------------------------------------------------------------------------ @@ -56,52 +60,57 @@ # - Connection Settings - -#listen_addresses = 'localhost' # 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) -#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) +listen_addresses = '' # what IP address(es) to listen on; + # comma-separated list of addresses; + # defaults to 'localhost', '*' = all + # (change requires restart) +port = 5432 # (change requires restart) +max_connections = 200 # (change requires restart) +# Note: Increasing max_connections costs ~400 bytes of shared memory per +# connection slot, plus lock space (see max_locks_per_transaction). +#superuser_reserved_connections = 3 # (change requires restart) +unix_socket_directories = '/var/opt/gitlab/postgresql' # (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) # - Security and Authentication - -#authentication_timeout = 1min # 1s-600s -#ssl = off # (change requires restart) -#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers - # (change requires restart) -#ssl_prefer_server_ciphers = on # (change requires restart) -#ssl_ecdh_curve = 'prime256v1' # (change requires restart) -#ssl_cert_file = 'server.crt' # (change requires restart) -#ssl_key_file = 'server.key' # (change requires restart) -#ssl_ca_file = '' # (change requires restart) -#ssl_crl_file = '' # (change requires restart) +#authentication_timeout = 1min # 1s-600s + +# change requires restart +ssl = on + +# allowed SSL ciphers +ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL:!SSLv3:!TLSv1' + +ssl_cert_file = 'server.crt' +ssl_key_file = 'server.key' +ssl_ca_file = '/opt/gitlab/embedded/ssl/certs/cacert.pem' + + +#ssl_renegotiation_limit = 512MB # amount of data between renegotiations #password_encryption = on #db_user_namespace = off -#row_security = on -# GSSAPI using Kerberos +# Kerberos and GSSAPI #krb_server_keyfile = '' +#krb_srvname = 'postgres' # (Kerberos only) #krb_caseins_users = off # - TCP Keepalives - # see "man 7 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_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 #------------------------------------------------------------------------------ @@ -110,63 +119,40 @@ # - Memory - -shared_buffers = 128MB # min 128kB - # (change requires restart) -#huge_pages = try # on, off, or try - # (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 -#maintenance_work_mem = 64MB # min 1MB -#replacement_sort_tuples = 150000 # limits use of replacement selection sort -#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem -#max_stack_depth = 2MB # min 100kB -dynamic_shared_memory_type = posix # the default is the first option - # supported by the operating system: - # posix - # sysv - # windows - # mmap - # use none to disable dynamic shared memory - # (change requires restart) +shared_buffers = 987MB # min 128kB + # (change requires restart) +#temp_buffers = 8MB # min 800kB +#max_prepared_transactions = 0 # zero disables the feature + # (change requires restart) +# Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory +# per transaction slot, plus lock space (see max_locks_per_transaction). +# It is not advisable to set max_prepared_transactions nonzero unless you +# actively intend to use prepared transactions. +#max_stack_depth = 2MB # min 100kB -# - Disk - - -#temp_file_limit = -1 # limits per-process temp file space - # in kB, or -1 for no limit - # - Kernel Resource Usage - -#max_files_per_process = 1000 # min 25 - # (change requires restart) -#shared_preload_libraries = '' # (change requires restart) +#max_files_per_process = 1000 # min 25 + # (change requires restart) +shared_preload_libraries = '' # (change requires restart) # - Cost-Based Vacuum Delay - -#vacuum_cost_delay = 0 # 0-100 milliseconds -#vacuum_cost_page_hit = 1 # 0-10000 credits -#vacuum_cost_page_miss = 10 # 0-10000 credits -#vacuum_cost_page_dirty = 20 # 0-10000 credits -#vacuum_cost_limit = 200 # 1-10000 credits +#vacuum_cost_delay = 0ms # 0-100 milliseconds +#vacuum_cost_page_hit = 1 # 0-10000 credits +#vacuum_cost_page_miss = 10 # 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 # 0-1000 max buffers written/round -#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round -#bgwriter_flush_after = 512kB # measured in pages, 0 disables +#bgwriter_delay = 200ms # 10-10000ms between rounds +#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round +#bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round # - Asynchronous Behavior - -#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching -#max_worker_processes = 8 # (change requires restart) -#max_parallel_workers_per_gather = 0 # taken from max_worker_processes -#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate - # (change requires restart) -#backend_flush_after = 0 # measured in pages, 0 disables +#effective_io_concurrency = 1 # 1-1000. 0 disables prefetching #------------------------------------------------------------------------------ @@ -175,103 +161,62 @@ # - Settings - -#wal_level = minimal # 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) - # fsync - # fsync_writethrough - # open_sync -#full_page_writes = on # recover from partial page writes -#wal_compression = off # enable compression of full-page writes -#wal_log_hints = off # also do full page writes of non-critical updates - # (change requires restart) -#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_level = minimal + # (change requires restart) +#fsync = on # turns forced synchronization on or off +#wal_sync_method = fsync # the default is the first option + # supported by the operating system: + # open_datasync + # fdatasync (default on Linux) + # fsync + # fsync_writethrough + # open_sync +#full_page_writes = on # recover from partial page writes +wal_buffers = -1 # -1 # min 32kB, -1 sets based on shared_buffers + # (change requires restart) +#wal_writer_delay = 200ms # 1-10000 milliseconds -#commit_delay = 0 # range 0-100000, in microseconds -#commit_siblings = 5 # range 1-1000 +#commit_delay = 0 # range 0-100000, in microseconds +#commit_siblings = 5 # range 1-1000 -# - Checkpoints - +min_wal_size = 80MB +max_wal_size = 1GB -#checkpoint_timeout = 5min # range 30s-1d -#max_wal_size = 1GB -#min_wal_size = 80MB -#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0 -#checkpoint_flush_after = 256kB # measured in pages, 0 disables -#checkpoint_warning = 30s # 0 disables +# The number of replication slots to reserve. +max_replication_slots = 0 + # - Archiving - -#archive_mode = off # enables archiving; off, on, or always - # (change requires restart) -#archive_command = '' # command to use to archive a logfile segment - # 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 logfile segment switch after this - # number of seconds; 0 disables +archive_mode = off # allows archiving to be done + # (change requires restart, also requires 'wal_level' of 'hot_standby' OR 'replica') - #------------------------------------------------------------------------------ # REPLICATION #------------------------------------------------------------------------------ -# - Sending Server(s) - - -# Set these on the master and on any standby that will send replication data. - -#max_wal_senders = 0 # max number of walsender processes - # (change requires restart) -#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables -#wal_sender_timeout = 60s # in milliseconds; 0 disables - -#max_replication_slots = 0 # max number of replication slots - # (change requires restart) -#track_commit_timestamp = off # collect timestamp of transaction commit - # (change requires restart) - # - Master Server - -# These settings are ignored on a standby server. +# These settings are ignored on a standby server -#synchronous_standby_names = '' # standby servers that provide sync rep - # number of sync standbys and comma-separated list of application_name - # from standby(s); '*' = all -#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed +max_wal_senders = 0 + # (change requires restart) +#wal_sender_delay = 1s # walsender cycle time, 1-10000 milliseconds +#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed +#replication_timeout = 60s # in milliseconds; 0 disables +#synchronous_standby_names = '' # standby servers that provide sync rep + # comma-separated list of application_name + # from standby(s); '*' = all # - Standby Servers - -# These settings are ignored on a master server. +# These settings are ignored on a master server -#hot_standby = off # "on" allows 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_status_interval = 10s # send replies at least this often - # 0 disables -#hot_standby_feedback = off # send info from standby to prevent - # query conflicts -#wal_receiver_timeout = 60s # time that receiver waits for - # communication from master - # in milliseconds; 0 disables -#wal_retrieve_retry_interval = 5s # time to wait before retrying to - # retrieve WAL after a failed attempt +hot_standby = off + # (change requires restart) +#wal_receiver_status_interval = 10s # send replies at least this often + # 0 disables - #------------------------------------------------------------------------------ # QUERY TUNING #------------------------------------------------------------------------------ @@ -282,7 +227,6 @@ #enable_hashagg = on #enable_hashjoin = on #enable_indexscan = on -#enable_indexonlyscan = on #enable_material = on #enable_mergejoin = on #enable_nestloop = on @@ -292,35 +236,28 @@ # - 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_tuple_cost = 0.1 # same scale as above -#parallel_setup_cost = 1000.0 # same scale as above -#min_parallel_relation_size = 8MB -#effective_cache_size = 4GB +#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 # - 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 +#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 +#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 -#join_collapse_limit = 8 # 1 disables collapsing of explicit - # JOIN clauses -#force_parallel_mode = off +#join_collapse_limit = 8 # 1 disables collapsing of explicit + # JOIN clauses #------------------------------------------------------------------------------ @@ -329,144 +266,105 @@ # - Where to Log - -#log_destination = 'stderr' # Valid values are combinations of - # stderr, csvlog, syslog, and eventlog, - # depending on platform. csvlog - # requires logging_collector to be on. +#log_destination = 'stderr' # Valid values are combinations of + # stderr, csvlog, syslog, and eventlog, + # depending on platform. csvlog + # requires logging_collector to be on. # This is used when logging to stderr: -#logging_collector = off # Enable capturing of stderr and csvlog - # into log files. Required to be on for - # csvlogs. - # (change requires restart) +#logging_collector = off # Enable capturing of stderr and csvlog + # into log files. Required to be on for + # csvlogs. + # (change requires restart) # These are only used if logging_collector is on: -#log_directory = 'pg_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_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. -#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_directory = 'pg_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_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. +#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. # 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 (win32): -# (change requires restart) -#event_source = 'PostgreSQL' +#silent_mode = off # Run server silently. + # DO NOT USE without syslog or + # logging_collector + # (change requires restart) + # - When to Log - -#client_min_messages = notice # values in order of decreasing detail: - # debug5 - # debug4 - # debug3 - # debug2 - # debug1 - # log - # notice - # warning - # error +#client_min_messages = notice # values in order of decreasing detail: + # debug5 + # debug4 + # debug3 + # debug2 + # debug1 + # log + # notice + # warning + # error -#log_min_messages = warning # values in order of decreasing detail: - # debug5 - # debug4 - # debug3 - # debug2 - # debug1 - # info - # notice - # warning - # error - # log - # fatal - # panic +#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_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 - - # - What to Log - #debug_print_parse = off #debug_print_rewritten = off #debug_print_plan = off #debug_pretty_print = on -#log_checkpoints = off #log_connections = off #log_disconnections = off #log_duration = off -#log_error_verbosity = default # terse, default, or verbose messages +#log_error_verbosity = default # terse, default, or verbose messages #log_hostname = off -#log_line_prefix = '' # special values: - # %a = application name - # %u = user name - # %d = database name - # %r = remote host and port - # %h = remote host - # %p = process ID - # %t = timestamp without milliseconds - # %m = timestamp with milliseconds - # %n = timestamp with milliseconds (as a Unix epoch) - # %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_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 = 'ROK' +#log_lock_waits = off # log lock waits >= deadlock_timeout +#log_statement = 'none' # none, ddl, mod, all +#log_timezone = '(defaults to server environment setting)' -# - Process Title - - -#cluster_name = '' # added to process titles if nonempty - # (change requires restart) -#update_process_title = on - - #------------------------------------------------------------------------------ # RUNTIME STATISTICS #------------------------------------------------------------------------------ @@ -475,9 +373,9 @@ #track_activities = on #track_counts = on -#track_io_timing = off -#track_functions = none # none, pl, all -#track_activity_query_size = 1024 # (change requires restart) +#track_functions = none # none, pl, all +track_activity_query_size = 1024 # (change requires restart) +#update_process_title = on #stats_temp_directory = 'pg_stat_tmp' @@ -493,93 +391,50 @@ # AUTOVACUUM PARAMETERS #------------------------------------------------------------------------------ -#autovacuum = on # Enable autovacuum subprocess? 'on' - # requires track_counts to also be on. -#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and - # their durations, > 0 logs only - # actions running at least this number - # of milliseconds. -#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_analyze_threshold = 50 # min number of row updates before - # analyze -#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before 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 = 20ms # 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 - - +autovacuum_max_workers = 3 # max number of autovacuum subprocesses + # (change requires restart) +autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum + # (change requires restart) #------------------------------------------------------------------------------ # CLIENT CONNECTION DEFAULTS #------------------------------------------------------------------------------ # - Statement Behavior - -#search_path = '"$user", public' # schema names -#default_tablespace = '' # a tablespace name, '' uses the default -#temp_tablespaces = '' # a list of tablespace names, '' uses - # only default tablespace +#search_path = '"$user",public' # schema names +#default_tablespace = '' # a tablespace name, '' uses the default +#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 #vacuum_freeze_min_age = 50000000 #vacuum_freeze_table_age = 150000000 -#vacuum_multixact_freeze_min_age = 5000000 -#vacuum_multixact_freeze_table_age = 150000000 -#bytea_output = 'hex' # hex, escape +#bytea_output = 'hex' # hex, escape #xmlbinary = 'base64' #xmloption = 'content' -#gin_fuzzy_search_limit = 0 -#gin_pending_list_limit = 4MB # - Locale and Formatting - -datestyle = 'iso, mdy' #intervalstyle = 'postgres' -timezone = 'ROK' +#timezone = '(defaults to server environment setting)' #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 = 0 # min -15, max 3 -#client_encoding = sql_ascii # actually, defaults to database - # encoding + # abbreviations. Currently, there are + # Default + # Australia + # India + # You can create your own file in + # share/timezonesets/. +#extra_float_digits = 0 # min -15, max 3 +#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 - -# default configuration for text search -default_text_search_config = 'pg_catalog.english' - # - Other Defaults - #dynamic_library_path = '$libdir' #local_preload_libraries = '' -#session_preload_libraries = '' #------------------------------------------------------------------------------ @@ -587,12 +442,14 @@ #------------------------------------------------------------------------------ #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_locks_per_transaction = 128 # min 10 + # (change requires restart) +# Note: Each lock table slot uses ~270 bytes of shared memory, and there are +# max_locks_per_transaction * (max_connections + max_prepared_transactions) +# lock table slots. +#max_pred_locks_per_transaction = 64 # min 10 + # (change requires restart) - #------------------------------------------------------------------------------ # VERSION/PLATFORM COMPATIBILITY #------------------------------------------------------------------------------ @@ -600,11 +457,10 @@ # - Previous PostgreSQL Versions - #array_nulls = on -#backslash_quote = safe_encoding # on, off, or safe_encoding +#backslash_quote = safe_encoding # on, off, or safe_encoding #default_with_oids = off #escape_string_warning = on #lo_compat_privileges = off -#operator_precedence_warning = off #quote_all_identifiers = off #sql_inheritance = on #standard_conforming_strings = on @@ -619,26 +475,15 @@ # ERROR HANDLING #------------------------------------------------------------------------------ -#exit_on_error = off # terminate session on any error? -#restart_after_crash = on # reinitialize after backend crash? +#exit_on_error = off # terminate session on any error? +#restart_after_crash = on # reinitialize after backend crash? #------------------------------------------------------------------------------ -# CONFIG FILE INCLUDES -#------------------------------------------------------------------------------ - -# These options allow settings to be loaded from files other than the -# default postgresql.conf. - -#include_dir = 'conf.d' # include files ending in '.conf' from - # directory 'conf.d' -#include_if_exists = 'exists.conf' # include file only if it exists -#include = 'special.conf' # include file - - -#------------------------------------------------------------------------------ # CUSTOMIZED OPTIONS #------------------------------------------------------------------------------ -# Add settings for extensions here +#custom_variable_classes = '' # list of custom variable class names + +include 'runtime.conf' - change mode from '0600' to '0644' * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create - create new file /var/opt/gitlab/postgresql/data/runtime.conf - update content in file /var/opt/gitlab/postgresql/data/runtime.conf from none to d7aa05 --- /var/opt/gitlab/postgresql/data/runtime.conf 2018-06-22 15:40:49.812139648 +0900 +++ /var/opt/gitlab/postgresql/data/.chef-runtime20180622-11711-lmcy9n.conf 2018-06-22 15:40:49.812139648 +0900 @@ -1 +1,129 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +# Changing variables in this file should only require a reload of PostgreSQL +# As the gitlab-psql user, run: +# /opt/gitlab/embedded/bin/pg_ctl reload -D /var/opt/gitlab/postgresql/data +work_mem = 16MB # min 64kB +maintenance_work_mem = 16MB # 16MB # min 1MB +synchronous_commit = on # synchronization level; on, off, or local +synchronous_standby_names = '' + +# - Checkpoints - +min_wal_size = 80MB +max_wal_size = 1GB + +checkpoint_timeout = 5min # range 30s-1h, default 5min +checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0, default 0.5 +checkpoint_warning = 30s # 0 disables, default 30s + +# - Archiving - +archive_command = '' # command to use to archive a logfile segment +archive_timeout = 0 # force a logfile segment switch after this + # number of seconds; 0 disables + +# - Replication +wal_keep_segments = 10 + +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 + +hot_standby_feedback = off # send info from standby to prevent + # query conflicts + +# - Planner Cost Constants - +#seq_page_cost = 1.0 # measured on an arbitrary scale +random_page_cost = 2.0 # same scale as above + +effective_cache_size = 1975MB # Default 128MB + +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_checkpoints = off + +log_line_prefix = '' # default '', special values: + # %a = application name + # %u = user name + # %d = database name + # %r = remote host and port + # %h = remote host + # %p = process ID + # %t = timestamp without milliseconds + # %m = timestamp with milliseconds + # %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 + # %% = '%' + +log_temp_files = -1 # log temporary files equal or larger + # than the specified size in kilobytes; + # -1 disables, 0 logs all temp files + + +# - Autovacuum parameters - +autovacuum = on # Enable autovacuum subprocess? 'on' + # requires track_counts to also be on. + +log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and + # their durations, > 0 logs only + # actions running at least this number + # of milliseconds. + +autovacuum_naptime = 1min # time between autovacuum runs +autovacuum_vacuum_threshold = 50 # min number of row updates before + # vacuum +autovacuum_analyze_threshold = 50 # min number of row updates before + # analyze +autovacuum_vacuum_scale_factor = 0.02 # fraction of table size before vacuum +autovacuum_analyze_scale_factor = 0.01 # fraction of table size before analyze +autovacuum_vacuum_cost_delay = 20ms # 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 timeouts +statement_timeout = 60000 + +idle_in_transaction_session_timeout = 60000 + +# IO settings +effective_io_concurrency = 1 +track_io_timing = 'off' + +# Parallel worker settings +max_worker_processes = 8 +max_parallel_workers_per_gather = 0 + +# Deadlock handling and logging +deadlock_timeout = '5s' +log_lock_waits = 1 + +# - Locale and Formatting - +datestyle = 'iso, mdy' + +# These settings are initialized by initdb, but they can be changed. +lc_messages = 'C' # locale for system error message + # strings +lc_monetary = 'C' # locale for monetary formatting +lc_numeric = 'C' # locale for number formatting +lc_time = 'C' # locale for time formatting + +# default configuration for text search +default_text_search_config = 'pg_catalog.english' - change mode from '' to '0644' - change owner from '' to 'gitlab-psql' * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create - update content in file /var/opt/gitlab/postgresql/data/pg_hba.conf from d7d331 to 40e348 --- /var/opt/gitlab/postgresql/data/pg_hba.conf 2018-06-22 15:40:48.388183538 +0900 +++ /var/opt/gitlab/postgresql/data/.chef-pg_hba20180622-11711-uuzsn2.conf 2018-06-22 15:40:49.832139034 +0900 @@ -1,94 +1,74 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + # 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. +# Refer to the "Client Authentication" section in the +# PostgreSQL documentation for a complete description +# of this file. A short synopsis follows. # # 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] +# local DATABASE USER METHOD [OPTION] +# host DATABASE USER CIDR-ADDRESS METHOD [OPTION] +# hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTION] +# hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTION] # # (The uppercase items must be replaced by actual values.) # -# The first field is the connection type: "local" is a Unix-domain -# socket, "host" is either a plain or SSL-encrypted TCP/IP socket, -# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a -# plain TCP/IP socket. +# The first field is the connection type: "local" is a Unix-domain socket, +# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an +# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket. # -# DATABASE can be "all", "sameuser", "samerole", "replication", a -# database name, 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). +# DATABASE can be "all", "sameuser", "samerole", a database name, or +# a comma-separated list thereof. # -# USER can be "all", a user name, a group name prefixed with "+", 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. +# USER can be "all", a user name, a group name prefixed with "+", 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. +# CIDR-ADDRESS specifies the set of hosts the record matches. +# 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. Alternatively, you can write +# an IP address and netmask in separate columns to specify the set of hosts. # -# METHOD can be "trust", "reject", "md5", "password", "gss", "sspi", -# "ident", "peer", "pam", "ldap", "radius" or "cert". Note that -# "password" sends passwords in clear text; "md5" is preferred since -# it sends encrypted passwords. +# METHOD can be "trust", "reject", "md5", "crypt", "password", "gss", "sspi", +# "krb5", "ident", "pam" or "ldap". Note that "password" sends passwords +# in clear text; "md5" is preferred since it sends 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. +# OPTION is the ident map or the name of the PAM service, depending on METHOD. # -# 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. +# Database and user names containing spaces, commas, quotes and other special +# characters must be quoted. Quoting one of the keywords "all", "sameuser" or +# "samerole" makes the name lose its special character, and just match a +# database or username with that name. # # This file is read on server startup and when the postmaster receives # a SIGHUP signal. If you edit the file on a running system, you have -# to SIGHUP the postmaster for the changes to take effect. You can -# use "pg_ctl reload" to do that. +# to SIGHUP the postmaster for the changes to take effect. You can use +# "pg_ctl reload" to do that. # 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. +# "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 CIDR-ADDRESS 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 -# IPv6 local connections: -host all all ::1/128 trust -# Allow replication connections from localhost, by a user with the -# replication privilege. -#local replication gitlab-psql trust -#host replication gitlab-psql 127.0.0.1/32 trust -#host replication gitlab-psql ::1/128 trust +local all all peer map=gitlab + + + - change mode from '0600' to '0644' * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create - update content in file /var/opt/gitlab/postgresql/data/pg_ident.conf from 297f46 to 5399a1 --- /var/opt/gitlab/postgresql/data/pg_ident.conf 2018-06-22 15:40:48.388183538 +0900 +++ /var/opt/gitlab/postgresql/data/.chef-pg_ident20180622-11711-1xsq8zb.conf 2018-06-22 15:40:49.852138421 +0900 @@ -40,4 +40,8 @@ # ---------------------------------- # MAPNAME SYSTEM-USERNAME PG-USERNAME +gitlab git gitlab +gitlab mattermost gitlab_mattermost +# Default to a 1-1 mapping between system usernames and Postgres usernames +gitlab /^(.*)$ \1 - change mode from '0600' to '0644' * directory[/opt/gitlab/sv/postgresql] action create - create new directory /opt/gitlab/sv/postgresql - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/postgresql/log] action create - create new directory /opt/gitlab/sv/postgresql/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/postgresql/log/main] action create - create new directory /opt/gitlab/sv/postgresql/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/postgresql/run] action create - create new file /opt/gitlab/sv/postgresql/run - update content in file /opt/gitlab/sv/postgresql/run from none to 870bb6 --- /opt/gitlab/sv/postgresql/run 2018-06-22 15:40:49.872137809 +0900 +++ /opt/gitlab/sv/postgresql/.chef-run20180622-11711-bp7vrm 2018-06-22 15:40:49.872137809 +0900 @@ -1 +1,5 @@ +#!/bin/sh +exec 2>&1 + +exec chpst -P -U gitlab-psql -u gitlab-psql /opt/gitlab/embedded/bin/postgres -D /var/opt/gitlab/postgresql/data - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/postgresql/log/run] action create - create new file /opt/gitlab/sv/postgresql/log/run - update content in file /opt/gitlab/sv/postgresql/log/run from none to ce742a --- /opt/gitlab/sv/postgresql/log/run 2018-06-22 15:40:49.880137563 +0900 +++ /opt/gitlab/sv/postgresql/log/.chef-run20180622-11711-7br1pv 2018-06-22 15:40:49.880137563 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/postgresql - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/postgresql/config] action create - create new file /var/log/gitlab/postgresql/config - update content in file /var/log/gitlab/postgresql/config from none to 623c00 --- /var/log/gitlab/postgresql/config 2018-06-22 15:40:49.884137440 +0900 +++ /var/log/gitlab/postgresql/.chef-config20180622-11711-c5pojm 2018-06-22 15:40:49.884137440 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload postgresql svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart postgresql svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/postgresql/down] action delete (up to date) * directory[/opt/gitlab/sv/postgresql/control] action create - create new directory /opt/gitlab/sv/postgresql/control - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/postgresql/control/t] action create - create new file /opt/gitlab/sv/postgresql/control/t - update content in file /opt/gitlab/sv/postgresql/control/t from none to 05ae12 --- /opt/gitlab/sv/postgresql/control/t 2018-06-22 15:40:49.896137073 +0900 +++ /opt/gitlab/sv/postgresql/control/.chef-t20180622-11711-wtirx 2018-06-22 15:40:49.896137073 +0900 @@ -1 +1,4 @@ +#!/bin/sh +echo "received TERM from runit, sending INT instead to force quit connections" +/opt/gitlab/embedded/bin/sv interrupt postgresql - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * link[/opt/gitlab/init/postgresql] action create - create symlink at /opt/gitlab/init/postgresql to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/postgresql] action create - create symlink at /opt/gitlab/service/postgresql to /opt/gitlab/sv/postgresql * ruby_block[supervise_postgresql_sleep] action run - execute the ruby block supervise_postgresql_sleep * directory[/opt/gitlab/sv/postgresql/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/postgresql/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/postgresql/supervise/ok] action touch - create new file /opt/gitlab/sv/postgresql/supervise/ok - change owner from '' to 'gitlab-psql' - change group from '' to 'gitlab-psql' - update utime on file /opt/gitlab/sv/postgresql/supervise/ok * file[/opt/gitlab/sv/postgresql/log/supervise/ok] action touch - create new file /opt/gitlab/sv/postgresql/log/supervise/ok - change owner from '' to 'gitlab-psql' - change group from '' to 'gitlab-psql' - update utime on file /opt/gitlab/sv/postgresql/log/supervise/ok * file[/opt/gitlab/sv/postgresql/supervise/control] action touch - create new file /opt/gitlab/sv/postgresql/supervise/control - change owner from '' to 'gitlab-psql' - change group from '' to 'gitlab-psql' - update utime on file /opt/gitlab/sv/postgresql/supervise/control * file[/opt/gitlab/sv/postgresql/log/supervise/control] action touch - create new file /opt/gitlab/sv/postgresql/log/supervise/control - change owner from '' to 'gitlab-psql' - change group from '' to 'gitlab-psql' - update utime on file /opt/gitlab/sv/postgresql/log/supervise/control * service[postgresql] action nothing (skipped due to action :nothing) Recipe: postgresql::bin * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if) Recipe: postgresql::enable * execute[/opt/gitlab/bin/gitlab-ctl start postgresql] action run [execute] ok: run: postgresql: (pid 12568) 2s - execute /opt/gitlab/bin/gitlab-ctl start postgresql * template[/opt/gitlab/etc/gitlab-psql-rc] action create - create new file /opt/gitlab/etc/gitlab-psql-rc - update content in file /opt/gitlab/etc/gitlab-psql-rc from none to 4fdb89 --- /opt/gitlab/etc/gitlab-psql-rc 2018-06-22 15:40:54.755993607 +0900 +++ /opt/gitlab/etc/.chef-gitlab-psql-rc20180622-11711-1a9e7p1 2018-06-22 15:40:54.755993607 +0900 @@ -1 +1,5 @@ +psql_user='gitlab-psql' +psql_host='/var/opt/gitlab/postgresql' +psql_port='5432' +psql_dbname='gitlabhq_production' - change owner from '' to 'root' - change group from '' to 'root' * postgresql_user[gitlab] action create * execute[create gitlab postgresql user] action run [execute] CREATE ROLE - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER \"gitlab\"" * execute[create gitlabhq_production database] action run - execute /opt/gitlab/embedded/bin/createdb --port 5432 -h /var/opt/gitlab/postgresql -O gitlab gitlabhq_production * postgresql_user[gitlab_replicator] action create * execute[create gitlab_replicator postgresql user] action run [execute] CREATE ROLE - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER \"gitlab_replicator\"" * execute[set options for gitlab_replicator postgresql user] action run [execute] ALTER ROLE - execute /opt/gitlab/bin/gitlab-psql -d template1 -c "ALTER USER \"gitlab_replicator\" replication" * postgresql_extension[pg_trgm] action enable * postgresql_query[enable pg_trgm extension] action run * execute[enable pg_trgm extension (postgresql)] action run [execute] CREATE EXTENSION - execute /opt/gitlab/bin/gitlab-psql -d gitlabhq_production -c "CREATE EXTENSION IF NOT EXISTS pg_trgm" * execute[reload postgresql] action nothing (skipped due to action :nothing) * execute[start postgresql] action nothing (skipped due to action :nothing) Recipe: gitlab::database_migrations * bash[migrate gitlab-rails database] action run [execute] -- enable_extension("plpgsql") -> 0.0124s -- enable_extension("pg_trgm") -> 0.0025s -- create_table("abuse_reports", {:force=>:cascade}) -> 0.0095s -- create_table("appearances", {:force=>:cascade}) -> 0.0043s -- create_table("application_setting_terms", {:force=>:cascade}) -> 0.0039s -- create_table("application_settings", {:force=>:cascade}) -> 0.0351s -- create_table("audit_events", {:force=>:cascade}) -> 0.0041s -- add_index("audit_events", ["entity_id", "entity_type"], {:name=>"index_audit_events_on_entity_id_and_entity_type", :using=>:btree}) -> 0.0029s -- create_table("award_emoji", {:force=>:cascade}) -> 0.0039s -- add_index("award_emoji", ["awardable_type", "awardable_id"], {:name=>"index_award_emoji_on_awardable_type_and_awardable_id", :using=>:btree}) -> 0.0026s -- add_index("award_emoji", ["user_id", "name"], {:name=>"index_award_emoji_on_user_id_and_name", :using=>:btree}) -> 0.0026s -- create_table("badges", {:force=>:cascade}) -> 0.0042s -- add_index("badges", ["group_id"], {:name=>"index_badges_on_group_id", :using=>:btree}) -> 0.0025s -- add_index("badges", ["project_id"], {:name=>"index_badges_on_project_id", :using=>:btree}) -> 0.0025s -- create_table("boards", {:force=>:cascade}) -> 0.0029s -- add_index("boards", ["group_id"], {:name=>"index_boards_on_group_id", :using=>:btree}) -> 0.0026s -- add_index("boards", ["project_id"], {:name=>"index_boards_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("broadcast_messages", {:force=>:cascade}) -> 0.0040s -- add_index("broadcast_messages", ["starts_at", "ends_at", "id"], {:name=>"index_broadcast_messages_on_starts_at_and_ends_at_and_id", :using=>:btree}) -> 0.0028s -- create_table("chat_names", {:force=>:cascade}) -> 0.0043s -- add_index("chat_names", ["service_id", "team_id", "chat_id"], {:name=>"index_chat_names_on_service_id_and_team_id_and_chat_id", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("chat_names", ["user_id", "service_id"], {:name=>"index_chat_names_on_user_id_and_service_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("chat_teams", {:force=>:cascade}) -> 0.0043s -- add_index("chat_teams", ["namespace_id"], {:name=>"index_chat_teams_on_namespace_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("ci_build_trace_chunks", {:id=>:bigserial, :force=>:cascade}) -> 0.0043s -- add_index("ci_build_trace_chunks", ["build_id", "chunk_index"], {:name=>"index_ci_build_trace_chunks_on_build_id_and_chunk_index", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("ci_build_trace_section_names", {:force=>:cascade}) -> 0.0053s -- add_index("ci_build_trace_section_names", ["project_id", "name"], {:name=>"index_ci_build_trace_section_names_on_project_id_and_name", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("ci_build_trace_sections", {:force=>:cascade}) -> 0.0029s -- add_index("ci_build_trace_sections", ["build_id", "section_name_id"], {:name=>"index_ci_build_trace_sections_on_build_id_and_section_name_id", :unique=>true, :using=>:btree}) -> 0.0162s -- add_index("ci_build_trace_sections", ["project_id"], {:name=>"index_ci_build_trace_sections_on_project_id", :using=>:btree}) -> 0.0026s -- add_index("ci_build_trace_sections", ["section_name_id"], {:name=>"index_ci_build_trace_sections_on_section_name_id", :using=>:btree}) -> 0.0026s -- create_table("ci_builds", {:force=>:cascade}) -> 0.0054s -- add_index("ci_builds", ["artifacts_expire_at"], {:name=>"index_ci_builds_on_artifacts_expire_at", :where=>"(artifacts_file <> ''::text)", :using=>:btree}) -> 0.0027s -- add_index("ci_builds", ["auto_canceled_by_id"], {:name=>"index_ci_builds_on_auto_canceled_by_id", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["commit_id", "stage_idx", "created_at"], {:name=>"index_ci_builds_on_commit_id_and_stage_idx_and_created_at", :using=>:btree}) -> 0.0028s -- add_index("ci_builds", ["commit_id", "status", "type"], {:name=>"index_ci_builds_on_commit_id_and_status_and_type", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["commit_id", "type", "name", "ref"], {:name=>"index_ci_builds_on_commit_id_and_type_and_name_and_ref", :using=>:btree}) -> 0.0027s -- add_index("ci_builds", ["commit_id", "type", "ref"], {:name=>"index_ci_builds_on_commit_id_and_type_and_ref", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["project_id", "id"], {:name=>"index_ci_builds_on_project_id_and_id", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["protected"], {:name=>"index_ci_builds_on_protected", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["runner_id"], {:name=>"index_ci_builds_on_runner_id", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["stage_id", "stage_idx"], {:name=>"tmp_build_stage_position_index", :where=>"(stage_idx IS NOT NULL)", :using=>:btree}) -> 0.0027s -- add_index("ci_builds", ["stage_id"], {:name=>"index_ci_builds_on_stage_id", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["status", "type", "runner_id"], {:name=>"index_ci_builds_on_status_and_type_and_runner_id", :using=>:btree}) -> 0.0027s -- add_index("ci_builds", ["status"], {:name=>"index_ci_builds_on_status", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["token"], {:name=>"index_ci_builds_on_token", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["updated_at"], {:name=>"index_ci_builds_on_updated_at", :using=>:btree}) -> 0.0026s -- add_index("ci_builds", ["user_id"], {:name=>"index_ci_builds_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("ci_builds_metadata", {:force=>:cascade}) -> 0.0032s -- add_index("ci_builds_metadata", ["build_id"], {:name=>"index_ci_builds_metadata_on_build_id", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("ci_builds_metadata", ["project_id"], {:name=>"index_ci_builds_metadata_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("ci_group_variables", {:force=>:cascade}) -> 0.0046s -- add_index("ci_group_variables", ["group_id", "key"], {:name=>"index_ci_group_variables_on_group_id_and_key", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("ci_job_artifacts", {:force=>:cascade}) -> 0.0042s -- add_index("ci_job_artifacts", ["expire_at", "job_id"], {:name=>"index_ci_job_artifacts_on_expire_at_and_job_id", :using=>:btree}) -> 0.0028s -- add_index("ci_job_artifacts", ["file_store"], {:name=>"index_ci_job_artifacts_on_file_store", :using=>:btree}) -> 0.0026s -- add_index("ci_job_artifacts", ["job_id", "file_type"], {:name=>"index_ci_job_artifacts_on_job_id_and_file_type", :unique=>true, :using=>:btree}) -> 0.0028s -- add_index("ci_job_artifacts", ["project_id"], {:name=>"index_ci_job_artifacts_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("ci_pipeline_schedule_variables", {:force=>:cascade}) -> 0.0041s -- add_index("ci_pipeline_schedule_variables", ["pipeline_schedule_id", "key"], {:name=>"index_ci_pipeline_schedule_variables_on_schedule_id_and_key", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("ci_pipeline_schedules", {:force=>:cascade}) -> 0.0043s -- add_index("ci_pipeline_schedules", ["next_run_at", "active"], {:name=>"index_ci_pipeline_schedules_on_next_run_at_and_active", :using=>:btree}) -> 0.0029s -- add_index("ci_pipeline_schedules", ["project_id"], {:name=>"index_ci_pipeline_schedules_on_project_id", :using=>:btree}) -> 0.0027s -- create_table("ci_pipeline_variables", {:force=>:cascade}) -> 0.0039s -- add_index("ci_pipeline_variables", ["pipeline_id", "key"], {:name=>"index_ci_pipeline_variables_on_pipeline_id_and_key", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("ci_pipelines", {:force=>:cascade}) -> 0.0047s -- add_index("ci_pipelines", ["auto_canceled_by_id"], {:name=>"index_ci_pipelines_on_auto_canceled_by_id", :using=>:btree}) -> 0.0027s -- add_index("ci_pipelines", ["pipeline_schedule_id"], {:name=>"index_ci_pipelines_on_pipeline_schedule_id", :using=>:btree}) -> 0.0026s -- add_index("ci_pipelines", ["project_id", "ref", "status", "id"], {:name=>"index_ci_pipelines_on_project_id_and_ref_and_status_and_id", :using=>:btree}) -> 0.0059s -- add_index("ci_pipelines", ["project_id", "sha"], {:name=>"index_ci_pipelines_on_project_id_and_sha", :using=>:btree}) -> 0.0027s -- add_index("ci_pipelines", ["project_id"], {:name=>"index_ci_pipelines_on_project_id", :using=>:btree}) -> 0.0027s -- add_index("ci_pipelines", ["status"], {:name=>"index_ci_pipelines_on_status", :using=>:btree}) -> 0.0026s -- add_index("ci_pipelines", ["user_id"], {:name=>"index_ci_pipelines_on_user_id", :using=>:btree}) -> 0.0050s -- create_table("ci_runner_namespaces", {:force=>:cascade}) -> 0.0028s -- add_index("ci_runner_namespaces", ["namespace_id"], {:name=>"index_ci_runner_namespaces_on_namespace_id", :using=>:btree}) -> 0.0026s -- add_index("ci_runner_namespaces", ["runner_id", "namespace_id"], {:name=>"index_ci_runner_namespaces_on_runner_id_and_namespace_id", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("ci_runner_projects", {:force=>:cascade}) -> 0.0029s -- add_index("ci_runner_projects", ["project_id"], {:name=>"index_ci_runner_projects_on_project_id", :using=>:btree}) -> 0.0031s -- add_index("ci_runner_projects", ["runner_id"], {:name=>"index_ci_runner_projects_on_runner_id", :using=>:btree}) -> 0.0026s -- create_table("ci_runners", {:force=>:cascade}) -> 0.0058s -- add_index("ci_runners", ["contacted_at"], {:name=>"index_ci_runners_on_contacted_at", :using=>:btree}) -> 0.0027s -- add_index("ci_runners", ["is_shared"], {:name=>"index_ci_runners_on_is_shared", :using=>:btree}) -> 0.0026s -- add_index("ci_runners", ["locked"], {:name=>"index_ci_runners_on_locked", :using=>:btree}) -> 0.0026s -- add_index("ci_runners", ["token"], {:name=>"index_ci_runners_on_token", :using=>:btree}) -> 0.0026s -- create_table("ci_stages", {:force=>:cascade}) -> 0.0040s -- add_index("ci_stages", ["pipeline_id", "name"], {:name=>"index_ci_stages_on_pipeline_id_and_name", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("ci_stages", ["pipeline_id"], {:name=>"index_ci_stages_on_pipeline_id", :using=>:btree}) -> 0.0027s -- add_index("ci_stages", ["project_id"], {:name=>"index_ci_stages_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("ci_trigger_requests", {:force=>:cascade}) -> 0.0039s -- add_index("ci_trigger_requests", ["commit_id"], {:name=>"index_ci_trigger_requests_on_commit_id", :using=>:btree}) -> 0.0027s -- create_table("ci_triggers", {:force=>:cascade}) -> 0.0040s -- add_index("ci_triggers", ["project_id"], {:name=>"index_ci_triggers_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("ci_variables", {:force=>:cascade}) -> 0.0048s -- add_index("ci_variables", ["project_id", "key", "environment_scope"], {:name=>"index_ci_variables_on_project_id_and_key_and_environment_scope", :unique=>true, :using=>:btree}) -> 0.0028s -- create_table("cluster_platforms_kubernetes", {:force=>:cascade}) -> 0.0041s -- add_index("cluster_platforms_kubernetes", ["cluster_id"], {:name=>"index_cluster_platforms_kubernetes_on_cluster_id", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("cluster_projects", {:force=>:cascade}) -> 0.0029s -- add_index("cluster_projects", ["cluster_id"], {:name=>"index_cluster_projects_on_cluster_id", :using=>:btree}) -> 0.0026s -- add_index("cluster_projects", ["project_id"], {:name=>"index_cluster_projects_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("cluster_providers_gcp", {:force=>:cascade}) -> 0.0043s -- add_index("cluster_providers_gcp", ["cluster_id"], {:name=>"index_cluster_providers_gcp_on_cluster_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("clusters", {:force=>:cascade}) -> 0.0046s -- add_index("clusters", ["enabled"], {:name=>"index_clusters_on_enabled", :using=>:btree}) -> 0.0027s -- add_index("clusters", ["user_id"], {:name=>"index_clusters_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("clusters_applications_helm", {:force=>:cascade}) -> 0.0040s -- create_table("clusters_applications_ingress", {:force=>:cascade}) -> 0.0043s -- create_table("clusters_applications_prometheus", {:force=>:cascade}) -> 0.0040s -- create_table("clusters_applications_runners", {:force=>:cascade}) -> 0.0043s -- add_index("clusters_applications_runners", ["cluster_id"], {:name=>"index_clusters_applications_runners_on_cluster_id", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("clusters_applications_runners", ["runner_id"], {:name=>"index_clusters_applications_runners_on_runner_id", :using=>:btree}) -> 0.0125s -- create_table("container_repositories", {:force=>:cascade}) -> 0.0040s -- add_index("container_repositories", ["project_id", "name"], {:name=>"index_container_repositories_on_project_id_and_name", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("container_repositories", ["project_id"], {:name=>"index_container_repositories_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("conversational_development_index_metrics", {:force=>:cascade}) -> 0.0071s -- create_table("deploy_keys_projects", {:force=>:cascade}) -> 0.0033s -- add_index("deploy_keys_projects", ["project_id"], {:name=>"index_deploy_keys_projects_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("deploy_tokens", {:force=>:cascade}) -> 0.0050s -- add_index("deploy_tokens", ["token", "expires_at", "id"], {:name=>"index_deploy_tokens_on_token_and_expires_at_and_id", :where=>"(revoked IS FALSE)", :using=>:btree}) -> 0.0029s -- add_index("deploy_tokens", ["token"], {:name=>"index_deploy_tokens_on_token", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("deployments", {:force=>:cascade}) -> 0.0043s -- add_index("deployments", ["created_at"], {:name=>"index_deployments_on_created_at", :using=>:btree}) -> 0.0027s -- add_index("deployments", ["environment_id", "id"], {:name=>"index_deployments_on_environment_id_and_id", :using=>:btree}) -> 0.0026s -- add_index("deployments", ["environment_id", "iid", "project_id"], {:name=>"index_deployments_on_environment_id_and_iid_and_project_id", :using=>:btree}) -> 0.0026s -- add_index("deployments", ["project_id", "iid"], {:name=>"index_deployments_on_project_id_and_iid", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("emails", {:force=>:cascade}) -> 0.0040s -- add_index("emails", ["confirmation_token"], {:name=>"index_emails_on_confirmation_token", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("emails", ["email"], {:name=>"index_emails_on_email", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("emails", ["user_id"], {:name=>"index_emails_on_user_id", :using=>:btree}) -> 0.0027s -- create_table("environments", {:force=>:cascade}) -> 0.0045s -- add_index("environments", ["project_id", "name"], {:name=>"index_environments_on_project_id_and_name", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("environments", ["project_id", "slug"], {:name=>"index_environments_on_project_id_and_slug", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("events", {:force=>:cascade}) -> 0.0040s -- add_index("events", ["action"], {:name=>"index_events_on_action", :using=>:btree}) -> 0.0033s -- add_index("events", ["author_id", "project_id"], {:name=>"index_events_on_author_id_and_project_id", :using=>:btree}) -> 0.0027s -- add_index("events", ["project_id", "id"], {:name=>"index_events_on_project_id_and_id", :using=>:btree}) -> 0.0027s -- add_index("events", ["target_type", "target_id"], {:name=>"index_events_on_target_type_and_target_id", :using=>:btree}) -> 0.0026s -- create_table("feature_gates", {:force=>:cascade}) -> 0.0040s -- add_index("feature_gates", ["feature_key", "key", "value"], {:name=>"index_feature_gates_on_feature_key_and_key_and_value", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("features", {:force=>:cascade}) -> 0.0041s -- add_index("features", ["key"], {:name=>"index_features_on_key", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("fork_network_members", {:force=>:cascade}) -> 0.0028s -- add_index("fork_network_members", ["fork_network_id"], {:name=>"index_fork_network_members_on_fork_network_id", :using=>:btree}) -> 0.0062s -- add_index("fork_network_members", ["project_id"], {:name=>"index_fork_network_members_on_project_id", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("fork_networks", {:force=>:cascade}) -> 0.0040s -- add_index("fork_networks", ["root_project_id"], {:name=>"index_fork_networks_on_root_project_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("forked_project_links", {:force=>:cascade}) -> 0.0028s -- add_index("forked_project_links", ["forked_to_project_id"], {:name=>"index_forked_project_links_on_forked_to_project_id", :unique=>true, :using=>:btree}) -> 0.0032s -- create_table("gcp_clusters", {:force=>:cascade}) -> 0.0050s -- add_index("gcp_clusters", ["project_id"], {:name=>"index_gcp_clusters_on_project_id", :unique=>true, :using=>:btree}) -> 0.0028s -- create_table("gpg_key_subkeys", {:force=>:cascade}) -> 0.0040s -- add_index("gpg_key_subkeys", ["fingerprint"], {:name=>"index_gpg_key_subkeys_on_fingerprint", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("gpg_key_subkeys", ["gpg_key_id"], {:name=>"index_gpg_key_subkeys_on_gpg_key_id", :using=>:btree}) -> 0.0026s -- add_index("gpg_key_subkeys", ["keyid"], {:name=>"index_gpg_key_subkeys_on_keyid", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("gpg_keys", {:force=>:cascade}) -> 0.0041s -- add_index("gpg_keys", ["fingerprint"], {:name=>"index_gpg_keys_on_fingerprint", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("gpg_keys", ["primary_keyid"], {:name=>"index_gpg_keys_on_primary_keyid", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("gpg_keys", ["user_id"], {:name=>"index_gpg_keys_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("gpg_signatures", {:force=>:cascade}) -> 0.0046s -- add_index("gpg_signatures", ["commit_sha"], {:name=>"index_gpg_signatures_on_commit_sha", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("gpg_signatures", ["gpg_key_id"], {:name=>"index_gpg_signatures_on_gpg_key_id", :using=>:btree}) -> 0.0026s -- add_index("gpg_signatures", ["gpg_key_primary_keyid"], {:name=>"index_gpg_signatures_on_gpg_key_primary_keyid", :using=>:btree}) -> 0.0026s -- add_index("gpg_signatures", ["gpg_key_subkey_id"], {:name=>"index_gpg_signatures_on_gpg_key_subkey_id", :using=>:btree}) -> 0.0026s -- add_index("gpg_signatures", ["project_id"], {:name=>"index_gpg_signatures_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("group_custom_attributes", {:force=>:cascade}) -> 0.0039s -- add_index("group_custom_attributes", ["group_id", "key"], {:name=>"index_group_custom_attributes_on_group_id_and_key", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("group_custom_attributes", ["key", "value"], {:name=>"index_group_custom_attributes_on_key_and_value", :using=>:btree}) -> 0.0026s -- create_table("identities", {:force=>:cascade}) -> 0.0038s -- add_index("identities", ["user_id"], {:name=>"index_identities_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("internal_ids", {:id=>:bigserial, :force=>:cascade}) -> 0.0028s -- add_index("internal_ids", ["usage", "namespace_id"], {:name=>"index_internal_ids_on_usage_and_namespace_id", :unique=>true, :where=>"(namespace_id IS NOT NULL)", :using=>:btree}) -> 0.0028s -- add_index("internal_ids", ["usage", "project_id"], {:name=>"index_internal_ids_on_usage_and_project_id", :unique=>true, :where=>"(project_id IS NOT NULL)", :using=>:btree}) -> 0.0027s -- create_table("issue_assignees", {:id=>false, :force=>:cascade}) -> 0.0012s -- add_index("issue_assignees", ["issue_id", "user_id"], {:name=>"index_issue_assignees_on_issue_id_and_user_id", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("issue_assignees", ["user_id"], {:name=>"index_issue_assignees_on_user_id", :using=>:btree}) -> 0.0025s -- create_table("issue_metrics", {:force=>:cascade}) -> 0.0031s -- add_index("issue_metrics", ["issue_id"], {:name=>"index_issue_metrics", :using=>:btree}) -> 0.0026s -- create_table("issues", {:force=>:cascade}) -> 0.0048s -- add_index("issues", ["author_id"], {:name=>"index_issues_on_author_id", :using=>:btree}) -> 0.0026s -- add_index("issues", ["confidential"], {:name=>"index_issues_on_confidential", :using=>:btree}) -> 0.0026s -- add_index("issues", ["description"], {:name=>"index_issues_on_description_trigram", :using=>:gin, :opclasses=>{"description"=>"gin_trgm_ops"}}) -> 0.0025s -- add_index("issues", ["milestone_id"], {:name=>"index_issues_on_milestone_id", :using=>:btree}) -> 0.0026s -- add_index("issues", ["moved_to_id"], {:name=>"index_issues_on_moved_to_id", :where=>"(moved_to_id IS NOT NULL)", :using=>:btree}) -> 0.0026s -- add_index("issues", ["project_id", "created_at", "id", "state"], {:name=>"index_issues_on_project_id_and_created_at_and_id_and_state", :using=>:btree}) -> 0.0029s -- add_index("issues", ["project_id", "due_date", "id", "state"], {:name=>"idx_issues_on_project_id_and_due_date_and_id_and_state_partial", :where=>"(due_date IS NOT NULL)", :using=>:btree}) -> 0.0028s -- add_index("issues", ["project_id", "iid"], {:name=>"index_issues_on_project_id_and_iid", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("issues", ["project_id", "updated_at", "id", "state"], {:name=>"index_issues_on_project_id_and_updated_at_and_id_and_state", :using=>:btree}) -> 0.0027s -- add_index("issues", ["relative_position"], {:name=>"index_issues_on_relative_position", :using=>:btree}) -> 0.0026s -- add_index("issues", ["state"], {:name=>"index_issues_on_state", :using=>:btree}) -> 0.0026s -- add_index("issues", ["title"], {:name=>"index_issues_on_title_trigram", :using=>:gin, :opclasses=>{"title"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("issues", ["updated_at"], {:name=>"index_issues_on_updated_at", :using=>:btree}) -> 0.0026s -- add_index("issues", ["updated_by_id"], {:name=>"index_issues_on_updated_by_id", :where=>"(updated_by_id IS NOT NULL)", :using=>:btree}) -> 0.0028s -- create_table("keys", {:force=>:cascade}) -> 0.0123s -- add_index("keys", ["fingerprint"], {:name=>"index_keys_on_fingerprint", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("keys", ["user_id"], {:name=>"index_keys_on_user_id", :using=>:btree}) -> 0.0030s -- create_table("label_links", {:force=>:cascade}) -> 0.0039s -- add_index("label_links", ["label_id"], {:name=>"index_label_links_on_label_id", :using=>:btree}) -> 0.0026s -- add_index("label_links", ["target_id", "target_type"], {:name=>"index_label_links_on_target_id_and_target_type", :using=>:btree}) -> 0.0027s -- create_table("label_priorities", {:force=>:cascade}) -> 0.0029s -- add_index("label_priorities", ["priority"], {:name=>"index_label_priorities_on_priority", :using=>:btree}) -> 0.0026s -- add_index("label_priorities", ["project_id", "label_id"], {:name=>"index_label_priorities_on_project_id_and_label_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("labels", {:force=>:cascade}) -> 0.0045s -- add_index("labels", ["group_id", "project_id", "title"], {:name=>"index_labels_on_group_id_and_project_id_and_title", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("labels", ["project_id"], {:name=>"index_labels_on_project_id", :using=>:btree}) -> 0.0027s -- add_index("labels", ["template"], {:name=>"index_labels_on_template", :where=>"template", :using=>:btree}) -> 0.0026s -- add_index("labels", ["title"], {:name=>"index_labels_on_title", :using=>:btree}) -> 0.0027s -- add_index("labels", ["type", "project_id"], {:name=>"index_labels_on_type_and_project_id", :using=>:btree}) -> 0.0030s -- create_table("lfs_file_locks", {:force=>:cascade}) -> 0.0039s -- add_index("lfs_file_locks", ["project_id", "path"], {:name=>"index_lfs_file_locks_on_project_id_and_path", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("lfs_file_locks", ["user_id"], {:name=>"index_lfs_file_locks_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("lfs_objects", {:force=>:cascade}) -> 0.0041s -- add_index("lfs_objects", ["oid"], {:name=>"index_lfs_objects_on_oid", :unique=>true, :using=>:btree}) -> 0.0090s -- create_table("lfs_objects_projects", {:force=>:cascade}) -> 0.0029s -- add_index("lfs_objects_projects", ["project_id"], {:name=>"index_lfs_objects_projects_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("lists", {:force=>:cascade}) -> 0.0033s -- add_index("lists", ["board_id", "label_id"], {:name=>"index_lists_on_board_id_and_label_id", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("lists", ["label_id"], {:name=>"index_lists_on_label_id", :using=>:btree}) -> 0.0026s -- create_table("members", {:force=>:cascade}) -> 0.0043s -- add_index("members", ["access_level"], {:name=>"index_members_on_access_level", :using=>:btree}) -> 0.0026s -- add_index("members", ["invite_token"], {:name=>"index_members_on_invite_token", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("members", ["requested_at"], {:name=>"index_members_on_requested_at", :using=>:btree}) -> 0.0027s -- add_index("members", ["source_id", "source_type"], {:name=>"index_members_on_source_id_and_source_type", :using=>:btree}) -> 0.0027s -- add_index("members", ["user_id"], {:name=>"index_members_on_user_id", :using=>:btree}) -> 0.0025s -- create_table("merge_request_diff_commits", {:id=>false, :force=>:cascade}) -> 0.0026s -- add_index("merge_request_diff_commits", ["merge_request_diff_id", "relative_order"], {:name=>"index_merge_request_diff_commits_on_mr_diff_id_and_order", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("merge_request_diff_commits", ["sha"], {:name=>"index_merge_request_diff_commits_on_sha", :using=>:btree}) -> 0.0025s -- create_table("merge_request_diff_files", {:id=>false, :force=>:cascade}) -> 0.0028s -- add_index("merge_request_diff_files", ["merge_request_diff_id", "relative_order"], {:name=>"index_merge_request_diff_files_on_mr_diff_id_and_order", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("merge_request_diffs", {:force=>:cascade}) -> 0.0042s -- add_index("merge_request_diffs", ["merge_request_id", "id"], {:name=>"index_merge_request_diffs_on_merge_request_id_and_id", :using=>:btree}) -> 0.0026s -- create_table("merge_request_metrics", {:force=>:cascade}) -> 0.0031s -- add_index("merge_request_metrics", ["first_deployed_to_production_at"], {:name=>"index_merge_request_metrics_on_first_deployed_to_production_at", :using=>:btree}) -> 0.0026s -- add_index("merge_request_metrics", ["merge_request_id"], {:name=>"index_merge_request_metrics", :using=>:btree}) -> 0.0026s -- add_index("merge_request_metrics", ["pipeline_id"], {:name=>"index_merge_request_metrics_on_pipeline_id", :using=>:btree}) -> 0.0026s -- create_table("merge_requests", {:force=>:cascade}) -> 0.0059s -- add_index("merge_requests", ["assignee_id"], {:name=>"index_merge_requests_on_assignee_id", :using=>:btree}) -> 0.0026s -- add_index("merge_requests", ["author_id"], {:name=>"index_merge_requests_on_author_id", :using=>:btree}) -> 0.0026s -- add_index("merge_requests", ["created_at"], {:name=>"index_merge_requests_on_created_at", :using=>:btree}) -> 0.0026s -- add_index("merge_requests", ["description"], {:name=>"index_merge_requests_on_description_trigram", :using=>:gin, :opclasses=>{"description"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("merge_requests", ["head_pipeline_id"], {:name=>"index_merge_requests_on_head_pipeline_id", :using=>:btree}) -> 0.0029s -- add_index("merge_requests", ["latest_merge_request_diff_id"], {:name=>"index_merge_requests_on_latest_merge_request_diff_id", :using=>:btree}) -> 0.0025s -- add_index("merge_requests", ["merge_user_id"], {:name=>"index_merge_requests_on_merge_user_id", :where=>"(merge_user_id IS NOT NULL)", :using=>:btree}) -> 0.0028s -- add_index("merge_requests", ["milestone_id"], {:name=>"index_merge_requests_on_milestone_id", :using=>:btree}) -> 0.0026s -- add_index("merge_requests", ["source_branch"], {:name=>"index_merge_requests_on_source_branch", :using=>:btree}) -> 0.0026s -- add_index("merge_requests", ["source_project_id", "source_branch"], {:name=>"index_merge_requests_on_source_project_and_branch_state_opened", :where=>"((state)::text = 'opened'::text)", :using=>:btree}) -> 0.0028s -- add_index("merge_requests", ["source_project_id", "source_branch"], {:name=>"index_merge_requests_on_source_project_id_and_source_branch", :using=>:btree}) -> 0.0027s -- add_index("merge_requests", ["target_branch"], {:name=>"index_merge_requests_on_target_branch", :using=>:btree}) -> 0.0026s -- add_index("merge_requests", ["target_project_id", "iid"], {:name=>"index_merge_requests_on_target_project_id_and_iid", :unique=>true, :using=>:btree}) -> 0.0029s -- add_index("merge_requests", ["target_project_id", "merge_commit_sha", "id"], {:name=>"index_merge_requests_on_tp_id_and_merge_commit_sha_and_id", :using=>:btree}) -> 0.0027s -- add_index("merge_requests", ["title"], {:name=>"index_merge_requests_on_title", :using=>:btree}) -> 0.0026s -- add_index("merge_requests", ["title"], {:name=>"index_merge_requests_on_title_trigram", :using=>:gin, :opclasses=>{"title"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("merge_requests", ["updated_by_id"], {:name=>"index_merge_requests_on_updated_by_id", :where=>"(updated_by_id IS NOT NULL)", :using=>:btree}) -> 0.0026s -- create_table("merge_requests_closing_issues", {:force=>:cascade}) -> 0.0029s -- add_index("merge_requests_closing_issues", ["issue_id"], {:name=>"index_merge_requests_closing_issues_on_issue_id", :using=>:btree}) -> 0.0026s -- add_index("merge_requests_closing_issues", ["merge_request_id"], {:name=>"index_merge_requests_closing_issues_on_merge_request_id", :using=>:btree}) -> 0.0026s -- create_table("milestones", {:force=>:cascade}) -> 0.0043s -- add_index("milestones", ["description"], {:name=>"index_milestones_on_description_trigram", :using=>:gin, :opclasses=>{"description"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("milestones", ["due_date"], {:name=>"index_milestones_on_due_date", :using=>:btree}) -> 0.0026s -- add_index("milestones", ["group_id"], {:name=>"index_milestones_on_group_id", :using=>:btree}) -> 0.0026s -- add_index("milestones", ["project_id", "iid"], {:name=>"index_milestones_on_project_id_and_iid", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("milestones", ["title"], {:name=>"index_milestones_on_title", :using=>:btree}) -> 0.0026s -- add_index("milestones", ["title"], {:name=>"index_milestones_on_title_trigram", :using=>:gin, :opclasses=>{"title"=>"gin_trgm_ops"}}) -> 0.0021s -- create_table("namespaces", {:force=>:cascade}) -> 0.0062s -- add_index("namespaces", ["created_at"], {:name=>"index_namespaces_on_created_at", :using=>:btree}) -> 0.0027s -- add_index("namespaces", ["name", "parent_id"], {:name=>"index_namespaces_on_name_and_parent_id", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("namespaces", ["name"], {:name=>"index_namespaces_on_name_trigram", :using=>:gin, :opclasses=>{"name"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("namespaces", ["owner_id"], {:name=>"index_namespaces_on_owner_id", :using=>:btree}) -> 0.0027s -- add_index("namespaces", ["parent_id", "id"], {:name=>"index_namespaces_on_parent_id_and_id", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("namespaces", ["path"], {:name=>"index_namespaces_on_path", :using=>:btree}) -> 0.0026s -- add_index("namespaces", ["path"], {:name=>"index_namespaces_on_path_trigram", :using=>:gin, :opclasses=>{"path"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("namespaces", ["require_two_factor_authentication"], {:name=>"index_namespaces_on_require_two_factor_authentication", :using=>:btree}) -> 0.0026s -- add_index("namespaces", ["runners_token"], {:name=>"index_namespaces_on_runners_token", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("namespaces", ["type"], {:name=>"index_namespaces_on_type", :using=>:btree}) -> 0.0026s -- create_table("notes", {:force=>:cascade}) -> 0.0047s -- add_index("notes", ["author_id"], {:name=>"index_notes_on_author_id", :using=>:btree}) -> 0.0026s -- add_index("notes", ["commit_id"], {:name=>"index_notes_on_commit_id", :using=>:btree}) -> 0.0085s -- add_index("notes", ["created_at"], {:name=>"index_notes_on_created_at", :using=>:btree}) -> 0.0030s -- add_index("notes", ["discussion_id"], {:name=>"index_notes_on_discussion_id", :using=>:btree}) -> 0.0030s -- add_index("notes", ["line_code"], {:name=>"index_notes_on_line_code", :using=>:btree}) -> 0.0030s -- add_index("notes", ["note"], {:name=>"index_notes_on_note_trigram", :using=>:gin, :opclasses=>{"note"=>"gin_trgm_ops"}}) -> 0.0026s -- add_index("notes", ["noteable_id", "noteable_type"], {:name=>"index_notes_on_noteable_id_and_noteable_type", :using=>:btree}) -> 0.0034s -- add_index("notes", ["noteable_type"], {:name=>"index_notes_on_noteable_type", :using=>:btree}) -> 0.0030s -- add_index("notes", ["project_id", "noteable_type"], {:name=>"index_notes_on_project_id_and_noteable_type", :using=>:btree}) -> 0.0031s -- add_index("notes", ["updated_at"], {:name=>"index_notes_on_updated_at", :using=>:btree}) -> 0.0031s -- create_table("notification_settings", {:force=>:cascade}) -> 0.0048s -- add_index("notification_settings", ["source_id", "source_type"], {:name=>"index_notification_settings_on_source_id_and_source_type", :using=>:btree}) -> 0.0027s -- add_index("notification_settings", ["user_id", "source_id", "source_type"], {:name=>"index_notifications_on_user_id_and_source_id_and_source_type", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("notification_settings", ["user_id"], {:name=>"index_notification_settings_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("oauth_access_grants", {:force=>:cascade}) -> 0.0040s -- add_index("oauth_access_grants", ["token"], {:name=>"index_oauth_access_grants_on_token", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("oauth_access_tokens", {:force=>:cascade}) -> 0.0044s -- add_index("oauth_access_tokens", ["refresh_token"], {:name=>"index_oauth_access_tokens_on_refresh_token", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("oauth_access_tokens", ["resource_owner_id"], {:name=>"index_oauth_access_tokens_on_resource_owner_id", :using=>:btree}) -> 0.0026s -- add_index("oauth_access_tokens", ["token"], {:name=>"index_oauth_access_tokens_on_token", :unique=>true, :using=>:btree}) -> 0.0029s -- create_table("oauth_applications", {:force=>:cascade}) -> 0.0052s -- add_index("oauth_applications", ["owner_id", "owner_type"], {:name=>"index_oauth_applications_on_owner_id_and_owner_type", :using=>:btree}) -> 0.0028s -- add_index("oauth_applications", ["uid"], {:name=>"index_oauth_applications_on_uid", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("oauth_openid_requests", {:force=>:cascade}) -> 0.0039s -- create_table("pages_domains", {:force=>:cascade}) -> 0.0042s -- add_index("pages_domains", ["domain"], {:name=>"index_pages_domains_on_domain", :unique=>true, :using=>:btree}) -> 0.0029s -- add_index("pages_domains", ["project_id", "enabled_until"], {:name=>"index_pages_domains_on_project_id_and_enabled_until", :using=>:btree}) -> 0.0027s -- add_index("pages_domains", ["project_id"], {:name=>"index_pages_domains_on_project_id", :using=>:btree}) -> 0.0026s -- add_index("pages_domains", ["verified_at", "enabled_until"], {:name=>"index_pages_domains_on_verified_at_and_enabled_until", :using=>:btree}) -> 0.0026s -- add_index("pages_domains", ["verified_at"], {:name=>"index_pages_domains_on_verified_at", :using=>:btree}) -> 0.0026s -- create_table("personal_access_tokens", {:force=>:cascade}) -> 0.0055s -- add_index("personal_access_tokens", ["token"], {:name=>"index_personal_access_tokens_on_token", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("personal_access_tokens", ["user_id"], {:name=>"index_personal_access_tokens_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("project_authorizations", {:id=>false, :force=>:cascade}) -> 0.0012s -- add_index("project_authorizations", ["project_id"], {:name=>"index_project_authorizations_on_project_id", :using=>:btree}) -> 0.0026s -- add_index("project_authorizations", ["user_id", "project_id", "access_level"], {:name=>"index_project_authorizations_on_user_id_project_id_access_level", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("project_auto_devops", {:force=>:cascade}) -> 0.0039s -- add_index("project_auto_devops", ["project_id"], {:name=>"index_project_auto_devops_on_project_id", :unique=>true, :using=>:btree}) -> 0.0028s -- create_table("project_ci_cd_settings", {:force=>:cascade}) -> 0.0032s -- add_index("project_ci_cd_settings", ["project_id"], {:name=>"index_project_ci_cd_settings_on_project_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("project_custom_attributes", {:force=>:cascade}) -> 0.0039s -- add_index("project_custom_attributes", ["key", "value"], {:name=>"index_project_custom_attributes_on_key_and_value", :using=>:btree}) -> 0.0027s -- add_index("project_custom_attributes", ["project_id", "key"], {:name=>"index_project_custom_attributes_on_project_id_and_key", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("project_deploy_tokens", {:force=>:cascade}) -> 0.0027s -- add_index("project_deploy_tokens", ["project_id", "deploy_token_id"], {:name=>"index_project_deploy_tokens_on_project_id_and_deploy_token_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("project_features", {:force=>:cascade}) -> 0.0034s -- add_index("project_features", ["project_id"], {:name=>"index_project_features_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("project_group_links", {:force=>:cascade}) -> 0.0032s -- add_index("project_group_links", ["group_id"], {:name=>"index_project_group_links_on_group_id", :using=>:btree}) -> 0.0027s -- add_index("project_group_links", ["project_id"], {:name=>"index_project_group_links_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("project_import_data", {:force=>:cascade}) -> 0.0041s -- add_index("project_import_data", ["project_id"], {:name=>"index_project_import_data_on_project_id", :using=>:btree}) -> 0.0027s -- create_table("project_mirror_data", {:force=>:cascade}) -> 0.0039s -- add_index("project_mirror_data", ["jid"], {:name=>"index_project_mirror_data_on_jid", :using=>:btree}) -> 0.0027s -- add_index("project_mirror_data", ["project_id"], {:name=>"index_project_mirror_data_on_project_id", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("project_mirror_data", ["status"], {:name=>"index_project_mirror_data_on_status", :using=>:btree}) -> 0.0027s -- create_table("project_statistics", {:force=>:cascade}) -> 0.0044s -- add_index("project_statistics", ["namespace_id"], {:name=>"index_project_statistics_on_namespace_id", :using=>:btree}) -> 0.0027s -- add_index("project_statistics", ["project_id"], {:name=>"index_project_statistics_on_project_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("projects", {:force=>:cascade}) -> 0.0107s -- add_index("projects", ["ci_id"], {:name=>"index_projects_on_ci_id", :using=>:btree}) -> 0.0027s -- add_index("projects", ["created_at"], {:name=>"index_projects_on_created_at", :using=>:btree}) -> 0.0028s -- add_index("projects", ["creator_id"], {:name=>"index_projects_on_creator_id", :using=>:btree}) -> 0.0027s -- add_index("projects", ["description"], {:name=>"index_projects_on_description_trigram", :using=>:gin, :opclasses=>{"description"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("projects", ["id"], {:name=>"index_projects_on_id_partial_for_visibility", :unique=>true, :where=>"(visibility_level = ANY (ARRAY[10, 20]))", :using=>:btree}) -> 0.0028s -- add_index("projects", ["last_activity_at"], {:name=>"index_projects_on_last_activity_at", :using=>:btree}) -> 0.0104s -- add_index("projects", ["last_repository_check_failed"], {:name=>"index_projects_on_last_repository_check_failed", :using=>:btree}) -> 0.0027s -- add_index("projects", ["last_repository_updated_at"], {:name=>"index_projects_on_last_repository_updated_at", :using=>:btree}) -> 0.0027s -- add_index("projects", ["name"], {:name=>"index_projects_on_name_trigram", :using=>:gin, :opclasses=>{"name"=>"gin_trgm_ops"}}) -> 0.0061s -- add_index("projects", ["namespace_id"], {:name=>"index_projects_on_namespace_id", :using=>:btree}) -> 0.0027s -- add_index("projects", ["path"], {:name=>"index_projects_on_path", :using=>:btree}) -> 0.0026s -- add_index("projects", ["path"], {:name=>"index_projects_on_path_trigram", :using=>:gin, :opclasses=>{"path"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("projects", ["pending_delete"], {:name=>"index_projects_on_pending_delete", :using=>:btree}) -> 0.0027s -- add_index("projects", ["repository_storage"], {:name=>"index_projects_on_repository_storage", :using=>:btree}) -> 0.0027s -- add_index("projects", ["runners_token"], {:name=>"index_projects_on_runners_token", :using=>:btree}) -> 0.0027s -- add_index("projects", ["star_count"], {:name=>"index_projects_on_star_count", :using=>:btree}) -> 0.0026s -- add_index("projects", ["visibility_level"], {:name=>"index_projects_on_visibility_level", :using=>:btree}) -> 0.0027s -- create_table("protected_branch_merge_access_levels", {:force=>:cascade}) -> 0.0034s -- add_index("protected_branch_merge_access_levels", ["protected_branch_id"], {:name=>"index_protected_branch_merge_access", :using=>:btree}) -> 0.0027s -- create_table("protected_branch_push_access_levels", {:force=>:cascade}) -> 0.0033s -- add_index("protected_branch_push_access_levels", ["protected_branch_id"], {:name=>"index_protected_branch_push_access", :using=>:btree}) -> 0.0031s -- create_table("protected_branches", {:force=>:cascade}) -> 0.0042s -- add_index("protected_branches", ["project_id"], {:name=>"index_protected_branches_on_project_id", :using=>:btree}) -> 0.0034s -- create_table("protected_tag_create_access_levels", {:force=>:cascade}) -> 0.0031s -- add_index("protected_tag_create_access_levels", ["protected_tag_id"], {:name=>"index_protected_tag_create_access", :using=>:btree}) -> 0.0026s -- add_index("protected_tag_create_access_levels", ["user_id"], {:name=>"index_protected_tag_create_access_levels_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("protected_tags", {:force=>:cascade}) -> 0.0039s -- add_index("protected_tags", ["project_id"], {:name=>"index_protected_tags_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("push_event_payloads", {:id=>false, :force=>:cascade}) -> 0.0026s -- add_index("push_event_payloads", ["event_id"], {:name=>"index_push_event_payloads_on_event_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("redirect_routes", {:force=>:cascade}) -> 0.0040s -- add_index("redirect_routes", ["path"], {:name=>"index_redirect_routes_on_path", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("redirect_routes", ["source_type", "source_id"], {:name=>"index_redirect_routes_on_source_type_and_source_id", :using=>:btree}) -> 0.0026s -- create_table("releases", {:force=>:cascade}) -> 0.0041s -- add_index("releases", ["project_id", "tag"], {:name=>"index_releases_on_project_id_and_tag", :using=>:btree}) -> 0.0027s -- add_index("releases", ["project_id"], {:name=>"index_releases_on_project_id", :using=>:btree}) -> 0.0030s -- create_table("remote_mirrors", {:force=>:cascade}) -> 0.0049s -- add_index("remote_mirrors", ["last_successful_update_at"], {:name=>"index_remote_mirrors_on_last_successful_update_at", :using=>:btree}) -> 0.0027s -- add_index("remote_mirrors", ["project_id"], {:name=>"index_remote_mirrors_on_project_id", :using=>:btree}) -> 0.0026s -- create_table("routes", {:force=>:cascade}) -> 0.0040s -- add_index("routes", ["path"], {:name=>"index_routes_on_path", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("routes", ["path"], {:name=>"index_routes_on_path_text_pattern_ops", :using=>:btree, :opclasses=>{"path"=>"varchar_pattern_ops"}}) -> 0.0027s -- add_index("routes", ["source_type", "source_id"], {:name=>"index_routes_on_source_type_and_source_id", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("sent_notifications", {:force=>:cascade}) -> 0.0041s -- add_index("sent_notifications", ["reply_key"], {:name=>"index_sent_notifications_on_reply_key", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("services", {:force=>:cascade}) -> 0.0090s -- add_index("services", ["project_id"], {:name=>"index_services_on_project_id", :using=>:btree}) -> 0.0027s -- add_index("services", ["template"], {:name=>"index_services_on_template", :using=>:btree}) -> 0.0027s -- create_table("snippets", {:force=>:cascade}) -> 0.0046s -- add_index("snippets", ["author_id"], {:name=>"index_snippets_on_author_id", :using=>:btree}) -> 0.0026s -- add_index("snippets", ["file_name"], {:name=>"index_snippets_on_file_name_trigram", :using=>:gin, :opclasses=>{"file_name"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("snippets", ["project_id"], {:name=>"index_snippets_on_project_id", :using=>:btree}) -> 0.0026s -- add_index("snippets", ["title"], {:name=>"index_snippets_on_title_trigram", :using=>:gin, :opclasses=>{"title"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("snippets", ["updated_at"], {:name=>"index_snippets_on_updated_at", :using=>:btree}) -> 0.0029s -- add_index("snippets", ["visibility_level"], {:name=>"index_snippets_on_visibility_level", :using=>:btree}) -> 0.0026s -- create_table("spam_logs", {:force=>:cascade}) -> 0.0047s -- create_table("subscriptions", {:force=>:cascade}) -> 0.0041s -- add_index("subscriptions", ["subscribable_id", "subscribable_type", "user_id", "project_id"], {:name=>"index_subscriptions_on_subscribable_and_user_id_and_project_id", :unique=>true, :using=>:btree}) -> 0.0028s -- create_table("system_note_metadata", {:force=>:cascade}) -> 0.0040s -- add_index("system_note_metadata", ["note_id"], {:name=>"index_system_note_metadata_on_note_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("taggings", {:force=>:cascade}) -> 0.0041s -- add_index("taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], {:name=>"taggings_idx", :unique=>true, :using=>:btree}) -> 0.0030s -- add_index("taggings", ["tag_id"], {:name=>"index_taggings_on_tag_id", :using=>:btree}) -> 0.0028s -- add_index("taggings", ["taggable_id", "taggable_type", "context"], {:name=>"index_taggings_on_taggable_id_and_taggable_type_and_context", :using=>:btree}) -> 0.0027s -- add_index("taggings", ["taggable_id", "taggable_type"], {:name=>"index_taggings_on_taggable_id_and_taggable_type", :using=>:btree}) -> 0.0026s -- create_table("tags", {:force=>:cascade}) -> 0.0042s -- add_index("tags", ["name"], {:name=>"index_tags_on_name", :unique=>true, :using=>:btree}) -> 0.0027s -- create_table("term_agreements", {:force=>:cascade}) -> 0.0033s -- add_index("term_agreements", ["term_id"], {:name=>"index_term_agreements_on_term_id", :using=>:btree}) -> 0.0027s -- add_index("term_agreements", ["user_id", "term_id"], {:name=>"term_agreements_unique_index", :unique=>true, :using=>:btree}) -> 0.0026s -- add_index("term_agreements", ["user_id"], {:name=>"index_term_agreements_on_user_id", :using=>:btree}) -> 0.0027s -- create_table("timelogs", {:force=>:cascade}) -> 0.0029s -- add_index("timelogs", ["issue_id"], {:name=>"index_timelogs_on_issue_id", :using=>:btree}) -> 0.0027s -- add_index("timelogs", ["merge_request_id"], {:name=>"index_timelogs_on_merge_request_id", :using=>:btree}) -> 0.0026s -- add_index("timelogs", ["user_id"], {:name=>"index_timelogs_on_user_id", :using=>:btree}) -> 0.0025s -- create_table("todos", {:force=>:cascade}) -> 0.0042s -- add_index("todos", ["author_id"], {:name=>"index_todos_on_author_id", :using=>:btree}) -> 0.0026s -- add_index("todos", ["commit_id"], {:name=>"index_todos_on_commit_id", :using=>:btree}) -> 0.0026s -- add_index("todos", ["note_id"], {:name=>"index_todos_on_note_id", :using=>:btree}) -> 0.0026s -- add_index("todos", ["project_id"], {:name=>"index_todos_on_project_id", :using=>:btree}) -> 0.0026s -- add_index("todos", ["target_type", "target_id"], {:name=>"index_todos_on_target_type_and_target_id", :using=>:btree}) -> 0.0026s -- add_index("todos", ["user_id", "id"], {:name=>"index_todos_on_user_id_and_id_done", :where=>"((state)::text = 'done'::text)", :using=>:btree}) -> 0.0075s -- add_index("todos", ["user_id", "id"], {:name=>"index_todos_on_user_id_and_id_pending", :where=>"((state)::text = 'pending'::text)", :using=>:btree}) -> 0.0027s -- add_index("todos", ["user_id"], {:name=>"index_todos_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("trending_projects", {:force=>:cascade}) -> 0.0027s -- add_index("trending_projects", ["project_id"], {:name=>"index_trending_projects_on_project_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("u2f_registrations", {:force=>:cascade}) -> 0.0041s -- add_index("u2f_registrations", ["key_handle"], {:name=>"index_u2f_registrations_on_key_handle", :using=>:btree}) -> 0.0028s -- add_index("u2f_registrations", ["user_id"], {:name=>"index_u2f_registrations_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("uploads", {:force=>:cascade}) -> 0.0042s -- add_index("uploads", ["checksum"], {:name=>"index_uploads_on_checksum", :using=>:btree}) -> 0.0027s -- add_index("uploads", ["model_id", "model_type"], {:name=>"index_uploads_on_model_id_and_model_type", :using=>:btree}) -> 0.0027s -- add_index("uploads", ["uploader", "path"], {:name=>"index_uploads_on_uploader_and_path", :using=>:btree}) -> 0.0027s -- create_table("user_agent_details", {:force=>:cascade}) -> 0.0045s -- add_index("user_agent_details", ["subject_id", "subject_type"], {:name=>"index_user_agent_details_on_subject_id_and_subject_type", :using=>:btree}) -> 0.0028s -- create_table("user_callouts", {:force=>:cascade}) -> 0.0027s -- add_index("user_callouts", ["user_id", "feature_name"], {:name=>"index_user_callouts_on_user_id_and_feature_name", :unique=>true, :using=>:btree}) -> 0.0056s -- add_index("user_callouts", ["user_id"], {:name=>"index_user_callouts_on_user_id", :using=>:btree}) -> 0.0026s -- create_table("user_custom_attributes", {:force=>:cascade}) -> 0.0041s -- add_index("user_custom_attributes", ["key", "value"], {:name=>"index_user_custom_attributes_on_key_and_value", :using=>:btree}) -> 0.0027s -- add_index("user_custom_attributes", ["user_id", "key"], {:name=>"index_user_custom_attributes_on_user_id_and_key", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("user_interacted_projects", {:id=>false, :force=>:cascade}) -> 0.0012s -- add_index("user_interacted_projects", ["project_id", "user_id"], {:name=>"index_user_interacted_projects_on_project_id_and_user_id", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("user_interacted_projects", ["user_id"], {:name=>"index_user_interacted_projects_on_user_id", :using=>:btree}) -> 0.0027s -- create_table("user_synced_attributes_metadata", {:force=>:cascade}) -> 0.0049s -- add_index("user_synced_attributes_metadata", ["user_id"], {:name=>"index_user_synced_attributes_metadata_on_user_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("users", {:force=>:cascade}) -> 0.0142s -- add_index("users", ["admin"], {:name=>"index_users_on_admin", :using=>:btree}) -> 0.0027s -- add_index("users", ["confirmation_token"], {:name=>"index_users_on_confirmation_token", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("users", ["created_at"], {:name=>"index_users_on_created_at", :using=>:btree}) -> 0.0026s -- add_index("users", ["email"], {:name=>"index_users_on_email", :unique=>true, :using=>:btree}) -> 0.0032s -- add_index("users", ["email"], {:name=>"index_users_on_email_trigram", :using=>:gin, :opclasses=>{"email"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("users", ["ghost"], {:name=>"index_users_on_ghost", :using=>:btree}) -> 0.0026s -- add_index("users", ["incoming_email_token"], {:name=>"index_users_on_incoming_email_token", :using=>:btree}) -> 0.0027s -- add_index("users", ["name"], {:name=>"index_users_on_name", :using=>:btree}) -> 0.0027s -- add_index("users", ["name"], {:name=>"index_users_on_name_trigram", :using=>:gin, :opclasses=>{"name"=>"gin_trgm_ops"}}) -> 0.0021s -- add_index("users", ["reset_password_token"], {:name=>"index_users_on_reset_password_token", :unique=>true, :using=>:btree}) -> 0.0027s -- add_index("users", ["rss_token"], {:name=>"index_users_on_rss_token", :using=>:btree}) -> 0.0026s -- add_index("users", ["state"], {:name=>"index_users_on_state", :using=>:btree}) -> 0.0026s -- add_index("users", ["username"], {:name=>"index_users_on_username", :using=>:btree}) -> 0.0027s -- add_index("users", ["username"], {:name=>"index_users_on_username_trigram", :using=>:gin, :opclasses=>{"username"=>"gin_trgm_ops"}}) -> 0.0021s -- create_table("users_star_projects", {:force=>:cascade}) -> 0.0029s -- add_index("users_star_projects", ["project_id"], {:name=>"index_users_star_projects_on_project_id", :using=>:btree}) -> 0.0026s -- add_index("users_star_projects", ["user_id", "project_id"], {:name=>"index_users_star_projects_on_user_id_and_project_id", :unique=>true, :using=>:btree}) -> 0.0026s -- create_table("web_hook_logs", {:force=>:cascade}) -> 0.0042s -- add_index("web_hook_logs", ["web_hook_id"], {:name=>"index_web_hook_logs_on_web_hook_id", :using=>:btree}) -> 0.0026s -- create_table("web_hooks", {:force=>:cascade}) -> 0.0080s -- add_index("web_hooks", ["project_id"], {:name=>"index_web_hooks_on_project_id", :using=>:btree}) -> 0.0027s -- add_index("web_hooks", ["type"], {:name=>"index_web_hooks_on_type", :using=>:btree}) -> 0.0026s -- add_foreign_key("badges", "namespaces", {:column=>"group_id", :on_delete=>:cascade}) -> 0.0026s -- add_foreign_key("badges", "projects", {:on_delete=>:cascade}) -> 0.0023s -- add_foreign_key("boards", "namespaces", {:column=>"group_id", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("boards", "projects", {:name=>"fk_f15266b5f9", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("chat_teams", "namespaces", {:on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("ci_build_trace_chunks", "ci_builds", {:column=>"build_id", :on_delete=>:cascade}) -> 0.0023s -- add_foreign_key("ci_build_trace_section_names", "projects", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("ci_build_trace_sections", "ci_build_trace_section_names", {:column=>"section_name_id", :name=>"fk_264e112c66", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("ci_build_trace_sections", "ci_builds", {:column=>"build_id", :name=>"fk_4ebe41f502", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("ci_build_trace_sections", "projects", {:on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("ci_builds", "ci_pipelines", {:column=>"auto_canceled_by_id", :name=>"fk_a2141b1522", :on_delete=>:nullify}) -> 0.0018s -- add_foreign_key("ci_builds", "ci_pipelines", {:column=>"commit_id", :name=>"fk_d3130c9a7f", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("ci_builds", "ci_stages", {:column=>"stage_id", :name=>"fk_3a9eaa254d", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("ci_builds", "projects", {:name=>"fk_befce0568a", :on_delete=>:cascade}) -> 0.0021s -- add_foreign_key("ci_builds_metadata", "ci_builds", {:column=>"build_id", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("ci_builds_metadata", "projects", {:on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("ci_group_variables", "namespaces", {:column=>"group_id", :name=>"fk_33ae4d58d8", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("ci_job_artifacts", "ci_builds", {:column=>"job_id", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("ci_job_artifacts", "projects", {:on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("ci_pipeline_schedule_variables", "ci_pipeline_schedules", {:column=>"pipeline_schedule_id", :name=>"fk_41c35fda51", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("ci_pipeline_schedules", "projects", {:name=>"fk_8ead60fcc4", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("ci_pipeline_schedules", "users", {:column=>"owner_id", :name=>"fk_9ea99f58d2", :on_delete=>:nullify}) -> 0.0022s -- add_foreign_key("ci_pipeline_variables", "ci_pipelines", {:column=>"pipeline_id", :name=>"fk_f29c5f4380", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("ci_pipelines", "ci_pipeline_schedules", {:column=>"pipeline_schedule_id", :name=>"fk_3d34ab2e06", :on_delete=>:nullify}) -> 0.0016s -- add_foreign_key("ci_pipelines", "ci_pipelines", {:column=>"auto_canceled_by_id", :name=>"fk_262d4c2d19", :on_delete=>:nullify}) -> 0.0014s -- add_foreign_key("ci_pipelines", "projects", {:name=>"fk_86635dbd80", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("ci_runner_namespaces", "ci_runners", {:column=>"runner_id", :on_delete=>:cascade}) -> 0.0018s -- add_foreign_key("ci_runner_namespaces", "namespaces", {:on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("ci_runner_projects", "projects", {:name=>"fk_4478a6f1e4", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("ci_stages", "ci_pipelines", {:column=>"pipeline_id", :name=>"fk_fb57e6cc56", :on_delete=>:cascade}) -> 0.0012s -- add_foreign_key("ci_stages", "projects", {:name=>"fk_2360681d1d", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("ci_trigger_requests", "ci_triggers", {:column=>"trigger_id", :name=>"fk_b8ec8b7245", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("ci_triggers", "projects", {:name=>"fk_e3e63f966e", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("ci_triggers", "users", {:column=>"owner_id", :name=>"fk_e8e10d1964", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("ci_variables", "projects", {:name=>"fk_ada5eb64b3", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("cluster_platforms_kubernetes", "clusters", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("cluster_projects", "clusters", {:on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("cluster_projects", "projects", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("cluster_providers_gcp", "clusters", {:on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("clusters", "users", {:on_delete=>:nullify}) -> 0.0016s -- add_foreign_key("clusters_applications_helm", "clusters", {:on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("clusters_applications_ingress", "clusters", {:name=>"fk_753a7b41c1", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("clusters_applications_prometheus", "clusters", {:name=>"fk_557e773639", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("clusters_applications_runners", "ci_runners", {:column=>"runner_id", :name=>"fk_02de2ded36", :on_delete=>:nullify}) -> 0.0014s -- add_foreign_key("clusters_applications_runners", "clusters", {:on_delete=>:cascade}) -> 0.0012s -- add_foreign_key("container_repositories", "projects") -> 0.0017s -- add_foreign_key("deploy_keys_projects", "projects", {:name=>"fk_58a901ca7e", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("deployments", "projects", {:name=>"fk_b9a3851b82", :on_delete=>:cascade}) -> 0.0018s -- add_foreign_key("environments", "projects", {:name=>"fk_d1c8c1da6a", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("events", "projects", {:on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("events", "users", {:column=>"author_id", :name=>"fk_edfd187b6f", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("fork_network_members", "fork_networks", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("fork_network_members", "projects", {:column=>"forked_from_project_id", :name=>"fk_b01280dae4", :on_delete=>:nullify}) -> 0.0014s -- add_foreign_key("fork_network_members", "projects", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("fork_networks", "projects", {:column=>"root_project_id", :name=>"fk_e7b436b2b5", :on_delete=>:nullify}) -> 0.0013s -- add_foreign_key("forked_project_links", "projects", {:column=>"forked_to_project_id", :name=>"fk_434510edb0", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("gcp_clusters", "projects", {:on_delete=>:cascade}) -> 0.0021s -- add_foreign_key("gcp_clusters", "services", {:on_delete=>:nullify}) -> 0.0016s -- add_foreign_key("gcp_clusters", "users", {:on_delete=>:nullify}) -> 0.0015s -- add_foreign_key("gpg_key_subkeys", "gpg_keys", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("gpg_keys", "users", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("gpg_signatures", "gpg_key_subkeys", {:on_delete=>:nullify}) -> 0.0016s -- add_foreign_key("gpg_signatures", "gpg_keys", {:on_delete=>:nullify}) -> 0.0012s -- add_foreign_key("gpg_signatures", "projects", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("group_custom_attributes", "namespaces", {:column=>"group_id", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("internal_ids", "namespaces", {:name=>"fk_162941d509", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("internal_ids", "projects", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("issue_assignees", "issues", {:name=>"fk_b7d881734a", :on_delete=>:cascade}) -> 0.0022s -- add_foreign_key("issue_assignees", "users", {:name=>"fk_5e0c8d9154", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("issue_metrics", "issues", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("issues", "issues", {:column=>"moved_to_id", :name=>"fk_a194299be1", :on_delete=>:nullify}) -> 0.0015s -- add_foreign_key("issues", "milestones", {:name=>"fk_96b1dd429c", :on_delete=>:nullify}) -> 0.0018s -- add_foreign_key("issues", "projects", {:name=>"fk_899c8f3231", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("issues", "users", {:column=>"author_id", :name=>"fk_05f1e72feb", :on_delete=>:nullify}) -> 0.0017s -- add_foreign_key("issues", "users", {:column=>"closed_by_id", :name=>"fk_c63cbf6c25", :on_delete=>:nullify}) -> 0.0016s -- add_foreign_key("issues", "users", {:column=>"updated_by_id", :name=>"fk_ffed080f01", :on_delete=>:nullify}) -> 0.0016s -- add_foreign_key("label_priorities", "labels", {:on_delete=>:cascade}) -> 0.0018s -- add_foreign_key("label_priorities", "projects", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("labels", "namespaces", {:column=>"group_id", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("labels", "projects", {:name=>"fk_7de4989a69", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("lfs_file_locks", "projects", {:on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("lfs_file_locks", "users", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("lists", "boards", {:name=>"fk_0d3f677137", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("lists", "labels", {:name=>"fk_7a5553d60f", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("members", "users", {:name=>"fk_2e88fb7ce9", :on_delete=>:cascade}) -> 0.0019s -- add_foreign_key("merge_request_diff_commits", "merge_request_diffs", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("merge_request_diff_files", "merge_request_diffs", {:on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("merge_request_diffs", "merge_requests", {:name=>"fk_8483f3258f", :on_delete=>:cascade}) -> 0.0024s -- add_foreign_key("merge_request_metrics", "ci_pipelines", {:column=>"pipeline_id", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("merge_request_metrics", "merge_requests", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("merge_request_metrics", "users", {:column=>"latest_closed_by_id", :name=>"fk_ae440388cc", :on_delete=>:nullify}) -> 0.0016s -- add_foreign_key("merge_request_metrics", "users", {:column=>"merged_by_id", :name=>"fk_7f28d925f3", :on_delete=>:nullify}) -> 0.0015s -- add_foreign_key("merge_requests", "ci_pipelines", {:column=>"head_pipeline_id", :name=>"fk_fd82eae0b9", :on_delete=>:nullify}) -> 0.0016s -- add_foreign_key("merge_requests", "merge_request_diffs", {:column=>"latest_merge_request_diff_id", :name=>"fk_06067f5644", :on_delete=>:nullify}) -> 0.0014s -- add_foreign_key("merge_requests", "milestones", {:name=>"fk_6a5165a692", :on_delete=>:nullify}) -> 0.0015s -- add_foreign_key("merge_requests", "projects", {:column=>"source_project_id", :name=>"fk_3308fe130c", :on_delete=>:nullify}) -> 0.0018s -- add_foreign_key("merge_requests", "projects", {:column=>"target_project_id", :name=>"fk_a6963e8447", :on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("merge_requests", "users", {:column=>"assignee_id", :name=>"fk_6149611a04", :on_delete=>:nullify}) -> 0.0017s -- add_foreign_key("merge_requests", "users", {:column=>"author_id", :name=>"fk_e719a85f8a", :on_delete=>:nullify}) -> 0.0025s -- add_foreign_key("merge_requests", "users", {:column=>"merge_user_id", :name=>"fk_ad525e1f87", :on_delete=>:nullify}) -> 0.0024s -- add_foreign_key("merge_requests", "users", {:column=>"updated_by_id", :name=>"fk_641731faff", :on_delete=>:nullify}) -> 0.0022s -- add_foreign_key("merge_requests_closing_issues", "issues", {:on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("merge_requests_closing_issues", "merge_requests", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("milestones", "namespaces", {:column=>"group_id", :name=>"fk_95650a40d4", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("milestones", "projects", {:name=>"fk_9bd0a0c791", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("notes", "projects", {:name=>"fk_99e097b079", :on_delete=>:cascade}) -> 0.0022s -- add_foreign_key("oauth_openid_requests", "oauth_access_grants", {:column=>"access_grant_id", :name=>"fk_oauth_openid_requests_oauth_access_grants_access_grant_id"}) -> 0.0014s -- add_foreign_key("pages_domains", "projects", {:name=>"fk_ea2f6dfc6f", :on_delete=>:cascade}) -> 0.0019s -- add_foreign_key("personal_access_tokens", "users") -> 0.0016s -- add_foreign_key("project_authorizations", "projects", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("project_authorizations", "users", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("project_auto_devops", "projects", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("project_ci_cd_settings", "projects", {:name=>"fk_24c15d2f2e", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("project_custom_attributes", "projects", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("project_deploy_tokens", "deploy_tokens", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("project_deploy_tokens", "projects", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("project_features", "projects", {:name=>"fk_18513d9b92", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("project_group_links", "projects", {:name=>"fk_daa8cee94c", :on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("project_import_data", "projects", {:name=>"fk_ffb9ee3a10", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("project_mirror_data", "projects", {:on_delete=>:cascade}) -> 0.0018s -- add_foreign_key("project_statistics", "projects", {:on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("protected_branch_merge_access_levels", "protected_branches", {:name=>"fk_8a3072ccb3", :on_delete=>:cascade}) -> 0.0014s -- add_foreign_key("protected_branch_push_access_levels", "protected_branches", {:name=>"fk_9ffc86a3d9", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("protected_branches", "projects", {:name=>"fk_7a9c6d93e7", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("protected_tag_create_access_levels", "namespaces", {:column=>"group_id"}) -> 0.0015s -- add_foreign_key("protected_tag_create_access_levels", "protected_tags", {:name=>"fk_f7dfda8c51", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("protected_tag_create_access_levels", "users") -> 0.0015s -- add_foreign_key("protected_tags", "projects", {:name=>"fk_8e4af87648", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("push_event_payloads", "events", {:name=>"fk_36c74129da", :on_delete=>:cascade}) -> 0.0013s -- add_foreign_key("releases", "projects", {:name=>"fk_47fe2a0596", :on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("remote_mirrors", "projects", {:on_delete=>:cascade}) -> 0.0018s -- add_foreign_key("services", "projects", {:name=>"fk_71cce407f9", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("snippets", "projects", {:name=>"fk_be41fd4bb7", :on_delete=>:cascade}) -> 0.0020s -- add_foreign_key("subscriptions", "projects", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("system_note_metadata", "notes", {:name=>"fk_d83a918cb1", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("term_agreements", "application_setting_terms", {:column=>"term_id"}) -> 0.0015s -- add_foreign_key("term_agreements", "users", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("timelogs", "issues", {:name=>"fk_timelogs_issues_issue_id", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("timelogs", "merge_requests", {:name=>"fk_timelogs_merge_requests_merge_request_id", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("todos", "notes", {:name=>"fk_91d1f47b13", :on_delete=>:cascade}) -> 0.0018s -- add_foreign_key("todos", "projects", {:name=>"fk_45054f9c45", :on_delete=>:cascade}) -> 0.0020s -- add_foreign_key("todos", "users", {:column=>"author_id", :name=>"fk_ccf0373936", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("todos", "users", {:name=>"fk_d94154aa95", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("trending_projects", "projects", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("u2f_registrations", "users") -> 0.0017s -- add_foreign_key("user_callouts", "users", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("user_custom_attributes", "users", {:on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("user_interacted_projects", "projects", {:name=>"fk_722ceba4f7", :on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("user_interacted_projects", "users", {:name=>"fk_0894651f08", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("user_synced_attributes_metadata", "users", {:on_delete=>:cascade}) -> 0.0016s -- add_foreign_key("users", "application_setting_terms", {:column=>"accepted_term_id", :name=>"fk_789cd90b35", :on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("users_star_projects", "projects", {:name=>"fk_22cd27ddfc", :on_delete=>:cascade}) -> 0.0017s -- add_foreign_key("web_hook_logs", "web_hooks", {:on_delete=>:cascade}) -> 0.0015s -- add_foreign_key("web_hooks", "projects", {:name=>"fk_0c8ca6d9d1", :on_delete=>:cascade}) -> 0.0016s -- initialize_schema_migrations_table() -> 0.0099s == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/001_admin.rb Administrator account created: login: root password: You'll be prompted to create one on your first visit. == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb - execute "bash" "/tmp/chef-script20180622-11711-1hf6ind" Recipe: gitlab::gitlab-rails * execute[clear the gitlab-rails cache] action run - execute /opt/gitlab/bin/gitlab-rake cache:clear Recipe: gitlab::logrotate_folders_and_configs * directory[/var/opt/gitlab/logrotate] action create - create new directory /var/opt/gitlab/logrotate - change mode from '' to '0700' * directory[/var/opt/gitlab/logrotate/logrotate.d] action create - create new directory /var/opt/gitlab/logrotate/logrotate.d - change mode from '' to '0700' * directory[/var/log/gitlab/logrotate] action create - create new directory /var/log/gitlab/logrotate - change mode from '' to '0700' * template[/var/opt/gitlab/logrotate/logrotate.conf] action create - create new file /var/opt/gitlab/logrotate/logrotate.conf - update content in file /var/opt/gitlab/logrotate/logrotate.conf from none to 378c95 --- /var/opt/gitlab/logrotate/logrotate.conf 2018-06-22 15:41:31.515154258 +0900 +++ /var/opt/gitlab/logrotate/.chef-logrotate20180622-11711-k4lrr6.conf 2018-06-22 15:41:31.515154258 +0900 @@ -1 +1,10 @@ +# Generated by 'gitlab-ctl reconfigure'. +# Modifications will be overwritten! + +include /var/opt/gitlab/logrotate/logrotate.d/nginx +include /var/opt/gitlab/logrotate/logrotate.d/unicorn +include /var/opt/gitlab/logrotate/logrotate.d/gitlab-rails +include /var/opt/gitlab/logrotate/logrotate.d/gitlab-shell +include /var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse +include /var/opt/gitlab/logrotate/logrotate.d/gitlab-pages - change mode from '' to '0644' * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create - create new file /var/opt/gitlab/logrotate/logrotate.d/nginx - update content in file /var/opt/gitlab/logrotate/logrotate.d/nginx from none to b0c555 --- /var/opt/gitlab/logrotate/logrotate.d/nginx 2018-06-22 15:41:31.527154042 +0900 +++ /var/opt/gitlab/logrotate/logrotate.d/.chef-nginx20180622-11711-1jonn07 2018-06-22 15:41:31.527154042 +0900 @@ -1 +1,15 @@ +# Generated by gitlab-ctl reconfigure +# Modifications will be overwritten! + +/var/log/gitlab/nginx/*.log { + daily + + rotate 30 + compress + copytruncate + missingok + postrotate + + endscript +} * template[/var/opt/gitlab/logrotate/logrotate.d/unicorn] action create - create new file /var/opt/gitlab/logrotate/logrotate.d/unicorn - update content in file /var/opt/gitlab/logrotate/logrotate.d/unicorn from none to 1520c7 --- /var/opt/gitlab/logrotate/logrotate.d/unicorn 2018-06-22 15:41:31.535153896 +0900 +++ /var/opt/gitlab/logrotate/logrotate.d/.chef-unicorn20180622-11711-g9sf07 2018-06-22 15:41:31.535153896 +0900 @@ -1 +1,15 @@ +# Generated by gitlab-ctl reconfigure +# Modifications will be overwritten! + +/var/log/gitlab/unicorn/*.log { + daily + + rotate 30 + compress + copytruncate + missingok + postrotate + + endscript +} * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create - create new file /var/opt/gitlab/logrotate/logrotate.d/gitlab-rails - update content in file /var/opt/gitlab/logrotate/logrotate.d/gitlab-rails from none to f44586 --- /var/opt/gitlab/logrotate/logrotate.d/gitlab-rails 2018-06-22 15:41:31.543153752 +0900 +++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-rails20180622-11711-1wbm2lj 2018-06-22 15:41:31.543153752 +0900 @@ -1 +1,15 @@ +# Generated by gitlab-ctl reconfigure +# Modifications will be overwritten! + +/var/log/gitlab/gitlab-rails/*.log { + daily + + rotate 30 + compress + copytruncate + missingok + postrotate + + endscript +} * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create - create new file /var/opt/gitlab/logrotate/logrotate.d/gitlab-shell - update content in file /var/opt/gitlab/logrotate/logrotate.d/gitlab-shell from none to d12268 --- /var/opt/gitlab/logrotate/logrotate.d/gitlab-shell 2018-06-22 15:41:31.555153535 +0900 +++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-shell20180622-11711-1rovi2d 2018-06-22 15:41:31.551153607 +0900 @@ -1 +1,15 @@ +# Generated by gitlab-ctl reconfigure +# Modifications will be overwritten! + +/var/log/gitlab/gitlab-shell//*.log { + daily + + rotate 30 + compress + copytruncate + missingok + postrotate + + endscript +} * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create - create new file /var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse - update content in file /var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse from none to 359431 --- /var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse 2018-06-22 15:41:31.563153390 +0900 +++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-workhorse20180622-11711-1g3jgty 2018-06-22 15:41:31.563153390 +0900 @@ -1 +1,15 @@ +# Generated by gitlab-ctl reconfigure +# Modifications will be overwritten! + +/var/log/gitlab/gitlab-workhorse/*.log { + daily + + rotate 30 + compress + copytruncate + missingok + postrotate + + endscript +} * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create - create new file /var/opt/gitlab/logrotate/logrotate.d/gitlab-pages - update content in file /var/opt/gitlab/logrotate/logrotate.d/gitlab-pages from none to 3a241b --- /var/opt/gitlab/logrotate/logrotate.d/gitlab-pages 2018-06-22 15:41:31.571153245 +0900 +++ /var/opt/gitlab/logrotate/logrotate.d/.chef-gitlab-pages20180622-11711-6bx26v 2018-06-22 15:41:31.571153245 +0900 @@ -1 +1,15 @@ +# Generated by gitlab-ctl reconfigure +# Modifications will be overwritten! + +/var/log/gitlab/gitlab-pages/*.log { + daily + + rotate 30 + compress + copytruncate + missingok + postrotate + + endscript +} Recipe: gitlab::unicorn * directory[/var/log/gitlab/unicorn] action create - create new directory /var/log/gitlab/unicorn - change mode from '' to '0700' - change owner from '' to 'git' * directory[/opt/gitlab/var/unicorn] action create - create new directory /opt/gitlab/var/unicorn - change mode from '' to '0700' - change owner from '' to 'git' * directory[/var/opt/gitlab/gitlab-rails/sockets] action create - create new directory /var/opt/gitlab/gitlab-rails/sockets - change mode from '' to '0750' - change owner from '' to 'git' - change group from '' to 'gitlab-www' * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date) * template[/var/opt/gitlab/gitlab-rails/etc/unicorn.rb] action create - create new file /var/opt/gitlab/gitlab-rails/etc/unicorn.rb - update content in file /var/opt/gitlab/gitlab-rails/etc/unicorn.rb from none to e39bd2 --- /var/opt/gitlab/gitlab-rails/etc/unicorn.rb 2018-06-22 15:41:31.595152811 +0900 +++ /var/opt/gitlab/gitlab-rails/etc/.chef-unicorn20180622-11711-1xle47h.rb 2018-06-22 15:41:31.595152811 +0900 @@ -1 +1,59 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + + +# What ports/sockets to listen on, and what options for them. +listen "127.0.0.1:8080", :tcp_nopush => true +listen "/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket", :backlog => 1024 + +working_directory '/var/opt/gitlab/gitlab-rails/working' + +# What the timeout for killing busy workers is, in seconds +timeout 60 + +# Whether the app should be pre-loaded +preload_app true + +# How many worker processes +worker_processes 3 + +# What to do before we fork a worker +before_fork do |server, worker| + old_pid = "#{server.config[:pid]}.oldbin" + if old_pid != server.pid + begin + sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU + Process.kill(sig, File.read(old_pid).to_i) + rescue Errno::ENOENT, Errno::ESRCH + end + end + + ActiveRecord::Base.connection.disconnect! if defined?(ActiveRecord::Base) + +end + +# What to do after we fork a worker +after_fork do |server, worker| + ActiveRecord::Base.establish_connection if defined?(ActiveRecord::Base) + defined?(::Prometheus::Client.reinitialize_on_pid_change) && + Prometheus::Client.reinitialize_on_pid_change + +end + +# Where to drop a pidfile +pid '/opt/gitlab/var/unicorn/unicorn.pid' + +# Where stderr gets logged +stderr_path '/var/log/gitlab/unicorn/unicorn_stderr.log' + +# Where stdout gets logged +stdout_path '/var/log/gitlab/unicorn/unicorn_stdout.log' + +# Min memory size (RSS) per worker +ENV['GITLAB_UNICORN_MEMORY_MIN'] = (400 * 1 << 20).to_s + +# Max memory size (RSS) per worker +ENV['GITLAB_UNICORN_MEMORY_MAX'] = (650 * 1 << 20).to_s + - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/unicorn] action create - create new directory /opt/gitlab/sv/unicorn - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/unicorn/log] action create - create new directory /opt/gitlab/sv/unicorn/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/unicorn/log/main] action create - create new directory /opt/gitlab/sv/unicorn/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/unicorn/run] action create - create new file /opt/gitlab/sv/unicorn/run - update content in file /opt/gitlab/sv/unicorn/run from none to dab388 --- /opt/gitlab/sv/unicorn/run 2018-06-22 15:41:31.627152232 +0900 +++ /opt/gitlab/sv/unicorn/.chef-run20180622-11711-1bat5cw 2018-06-22 15:41:31.627152232 +0900 @@ -1 +1,25 @@ +#!/bin/bash + +# Let runit capture all script error messages +exec 2>&1 + +# Setup run directory. +mkdir -p /run/gitlab/unicorn +rm /run/gitlab/unicorn/*.db 2> /dev/null +chmod 0700 /run/gitlab/unicorn +chown git /run/gitlab/unicorn +export prometheus_run_dir='/run/gitlab/unicorn' + + + + +exec chpst -P -u git \ + /usr/bin/env \ + current_pidfile=/opt/gitlab/var/unicorn/unicorn.pid \ + rails_app=gitlab-rails \ + user=git \ + environment=production \ + unicorn_rb=/var/opt/gitlab/gitlab-rails/etc/unicorn.rb \ + prometheus_multiproc_dir="${prometheus_run_dir}" \ + /opt/gitlab/embedded/bin/gitlab-unicorn-wrapper - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/unicorn/log/run] action create - create new file /opt/gitlab/sv/unicorn/log/run - update content in file /opt/gitlab/sv/unicorn/log/run from none to d50262 --- /opt/gitlab/sv/unicorn/log/run 2018-06-22 15:41:31.639152015 +0900 +++ /opt/gitlab/sv/unicorn/log/.chef-run20180622-11711-8cypse 2018-06-22 15:41:31.635152088 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/unicorn - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/unicorn/config] action create - create new file /var/log/gitlab/unicorn/config - update content in file /var/log/gitlab/unicorn/config from none to 623c00 --- /var/log/gitlab/unicorn/config 2018-06-22 15:41:31.647151870 +0900 +++ /var/log/gitlab/unicorn/.chef-config20180622-11711-tufyko 2018-06-22 15:41:31.647151870 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload unicorn svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart unicorn svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/unicorn/down] action delete (up to date) * directory[/opt/gitlab/sv/unicorn/control] action create - create new directory /opt/gitlab/sv/unicorn/control - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/unicorn/control/t] action create - create new file /opt/gitlab/sv/unicorn/control/t - update content in file /opt/gitlab/sv/unicorn/control/t from none to 84b233 --- /opt/gitlab/sv/unicorn/control/t 2018-06-22 15:41:31.663151582 +0900 +++ /opt/gitlab/sv/unicorn/control/.chef-t20180622-11711-k4qlgv 2018-06-22 15:41:31.663151582 +0900 @@ -1 +1,4 @@ +#!/bin/sh +echo "Received TERM from runit, sending to process group (-PID)" +kill -- -$(cat /opt/gitlab/service/unicorn/supervise/pid) - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * link[/opt/gitlab/init/unicorn] action create - create symlink at /opt/gitlab/init/unicorn to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/unicorn] action create - create symlink at /opt/gitlab/service/unicorn to /opt/gitlab/sv/unicorn * ruby_block[supervise_unicorn_sleep] action run - execute the ruby block supervise_unicorn_sleep * directory[/opt/gitlab/sv/unicorn/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/unicorn/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/unicorn/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/log/supervise/control] action touch (skipped due to only_if) * service[unicorn] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start unicorn] action run [execute] ok: run: unicorn: (pid 12756) 1s - execute /opt/gitlab/bin/gitlab-ctl start unicorn * sysctl[net.core.somaxconn] action create * directory[create /etc/sysctl.d for net.core.somaxconn] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create - create new file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf - update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf from none to 353a75 --- /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf 2018-06-22 15:41:35.499083819 +0900 +++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-net20180622-11711-ylamvs.core.somaxconn.conf 2018-06-22 15:41:35.499083819 +0900 @@ -1 +1,2 @@ +net.core.somaxconn = 1024 * execute[load sysctl conf net.core.somaxconn] action run [execute] kernel.printk = 4 4 1 7 net.ipv6.conf.all.use_tempaddr = 2 net.ipv6.conf.default.use_tempaddr = 2 kernel.kptr_restrict = 1 fs.protected_hardlinks = 1 fs.protected_symlinks = 1 fs.inotify.max_user_instances = 1024 kernel.sysrq = 176 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.all.rp_filter = 1 net.ipv4.tcp_syncookies = 1 kernel.yama.ptrace_scope = 1 vm.mmap_min_addr = 65536 kernel.sem = 250 32000 32 262 kernel.shmall = 4194304 kernel.shmmax = 17179869184 - execute cat /etc/sysctl.conf /etc/sysctl.d/*.conf | sysctl -e -p - * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create - create symlink at /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf to /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf * file[delete /etc/sysctl.d/90-postgresql.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf net.core.somaxconn] action delete (skipped due to only_if) * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing) Recipe: gitlab::sidekiq * directory[/var/log/gitlab/sidekiq] action create - create new directory /var/log/gitlab/sidekiq - change mode from '' to '0700' - change owner from '' to 'git' * directory[/opt/gitlab/sv/sidekiq] action create - create new directory /opt/gitlab/sv/sidekiq - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/sidekiq/log] action create - create new directory /opt/gitlab/sv/sidekiq/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/sidekiq/log/main] action create - create new directory /opt/gitlab/sv/sidekiq/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/sidekiq/run] action create - create new file /opt/gitlab/sv/sidekiq/run - update content in file /opt/gitlab/sv/sidekiq/run from none to f49a74 --- /opt/gitlab/sv/sidekiq/run 2018-06-22 15:41:35.563082715 +0900 +++ /opt/gitlab/sv/sidekiq/.chef-run20180622-11711-1faj0sz 2018-06-22 15:41:35.563082715 +0900 @@ -1 +1,25 @@ +#!/bin/sh + +cd /var/opt/gitlab/gitlab-rails/working + +exec 2>&1 +# Setup run directory. +mkdir -p /run/gitlab/sidekiq +rm /run/gitlab/sidekiq/*.db 2> /dev/null +chmod 0700 /run/gitlab/sidekiq +chown git /run/gitlab/sidekiq +export prometheus_run_dir='/run/gitlab/sidekiq' + + + +exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \ + -U git -u git \ + /usr/bin/env \ + prometheus_multiproc_dir="${prometheus_run_dir}" \ + /opt/gitlab/embedded/bin/bundle exec sidekiq \ + -C /opt/gitlab/embedded/service/gitlab-rails/config/sidekiq_queues.yml \ + -e production \ + -r /opt/gitlab/embedded/service/gitlab-rails \ + -t 4 \ + -c 25 - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/sidekiq/log/run] action create - create new file /opt/gitlab/sv/sidekiq/log/run - update content in file /opt/gitlab/sv/sidekiq/log/run from none to 051d8f --- /opt/gitlab/sv/sidekiq/log/run 2018-06-22 15:41:35.575082507 +0900 +++ /opt/gitlab/sv/sidekiq/log/.chef-run20180622-11711-km2w93 2018-06-22 15:41:35.575082507 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/sidekiq - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/sidekiq/config] action create - create new file /var/log/gitlab/sidekiq/config - update content in file /var/log/gitlab/sidekiq/config from none to 623c00 --- /var/log/gitlab/sidekiq/config 2018-06-22 15:41:35.587082300 +0900 +++ /var/log/gitlab/sidekiq/.chef-config20180622-11711-1gj2x1g 2018-06-22 15:41:35.587082300 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload sidekiq svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart sidekiq svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/sidekiq/down] action delete (up to date) * link[/opt/gitlab/init/sidekiq] action create - create symlink at /opt/gitlab/init/sidekiq to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/sidekiq] action create - create symlink at /opt/gitlab/service/sidekiq to /opt/gitlab/sv/sidekiq * ruby_block[supervise_sidekiq_sleep] action run - execute the ruby block supervise_sidekiq_sleep * directory[/opt/gitlab/sv/sidekiq/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/sidekiq/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/sidekiq/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/log/supervise/control] action touch (skipped due to only_if) * service[sidekiq] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] action run [execute] ok: run: sidekiq: (pid 12794) 1s - execute /opt/gitlab/bin/gitlab-ctl start sidekiq Recipe: gitlab::gitlab-workhorse * directory[/var/opt/gitlab/gitlab-workhorse] action create - create new directory /var/opt/gitlab/gitlab-workhorse - change mode from '' to '0750' - change owner from '' to 'git' - change group from '' to 'gitlab-www' * directory[/var/log/gitlab/gitlab-workhorse] action create - create new directory /var/log/gitlab/gitlab-workhorse - change mode from '' to '0700' - change owner from '' to 'git' * directory[/opt/gitlab/etc/gitlab-workhorse] action create - create new directory /opt/gitlab/etc/gitlab-workhorse - change mode from '' to '0700' - change owner from '' to 'git' * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create * directory[/opt/gitlab/etc/gitlab-workhorse/env] action create - create new directory /opt/gitlab/etc/gitlab-workhorse/env * file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] action create - create new file /opt/gitlab/etc/gitlab-workhorse/env/PATH - update content in file /opt/gitlab/etc/gitlab-workhorse/env/PATH from none to d5dc07 --- /opt/gitlab/etc/gitlab-workhorse/env/PATH 2018-06-22 15:41:41.542982922 +0900 +++ /opt/gitlab/etc/gitlab-workhorse/env/.chef-PATH20180622-11711-14hjfq5 2018-06-22 15:41:41.542982922 +0900 @@ -1 +1,2 @@ +/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin * file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] action create - create new file /opt/gitlab/etc/gitlab-workhorse/env/HOME - update content in file /opt/gitlab/etc/gitlab-workhorse/env/HOME from none to 205bb9 --- /opt/gitlab/etc/gitlab-workhorse/env/HOME 2018-06-22 15:41:41.554982729 +0900 +++ /opt/gitlab/etc/gitlab-workhorse/env/.chef-HOME20180622-11711-111hg2q 2018-06-22 15:41:41.554982729 +0900 @@ -1 +1,2 @@ +/var/opt/gitlab * directory[/opt/gitlab/sv/gitlab-workhorse] action create - create new directory /opt/gitlab/sv/gitlab-workhorse - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create - create new directory /opt/gitlab/sv/gitlab-workhorse/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create - create new directory /opt/gitlab/sv/gitlab-workhorse/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/gitlab-workhorse/run] action create - create new file /opt/gitlab/sv/gitlab-workhorse/run - update content in file /opt/gitlab/sv/gitlab-workhorse/run from none to 275116 --- /opt/gitlab/sv/gitlab-workhorse/run 2018-06-22 15:41:41.590982147 +0900 +++ /opt/gitlab/sv/gitlab-workhorse/.chef-run20180622-11711-4ye4et 2018-06-22 15:41:41.590982147 +0900 @@ -1 +1,27 @@ +#!/bin/sh +set -e # fail on errors + +# Redirect stderr -> stdout +exec 2>&1 + + + +cd /var/opt/gitlab/gitlab-workhorse + +exec chpst -e /opt/gitlab/etc/gitlab-workhorse/env -P \ + -U git \ + -u git \ + /opt/gitlab/embedded/bin/gitlab-workhorse \ + -listenNetwork unix \ + -listenUmask 0 \ + -listenAddr /var/opt/gitlab/gitlab-workhorse/socket \ + -authBackend http://localhost:8080 \ + -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket \ + -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public \ + -pprofListenAddr ''\ + -prometheusListenAddr localhost:9229 \ + -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \ + -config config.toml \ + +# Do not remove this line; it prevents trouble with the trailing backslashes above. - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create - create new file /opt/gitlab/sv/gitlab-workhorse/log/run - update content in file /opt/gitlab/sv/gitlab-workhorse/log/run from none to 6ed0e1 --- /opt/gitlab/sv/gitlab-workhorse/log/run 2018-06-22 15:41:41.602981954 +0900 +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-run20180622-11711-1gq5u8q 2018-06-22 15:41:41.602981954 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/gitlab-workhorse - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/gitlab-workhorse/config] action create - create new file /var/log/gitlab/gitlab-workhorse/config - update content in file /var/log/gitlab/gitlab-workhorse/config from none to 623c00 --- /var/log/gitlab/gitlab-workhorse/config 2018-06-22 15:41:41.610981825 +0900 +++ /var/log/gitlab/gitlab-workhorse/.chef-config20180622-11711-ib4nbw 2018-06-22 15:41:41.610981825 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload gitlab-workhorse svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitlab-workhorse svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitlab-workhorse/down] action delete (up to date) * link[/opt/gitlab/init/gitlab-workhorse] action create - create symlink at /opt/gitlab/init/gitlab-workhorse to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/gitlab-workhorse] action create - create symlink at /opt/gitlab/service/gitlab-workhorse to /opt/gitlab/sv/gitlab-workhorse * ruby_block[supervise_gitlab-workhorse_sleep] action run - execute the ruby block supervise_gitlab-workhorse_sleep * directory[/opt/gitlab/sv/gitlab-workhorse/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/gitlab-workhorse/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/gitlab-workhorse/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/log/supervise/control] action touch (skipped due to only_if) * service[gitlab-workhorse] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitlab-workhorse/VERSION] action create - create new file /var/opt/gitlab/gitlab-workhorse/VERSION - update content in file /var/opt/gitlab/gitlab-workhorse/VERSION from none to 7060c4 --- /var/opt/gitlab/gitlab-workhorse/VERSION 2018-06-22 15:41:46.638902989 +0900 +++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20180622-11711-1ha48jr 2018-06-22 15:41:46.638902989 +0900 @@ -1 +1,2 @@ +gitlab-workhorse v4.2.1-20180606.210537 * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create - create new file /var/opt/gitlab/gitlab-workhorse/config.toml - update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from none to cb62fe --- /var/opt/gitlab/gitlab-workhorse/config.toml 2018-06-22 15:41:46.646902867 +0900 +++ /var/opt/gitlab/gitlab-workhorse/.chef-config20180622-11711-qlgwsl.toml 2018-06-22 15:41:46.646902867 +0900 @@ -1 +1,4 @@ +[redis] +URL = "unix:/var/opt/gitlab/redis/redis.socket" +Password = "" - change owner from '' to 'git' Recipe: gitlab::mailroom_disable * link[/opt/gitlab/service/mailroom] action delete (up to date) * directory[/opt/gitlab/sv/mailroom] action delete (up to date) Recipe: gitlab::nginx * directory[/var/opt/gitlab/nginx] action create - create new directory /var/opt/gitlab/nginx - change mode from '' to '0750' - change owner from '' to 'root' - change group from '' to 'gitlab-www' * directory[/var/opt/gitlab/nginx/conf] action create - create new directory /var/opt/gitlab/nginx/conf - change mode from '' to '0750' - change owner from '' to 'root' - change group from '' to 'gitlab-www' * directory[/var/log/gitlab/nginx] action create - create new directory /var/log/gitlab/nginx - change mode from '' to '0750' - change owner from '' to 'root' - change group from '' to 'gitlab-www' * link[/var/opt/gitlab/nginx/logs] action create - create symlink at /var/opt/gitlab/nginx/logs to /var/log/gitlab/nginx * template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] action create - create new file /var/opt/gitlab/nginx/conf/gitlab-http.conf - update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from none to a347d6 --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2018-06-22 15:41:46.686902256 +0900 +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20180622-11711-9eykdw.conf 2018-06-22 15:41:46.686902256 +0900 @@ -1 +1,120 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +## GitLab +## Modified from https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab-ssl & https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab +## +## Lines starting with two hashes (##) are comments with information. +## Lines starting with one hash (#) are configuration parameters that can be uncommented. +## +################################## +## CHUNKED TRANSFER ## +################################## +## +## It is a known issue that Git-over-HTTP requires chunked transfer encoding [0] +## which is not supported by Nginx < 1.3.9 [1]. As a result, pushing a large object +## with Git (i.e. a single large file) can lead to a 411 error. In theory you can get +## around this by tweaking this configuration file and either: +## - installing an old version of Nginx with the chunkin module [2] compiled in, or +## - using a newer version of Nginx. +## +## At the time of writing we do not know if either of these theoretical solutions works. +## As a workaround users can use Git over SSH to push large files. +## +## [0] https://git.kernel.org/cgit/git/git.git/tree/Documentation/technical/http-protocol.txt#n99 +## [1] https://github.com/agentzh/chunkin-nginx-module#status +## [2] https://github.com/agentzh/chunkin-nginx-module +## +################################### +## configuration ## +################################### + +upstream gitlab-workhorse { + server unix:/var/opt/gitlab/gitlab-workhorse/socket; +} + + +server { + listen *:80; + + + server_name gitlab.example.com; + server_tokens off; ## Don't show the nginx version number, a security best practice + + ## Increase this if you want to upload large attachments + ## Or if you want to accept large git objects over http + client_max_body_size 0; + + + ## Real IP Module Config + ## http://nginx.org/en/docs/http/ngx_http_realip_module.html + + ## HSTS Config + ## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/ + add_header Strict-Transport-Security "max-age=31536000"; + + ## Individual nginx logs for this GitLab vhost + access_log /var/log/gitlab/nginx/gitlab_access.log gitlab_access; + error_log /var/log/gitlab/nginx/gitlab_error.log; + + if ($http_host = "") { + set $http_host_with_default "gitlab.example.com"; + } + + if ($http_host != "") { + set $http_host_with_default $http_host; + } + + gzip on; + gzip_static on; + gzip_comp_level 2; + gzip_http_version 1.1; + gzip_vary on; + gzip_disable "msie6"; + gzip_min_length 10240; + gzip_proxied no-cache no-store private expired auth; + gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml application/rss+xml; + + ## https://github.com/gitlabhq/gitlabhq/issues/694 + ## Some requests take more than 30 seconds. + proxy_read_timeout 3600; + proxy_connect_timeout 300; + proxy_redirect off; + proxy_http_version 1.1; + + proxy_set_header Host $http_host_with_default; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Forwarded-Proto http; + + location ~ (\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$) { + proxy_cache off; + proxy_pass http://gitlab-workhorse; + proxy_request_buffering off; + } + + location / { + proxy_cache off; + proxy_pass http://gitlab-workhorse; + } + + location /assets { + proxy_cache gitlab; + proxy_pass http://gitlab-workhorse; + } + + error_page 404 /404.html; + error_page 422 /422.html; + error_page 500 /500.html; + error_page 502 /502.html; + location ~ ^/(404|422|500|502)(-custom)?\.html$ { + root /opt/gitlab/embedded/service/gitlab-rails/public; + internal; + } + + +} - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/nginx-status.conf] action create - create new file /var/opt/gitlab/nginx/conf/nginx-status.conf - update content in file /var/opt/gitlab/nginx/conf/nginx-status.conf from none to bee808 --- /var/opt/gitlab/nginx/conf/nginx-status.conf 2018-06-22 15:41:46.722901706 +0900 +++ /var/opt/gitlab/nginx/conf/.chef-nginx-status20180622-11711-1fcmkdc.conf 2018-06-22 15:41:46.722901706 +0900 @@ -1 +1,12 @@ +server { + listen *:8060; + server_name localhost; + location /nginx_status { + stub_status on; + server_tokens off; + access_log off; + allow 127.0.0.1; + deny all; + } +} - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/opt/gitlab/nginx/conf/nginx.conf] action create - create new file /var/opt/gitlab/nginx/conf/nginx.conf - update content in file /var/opt/gitlab/nginx/conf/nginx.conf from none to e72ed3 --- /var/opt/gitlab/nginx/conf/nginx.conf 2018-06-22 15:41:46.734901523 +0900 +++ /var/opt/gitlab/nginx/conf/.chef-nginx20180622-11711-1i8ay7h.conf 2018-06-22 15:41:46.734901523 +0900 @@ -1 +1,83 @@ +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run `sudo gitlab-ctl reconfigure`. + +user gitlab-www gitlab-www; +worker_processes 2; +error_log stderr; +pid nginx.pid; + +daemon off; + +events { + worker_connections 10240; +} + +http { + log_format gitlab_access '$remote_addr - $remote_user [$time_local] "$request_method $filtered_request_uri $server_protocol" $status $body_bytes_sent "$filtered_http_referer" "$http_user_agent"'; + log_format gitlab_mattermost_access '$remote_addr - $remote_user [$time_local] "$request_method $filtered_request_uri $server_protocol" $status $body_bytes_sent "$filtered_http_referer" "$http_user_agent"'; + + server_names_hash_bucket_size 64; + + sendfile on; + tcp_nopush on; + tcp_nodelay on; + + keepalive_timeout 65; + + gzip on; + gzip_http_version 1.0; + gzip_comp_level 2; + gzip_proxied any; + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json; + + include /opt/gitlab/embedded/conf/mime.types; + + proxy_cache_path proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2; + proxy_cache gitlab; + + map $http_upgrade $connection_upgrade { + default upgrade; + '' close; + } + + # Remove private_token from the request URI + # In: /foo?private_token=unfiltered&authenticity_token=unfiltered&rss_token=unfiltered&... + # Out: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&... + map $request_uri $temp_request_uri_1 { + default $request_uri; + ~(?i)^(?<start>.*)(?<temp>[\?&]private[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest"; + } + + # Remove authenticity_token from the request URI + # In: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&... + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&... + map $temp_request_uri_1 $temp_request_uri_2 { + default $temp_request_uri_1; + ~(?i)^(?<start>.*)(?<temp>[\?&]authenticity[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest"; + } + + # Remove rss_token from the request URI + # In: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&... + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=[FILTERED]&... + map $temp_request_uri_2 $filtered_request_uri { + default $temp_request_uri_2; + ~(?i)^(?<start>.*)(?<temp>[\?&]rss[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest"; + } + + # A version of the referer without the query string + map $http_referer $filtered_http_referer { + default $http_referer; + ~^(?<temp>.*)\? $temp; + } + + include /var/opt/gitlab/nginx/conf/gitlab-http.conf; + + + + + include /var/opt/gitlab/nginx/conf/nginx-status.conf; + + +} - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' Recipe: nginx::enable * directory[/opt/gitlab/sv/nginx] action create - create new directory /opt/gitlab/sv/nginx - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/nginx/log] action create - create new directory /opt/gitlab/sv/nginx/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/nginx/log/main] action create - create new directory /opt/gitlab/sv/nginx/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/nginx/run] action create - create new file /opt/gitlab/sv/nginx/run - update content in file /opt/gitlab/sv/nginx/run from none to d75aea --- /opt/gitlab/sv/nginx/run 2018-06-22 15:41:46.774900913 +0900 +++ /opt/gitlab/sv/nginx/.chef-run20180622-11711-ul8ot 2018-06-22 15:41:46.774900913 +0900 @@ -1 +1,6 @@ +#!/bin/sh +exec 2>&1 + +cd /var/opt/gitlab/nginx +exec chpst -P /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/nginx/log/run] action create - create new file /opt/gitlab/sv/nginx/log/run - update content in file /opt/gitlab/sv/nginx/log/run from none to c70025 --- /opt/gitlab/sv/nginx/log/run 2018-06-22 15:41:46.786900729 +0900 +++ /opt/gitlab/sv/nginx/log/.chef-run20180622-11711-q7a8j1 2018-06-22 15:41:46.786900729 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/nginx - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/nginx/config] action create - create new file /var/log/gitlab/nginx/config - update content in file /var/log/gitlab/nginx/config from none to 623c00 --- /var/log/gitlab/nginx/config 2018-06-22 15:41:46.794900607 +0900 +++ /var/log/gitlab/nginx/.chef-config20180622-11711-1snsc39 2018-06-22 15:41:46.794900607 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload nginx svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart nginx svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/nginx/down] action delete (up to date) * link[/opt/gitlab/init/nginx] action create - create symlink at /opt/gitlab/init/nginx to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/nginx] action create - create symlink at /opt/gitlab/service/nginx to /opt/gitlab/sv/nginx * ruby_block[supervise_nginx_sleep] action run - execute the ruby block supervise_nginx_sleep * directory[/opt/gitlab/sv/nginx/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/nginx/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/nginx/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/log/supervise/control] action touch (skipped due to only_if) * service[nginx] action nothing (skipped due to action :nothing) * execute[reload nginx] action nothing (skipped due to action :nothing) Recipe: gitlab::nginx * execute[/opt/gitlab/bin/gitlab-ctl start nginx] action run [execute] ok: run: nginx: (pid 12821) 1s - execute /opt/gitlab/bin/gitlab-ctl start nginx Recipe: gitlab::remote-syslog_disable * link[/opt/gitlab/service/remote-syslog] action delete (up to date) * directory[/opt/gitlab/sv/remote-syslog] action delete (up to date) Recipe: gitlab::logrotate * directory[/opt/gitlab/sv/logrotate] action create - create new directory /opt/gitlab/sv/logrotate - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/logrotate/log] action create - create new directory /opt/gitlab/sv/logrotate/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/logrotate/log/main] action create - create new directory /opt/gitlab/sv/logrotate/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/logrotate/run] action create - create new file /opt/gitlab/sv/logrotate/run - update content in file /opt/gitlab/sv/logrotate/run from none to 07f1b6 --- /opt/gitlab/sv/logrotate/run 2018-06-22 15:41:48.798870427 +0900 +++ /opt/gitlab/sv/logrotate/.chef-run20180622-11711-i7i484 2018-06-22 15:41:48.798870427 +0900 @@ -1 +1,11 @@ +#!/bin/sh +exec 2>&1 + +cd /var/opt/gitlab/logrotate + +exec /opt/gitlab/embedded/bin/chpst -P /usr/bin/env \ + dir=/var/opt/gitlab/logrotate \ + pre_sleep=600 \ + post_sleep=3000 \ + /opt/gitlab/embedded/bin/gitlab-logrotate-wrapper - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/logrotate/log/run] action create - create new file /opt/gitlab/sv/logrotate/log/run - update content in file /opt/gitlab/sv/logrotate/log/run from none to 94afe6 --- /opt/gitlab/sv/logrotate/log/run 2018-06-22 15:41:48.814870188 +0900 +++ /opt/gitlab/sv/logrotate/log/.chef-run20180622-11711-4esavc 2018-06-22 15:41:48.814870188 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/logrotate - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/logrotate/config] action create - create new file /var/log/gitlab/logrotate/config - update content in file /var/log/gitlab/logrotate/config from none to 623c00 --- /var/log/gitlab/logrotate/config 2018-06-22 15:41:48.830869949 +0900 +++ /var/log/gitlab/logrotate/.chef-config20180622-11711-15eoqbc 2018-06-22 15:41:48.830869949 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload logrotate svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart logrotate svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/logrotate/down] action delete (up to date) * directory[/opt/gitlab/sv/logrotate/control] action create - create new directory /opt/gitlab/sv/logrotate/control - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/logrotate/control/t] action create - create new file /opt/gitlab/sv/logrotate/control/t - update content in file /opt/gitlab/sv/logrotate/control/t from none to 8fa3fa --- /opt/gitlab/sv/logrotate/control/t 2018-06-22 15:41:48.854869590 +0900 +++ /opt/gitlab/sv/logrotate/control/.chef-t20180622-11711-1d5r2g 2018-06-22 15:41:48.854869590 +0900 @@ -1 +1,4 @@ +#!/bin/sh +echo "Received TERM from runit, sending to process group (-PID)" +kill -- -$(cat /opt/gitlab/service/logrotate/supervise/pid) - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * link[/opt/gitlab/init/logrotate] action create - create symlink at /opt/gitlab/init/logrotate to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/logrotate] action create - create symlink at /opt/gitlab/service/logrotate to /opt/gitlab/sv/logrotate * ruby_block[supervise_logrotate_sleep] action run - execute the ruby block supervise_logrotate_sleep * directory[/opt/gitlab/sv/logrotate/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/logrotate/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/logrotate/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/log/supervise/control] action touch (skipped due to only_if) * service[logrotate] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start logrotate] action run [execute] ok: run: logrotate: (pid 12847) 1s - execute /opt/gitlab/bin/gitlab-ctl start logrotate Recipe: gitlab::bootstrap * file[/var/opt/gitlab/bootstrapped] action create - create new file /var/opt/gitlab/bootstrapped - update content in file /var/opt/gitlab/bootstrapped from none to 4ae00c --- /var/opt/gitlab/bootstrapped 2018-06-22 15:41:54.766784294 +0900 +++ /var/opt/gitlab/.chef-bootstrapped20180622-11711-1fpio4w 2018-06-22 15:41:54.766784294 +0900 @@ -1 +1,2 @@ +All your bootstraps are belong to Chef - change mode from '' to '0600' - change owner from '' to 'root' - change group from '' to 'root' Recipe: gitlab::gitlab-pages_disable * link[/opt/gitlab/service/gitlab-pages] action delete (up to date) * directory[/opt/gitlab/sv/gitlab-pages] action delete (up to date) Recipe: gitlab::storage-check_disable * link[/opt/gitlab/service/storage-check] action delete (up to date) * directory[/opt/gitlab/sv/storage-check] action delete (up to date) Recipe: registry::disable * link[/opt/gitlab/service/registry] action delete (up to date) * directory[/opt/gitlab/sv/registry] action delete (up to date) Recipe: gitaly::enable * directory[/var/opt/gitlab/gitaly] action create - create new directory /var/opt/gitlab/gitaly - change mode from '' to '0700' - change owner from '' to 'git' * directory[/var/log/gitlab/gitaly] action create - create new directory /var/log/gitlab/gitaly - change mode from '' to '0700' - change owner from '' to 'git' * env_dir[/opt/gitlab/etc/gitaly] action create * directory[/opt/gitlab/etc/gitaly] action create - create new directory /opt/gitlab/etc/gitaly * file[/opt/gitlab/etc/gitaly/HOME] action create - create new file /opt/gitlab/etc/gitaly/HOME - update content in file /opt/gitlab/etc/gitaly/HOME from none to 205bb9 --- /opt/gitlab/etc/gitaly/HOME 2018-06-22 15:41:54.806783733 +0900 +++ /opt/gitlab/etc/gitaly/.chef-HOME20180622-11711-g2vx0k 2018-06-22 15:41:54.806783733 +0900 @@ -1 +1,2 @@ +/var/opt/gitlab * file[/opt/gitlab/etc/gitaly/PATH] action create - create new file /opt/gitlab/etc/gitaly/PATH - update content in file /opt/gitlab/etc/gitaly/PATH from none to d5dc07 --- /opt/gitlab/etc/gitaly/PATH 2018-06-22 15:41:54.814783621 +0900 +++ /opt/gitlab/etc/gitaly/.chef-PATH20180622-11711-6hbxbk 2018-06-22 15:41:54.814783621 +0900 @@ -1 +1,2 @@ +/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin * file[/opt/gitlab/etc/gitaly/TZ] action create - create new file /opt/gitlab/etc/gitaly/TZ - update content in file /opt/gitlab/etc/gitaly/TZ from none to 983a95 --- /opt/gitlab/etc/gitaly/TZ 2018-06-22 15:41:54.822783509 +0900 +++ /opt/gitlab/etc/gitaly/.chef-TZ20180622-11711-f2k205 2018-06-22 15:41:54.822783509 +0900 @@ -1 +1,2 @@ +:/etc/localtime * template[Create Gitaly config.toml] action create - create new file /var/opt/gitlab/gitaly/config.toml - update content in file /var/opt/gitlab/gitaly/config.toml from none to e62e01 --- /var/opt/gitlab/gitaly/config.toml 2018-06-22 15:41:54.834783341 +0900 +++ /var/opt/gitlab/gitaly/.chef-config20180622-11711-97jkez.toml 2018-06-22 15:41:54.834783341 +0900 @@ -1 +1,28 @@ +# Gitaly configuration file +# This file is managed by gitlab-ctl. Manual changes will be +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb +# and run: +# sudo gitlab-ctl reconfigure + +socket_path = '/var/opt/gitlab/gitaly/gitaly.socket' +bin_dir = '/opt/gitlab/embedded/bin' + + +# Optional: export metrics via Prometheus +prometheus_listen_addr = 'localhost:9236' + +[[storage]] +name = 'default' +path = '/var/opt/gitlab/git-data/repositories' + +[logging] + + +[auth] + +[gitaly-ruby] +dir = "/opt/gitlab/embedded/service/gitaly-ruby" + +[gitlab-shell] +dir = "/opt/gitlab/embedded/service/gitlab-shell" - change mode from '' to '0644' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/gitaly] action create - create new directory /opt/gitlab/sv/gitaly - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/gitaly/log] action create - create new directory /opt/gitlab/sv/gitaly/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/gitaly/log/main] action create - create new directory /opt/gitlab/sv/gitaly/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/gitaly/run] action create - create new file /opt/gitlab/sv/gitaly/run - update content in file /opt/gitlab/sv/gitaly/run from none to ca190e --- /opt/gitlab/sv/gitaly/run 2018-06-22 15:41:54.890782556 +0900 +++ /opt/gitlab/sv/gitaly/.chef-run20180622-11711-34zfjs 2018-06-22 15:41:54.890782556 +0900 @@ -1 +1,15 @@ +#!/bin/sh +set -e # fail on errors + +# Redirect stderr -> stdout +exec 2>&1 + + + +cd /var/opt/gitlab/gitaly + +exec chpst -e /opt/gitlab/etc/gitaly -P \ + -U git \ + -u git \ + /opt/gitlab/embedded/bin/gitaly /var/opt/gitlab/gitaly/config.toml - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/gitaly/log/run] action create - create new file /opt/gitlab/sv/gitaly/log/run - update content in file /opt/gitlab/sv/gitaly/log/run from none to 0627d2 --- /opt/gitlab/sv/gitaly/log/run 2018-06-22 15:41:54.914782219 +0900 +++ /opt/gitlab/sv/gitaly/log/.chef-run20180622-11711-1w5q4ly 2018-06-22 15:41:54.914782219 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/gitaly - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/gitaly/config] action create - create new file /var/log/gitlab/gitaly/config - update content in file /var/log/gitlab/gitaly/config from none to 623c00 --- /var/log/gitlab/gitaly/config 2018-06-22 15:41:54.926782051 +0900 +++ /var/log/gitlab/gitaly/.chef-config20180622-11711-1b4h85k 2018-06-22 15:41:54.926782051 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload gitaly svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitaly svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitaly/down] action delete (up to date) * link[/opt/gitlab/init/gitaly] action create - create symlink at /opt/gitlab/init/gitaly to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/gitaly] action create - create symlink at /opt/gitlab/service/gitaly to /opt/gitlab/sv/gitaly * ruby_block[supervise_gitaly_sleep] action run - execute the ruby block supervise_gitaly_sleep * directory[/opt/gitlab/sv/gitaly/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/gitaly/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/gitaly/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/log/supervise/control] action touch (skipped due to only_if) * service[gitaly] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run [execute] ok: run: gitaly: (pid 12870) 1s - execute /opt/gitlab/bin/gitlab-ctl start gitaly * file[/var/opt/gitlab/gitaly/VERSION] action create - create new file /var/opt/gitlab/gitaly/VERSION - update content in file /var/opt/gitlab/gitaly/VERSION from none to 590da0 --- /var/opt/gitlab/gitaly/VERSION 2018-06-22 15:42:00.834702054 +0900 +++ /var/opt/gitlab/gitaly/.chef-VERSION20180622-11711-r028f5 2018-06-22 15:42:00.834702054 +0900 @@ -1 +1,2 @@ +Gitaly, version 0.100.1, built 20180606.211738 Recipe: mattermost::disable * link[/opt/gitlab/service/mattermost] action delete (up to date) * directory[/opt/gitlab/sv/mattermost] action delete (up to date) Recipe: gitlab::gitlab-healthcheck * template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create - create new file /opt/gitlab/etc/gitlab-healthcheck-rc - update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from none to 6da55f --- /opt/gitlab/etc/gitlab-healthcheck-rc 2018-06-22 15:42:00.850701843 +0900 +++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20180622-11711-1s9mv6k 2018-06-22 15:42:00.850701843 +0900 @@ -1 +1,3 @@ +url='http://localhost:80/help' +flags='--insecure' - change owner from '' to 'root' - change group from '' to 'root' Recipe: gitlab::prometheus_user * account[Prometheus user and group] action create * group[Prometheus user and group] action create - create group gitlab-prometheus * linux_user[Prometheus user and group] action create - create user gitlab-prometheus Recipe: gitlab::node-exporter * directory[/var/log/gitlab/node-exporter] action create - create new directory /var/log/gitlab/node-exporter - change mode from '' to '0700' - change owner from '' to 'gitlab-prometheus' * directory[/var/opt/gitlab/node-exporter/textfile_collector] action create - create new directory /var/opt/gitlab/node-exporter/textfile_collector - change mode from '' to '0755' - change owner from '' to 'gitlab-prometheus' * directory[/opt/gitlab/sv/node-exporter] action create - create new directory /opt/gitlab/sv/node-exporter - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/node-exporter/log] action create - create new directory /opt/gitlab/sv/node-exporter/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/node-exporter/log/main] action create - create new directory /opt/gitlab/sv/node-exporter/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/node-exporter/run] action create - create new file /opt/gitlab/sv/node-exporter/run - update content in file /opt/gitlab/sv/node-exporter/run from none to e2ca0b --- /opt/gitlab/sv/node-exporter/run 2018-06-22 15:42:01.114698378 +0900 +++ /opt/gitlab/sv/node-exporter/.chef-run20180622-11711-m69vlx 2018-06-22 15:42:01.114698378 +0900 @@ -1 +1,6 @@ +#!/bin/sh +exec 2>&1 + +umask 077 +exec chpst -P -U gitlab-prometheus -u gitlab-prometheus /opt/gitlab/embedded/bin/node_exporter --web.listen-address=localhost:9100 --collector.textfile.directory=/var/opt/gitlab/node-exporter/textfile_collector - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/node-exporter/log/run] action create - create new file /opt/gitlab/sv/node-exporter/log/run - update content in file /opt/gitlab/sv/node-exporter/log/run from none to ae1796 --- /opt/gitlab/sv/node-exporter/log/run 2018-06-22 15:42:01.130698170 +0900 +++ /opt/gitlab/sv/node-exporter/log/.chef-run20180622-11711-dpay9e 2018-06-22 15:42:01.130698170 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/node-exporter - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/node-exporter/config] action create - create new file /var/log/gitlab/node-exporter/config - update content in file /var/log/gitlab/node-exporter/config from none to 623c00 --- /var/log/gitlab/node-exporter/config 2018-06-22 15:42:01.138698064 +0900 +++ /var/log/gitlab/node-exporter/.chef-config20180622-11711-1fpd1de 2018-06-22 15:42:01.138698064 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload node-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart node-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/node-exporter/down] action delete (up to date) * link[/opt/gitlab/init/node-exporter] action create - create symlink at /opt/gitlab/init/node-exporter to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/node-exporter] action create - create symlink at /opt/gitlab/service/node-exporter to /opt/gitlab/sv/node-exporter * ruby_block[supervise_node-exporter_sleep] action run - execute the ruby block supervise_node-exporter_sleep * directory[/opt/gitlab/sv/node-exporter/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/node-exporter/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/node-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/log/supervise/control] action touch (skipped due to only_if) * service[node-exporter] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start node-exporter] action run [execute] ok: run: node-exporter: (pid 12997) 2s - execute /opt/gitlab/bin/gitlab-ctl start node-exporter Recipe: gitlab::gitlab-monitor * directory[/var/opt/gitlab/gitlab-monitor] action create - create new directory /var/opt/gitlab/gitlab-monitor - change mode from '' to '0755' - change owner from '' to 'git' * directory[/var/log/gitlab/gitlab-monitor] action create - create new directory /var/log/gitlab/gitlab-monitor - change mode from '' to '0700' - change owner from '' to 'git' * template[/var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml] action create - create new file /var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml - update content in file /var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml from none to 595ab9 --- /var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml 2018-06-22 15:42:07.070622632 +0900 +++ /var/opt/gitlab/gitlab-monitor/.chef-gitlab-monitor20180622-11711-5245dd.yml 2018-06-22 15:42:07.070622632 +0900 @@ -1 +1,58 @@ +db_common: &db_common + methods: + - probe_db + opts: + connection_string: dbname=gitlabhq_production user=gitlab host=/var/opt/gitlab/postgresql port=5432 password= + +# Web server config +server: + listen_address: localhost + listen_port: 9168 + +# Probes config +probes: + git_process: + class_name: GitProcessProber # `class_name` is redundant here + methods: + - probe_git + opts: + quantiles: true + + # We can group multiple probes under a single endpoint by setting the `multiple` key to `true`, followed + # by probe definitions as usual. + database: + multiple: true + ci_builds: + class_name: Database::CiBuildsProber + <<: *db_common + tuple_stats: + class_name: Database::TuplesProber + <<: *db_common + rows_count: + class_name: Database::RowCountProber + <<: *db_common + + process: + methods: + - probe_memory + - probe_age + - probe_count + opts: + - pid_or_pattern: "sidekiq .* \\[.*?\\]" + name: sidekiq + - pid_or_pattern: "unicorn worker\\[.*?\\]" + name: unicorn + - pid_or_pattern: "git-upload-pack --stateless-rpc" + name: git_upload_pack + quantiles: true + + sidekiq: + methods: + - probe_queues + - probe_jobs + - probe_workers + - probe_retries + - probe_dead + opts: + redis_url: "unix:/var/opt/gitlab/redis/redis.socket" - change mode from '' to '0644' - change owner from '' to 'git' * directory[/opt/gitlab/sv/gitlab-monitor] action create - create new directory /opt/gitlab/sv/gitlab-monitor - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/gitlab-monitor/log] action create - create new directory /opt/gitlab/sv/gitlab-monitor/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/gitlab-monitor/log/main] action create - create new directory /opt/gitlab/sv/gitlab-monitor/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/gitlab-monitor/run] action create - create new file /opt/gitlab/sv/gitlab-monitor/run - update content in file /opt/gitlab/sv/gitlab-monitor/run from none to 2f480f --- /opt/gitlab/sv/gitlab-monitor/run 2018-06-22 15:42:07.122621992 +0900 +++ /opt/gitlab/sv/gitlab-monitor/.chef-run20180622-11711-1q7r042 2018-06-22 15:42:07.122621992 +0900 @@ -1 +1,6 @@ +#!/bin/sh +exec 2>&1 + +umask 077 +exec chpst -P -U git -u git /opt/gitlab/embedded/bin/gitlab-mon web -c /var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/gitlab-monitor/log/run] action create - create new file /opt/gitlab/sv/gitlab-monitor/log/run - update content in file /opt/gitlab/sv/gitlab-monitor/log/run from none to be403a --- /opt/gitlab/sv/gitlab-monitor/log/run 2018-06-22 15:42:07.134621845 +0900 +++ /opt/gitlab/sv/gitlab-monitor/log/.chef-run20180622-11711-19sppsa 2018-06-22 15:42:07.134621845 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/gitlab-monitor - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/gitlab-monitor/config] action create - create new file /var/log/gitlab/gitlab-monitor/config - update content in file /var/log/gitlab/gitlab-monitor/config from none to 623c00 --- /var/log/gitlab/gitlab-monitor/config 2018-06-22 15:42:07.142621746 +0900 +++ /var/log/gitlab/gitlab-monitor/.chef-config20180622-11711-1r610ew 2018-06-22 15:42:07.142621746 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload gitlab-monitor svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitlab-monitor svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitlab-monitor/down] action delete (up to date) * link[/opt/gitlab/init/gitlab-monitor] action create - create symlink at /opt/gitlab/init/gitlab-monitor to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/gitlab-monitor] action create - create symlink at /opt/gitlab/service/gitlab-monitor to /opt/gitlab/sv/gitlab-monitor * ruby_block[supervise_gitlab-monitor_sleep] action run - execute the ruby block supervise_gitlab-monitor_sleep * directory[/opt/gitlab/sv/gitlab-monitor/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/gitlab-monitor/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/gitlab-monitor/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/log/supervise/control] action touch (skipped due to only_if) * service[gitlab-monitor] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start gitlab-monitor] action run [execute] ok: run: gitlab-monitor: (pid 13034) 1s - execute /opt/gitlab/bin/gitlab-ctl start gitlab-monitor Recipe: gitlab::redis-exporter * directory[/var/log/gitlab/redis-exporter] action create - create new directory /var/log/gitlab/redis-exporter - change mode from '' to '0700' - change owner from '' to 'gitlab-redis' * directory[/opt/gitlab/sv/redis-exporter] action create - create new directory /opt/gitlab/sv/redis-exporter - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/redis-exporter/log] action create - create new directory /opt/gitlab/sv/redis-exporter/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/redis-exporter/log/main] action create - create new directory /opt/gitlab/sv/redis-exporter/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/redis-exporter/run] action create - create new file /opt/gitlab/sv/redis-exporter/run - update content in file /opt/gitlab/sv/redis-exporter/run from none to fa3e94 --- /opt/gitlab/sv/redis-exporter/run 2018-06-22 15:42:13.014551302 +0900 +++ /opt/gitlab/sv/redis-exporter/.chef-run20180622-11711-1whw44u 2018-06-22 15:42:13.014551302 +0900 @@ -1 +1,6 @@ +#!/bin/sh +exec 2>&1 + +umask 077 +exec chpst -P -U gitlab-redis:git -u gitlab-redis:git /opt/gitlab/embedded/bin/redis_exporter -web.listen-address=localhost:9121 -redis.addr=unix:///var/opt/gitlab/redis/redis.socket - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/redis-exporter/log/run] action create - create new file /opt/gitlab/sv/redis-exporter/log/run - update content in file /opt/gitlab/sv/redis-exporter/log/run from none to 082dea --- /opt/gitlab/sv/redis-exporter/log/run 2018-06-22 15:42:13.022551210 +0900 +++ /opt/gitlab/sv/redis-exporter/log/.chef-run20180622-11711-2rhgyg 2018-06-22 15:42:13.022551210 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/redis-exporter - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/redis-exporter/config] action create - create new file /var/log/gitlab/redis-exporter/config - update content in file /var/log/gitlab/redis-exporter/config from none to 623c00 --- /var/log/gitlab/redis-exporter/config 2018-06-22 15:42:13.034551070 +0900 +++ /var/log/gitlab/redis-exporter/.chef-config20180622-11711-1mn4p30 2018-06-22 15:42:13.034551070 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload redis-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart redis-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/redis-exporter/down] action delete (up to date) * link[/opt/gitlab/init/redis-exporter] action create - create symlink at /opt/gitlab/init/redis-exporter to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/redis-exporter] action create - create symlink at /opt/gitlab/service/redis-exporter to /opt/gitlab/sv/redis-exporter * ruby_block[supervise_redis-exporter_sleep] action run - execute the ruby block supervise_redis-exporter_sleep * directory[/opt/gitlab/sv/redis-exporter/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/redis-exporter/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/redis-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/log/supervise/control] action touch (skipped due to only_if) * service[redis-exporter] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] action run [execute] ok: run: redis-exporter: (pid 13091) 1s - execute /opt/gitlab/bin/gitlab-ctl start redis-exporter Recipe: gitlab::prometheus * directory[/var/opt/gitlab/prometheus] action create - create new directory /var/opt/gitlab/prometheus - change mode from '' to '0750' - change owner from '' to 'gitlab-prometheus' * directory[/var/log/gitlab/prometheus] action create - create new directory /var/log/gitlab/prometheus - change mode from '' to '0700' - change owner from '' to 'gitlab-prometheus' * file[Prometheus config] action create - create new file /var/opt/gitlab/prometheus/prometheus.yml - update content in file /var/opt/gitlab/prometheus/prometheus.yml from none to 8f79b8 --- /var/opt/gitlab/prometheus/prometheus.yml 2018-06-22 15:42:18.890484609 +0900 +++ /var/opt/gitlab/prometheus/.chef-prometheus20180622-11711-1dtalqe.yml 2018-06-22 15:42:18.890484609 +0900 @@ -1 +1,146 @@ +--- +global: + scrape_interval: 15s + scrape_timeout: 15s +scrape_configs: +- job_name: prometheus + static_configs: + - targets: + - localhost:9090 +- job_name: redis + static_configs: + - targets: + - localhost:9121 +- job_name: postgres + static_configs: + - targets: + - localhost:9187 +- job_name: node + static_configs: + - targets: + - localhost:9100 +- job_name: gitlab-workhorse + static_configs: + - targets: + - localhost:9229 +- job_name: gitlab-unicorn + metrics_path: "/-/metrics" + static_configs: + - targets: + - 127.0.0.1:8080 +- job_name: gitlab-sidekiq + static_configs: + - targets: + - 127.0.0.1:8082 +- job_name: gitlab_monitor_database + metrics_path: "/database" + static_configs: + - targets: + - localhost:9168 +- job_name: gitlab_monitor_sidekiq + metrics_path: "/sidekiq" + static_configs: + - targets: + - localhost:9168 +- job_name: gitlab_monitor_process + metrics_path: "/process" + static_configs: + - targets: + - localhost:9168 +- job_name: gitaly + static_configs: + - targets: + - localhost:9236 +- job_name: kubernetes-cadvisor + scheme: https + tls_config: + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" + insecure_skip_verify: true + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token" + kubernetes_sd_configs: + - role: node + api_server: https://kubernetes.default.svc:443 + tls_config: + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token" + relabel_configs: + - action: labelmap + regex: __meta_kubernetes_node_label_(.+) + - target_label: __address__ + replacement: kubernetes.default.svc:443 + - source_labels: + - __meta_kubernetes_node_name + regex: "(.+)" + target_label: __metrics_path__ + replacement: "/api/v1/nodes/${1}/proxy/metrics/cadvisor" + metric_relabel_configs: + - source_labels: + - pod_name + target_label: environment + regex: "(.+)-.+-.+" +- job_name: kubernetes-nodes + scheme: https + tls_config: + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" + insecure_skip_verify: true + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token" + kubernetes_sd_configs: + - role: node + api_server: https://kubernetes.default.svc:443 + tls_config: + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token" + relabel_configs: + - action: labelmap + regex: __meta_kubernetes_node_label_(.+) + - target_label: __address__ + replacement: kubernetes.default.svc:443 + - source_labels: + - __meta_kubernetes_node_name + regex: "(.+)" + target_label: __metrics_path__ + replacement: "/api/v1/nodes/${1}/proxy/metrics" + metric_relabel_configs: + - source_labels: + - pod_name + target_label: environment + regex: "(.+)-.+-.+" +- job_name: kubernetes-pods + tls_config: + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" + insecure_skip_verify: true + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token" + kubernetes_sd_configs: + - role: pod + api_server: https://kubernetes.default.svc:443 + tls_config: + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token" + relabel_configs: + - source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_scrape + action: keep + regex: 'true' + - source_labels: + - __meta_kubernetes_pod_annotation_prometheus_io_path + action: replace + target_label: __metrics_path__ + regex: "(.+)" + - source_labels: + - __address__ + - __meta_kubernetes_pod_annotation_prometheus_io_port + action: replace + regex: "([^:]+)(?::[0-9]+)?;([0-9]+)" + replacement: "$1:$2" + target_label: __address__ + - action: labelmap + regex: __meta_kubernetes_pod_label_(.+) + - source_labels: + - __meta_kubernetes_namespace + action: replace + target_label: kubernetes_namespace + - source_labels: + - __meta_kubernetes_pod_name + action: replace + target_label: kubernetes_pod_name - change mode from '' to '0644' - change owner from '' to 'gitlab-prometheus' * directory[/opt/gitlab/sv/prometheus] action create - create new directory /opt/gitlab/sv/prometheus - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/prometheus/log] action create - create new directory /opt/gitlab/sv/prometheus/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/prometheus/log/main] action create - create new directory /opt/gitlab/sv/prometheus/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/prometheus/run] action create - create new file /opt/gitlab/sv/prometheus/run - update content in file /opt/gitlab/sv/prometheus/run from none to 85d384 --- /opt/gitlab/sv/prometheus/run 2018-06-22 15:42:18.930484165 +0900 +++ /opt/gitlab/sv/prometheus/.chef-run20180622-11711-nzl9r3 2018-06-22 15:42:18.930484165 +0900 @@ -1 +1,7 @@ +#!/bin/sh +exec 2>&1 + +umask 077 +exec chpst -P -U gitlab-prometheus -u gitlab-prometheus \ + /opt/gitlab/embedded/bin/prometheus -web.listen-address=localhost:9090 -storage.local.path=/var/opt/gitlab/prometheus/data -storage.local.chunk-encoding-version=2 -storage.local.target-heap-size=109084590 -config.file=/var/opt/gitlab/prometheus/prometheus.yml - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/prometheus/log/run] action create - create new file /opt/gitlab/sv/prometheus/log/run - update content in file /opt/gitlab/sv/prometheus/log/run from none to 072b20 --- /opt/gitlab/sv/prometheus/log/run 2018-06-22 15:42:18.942484032 +0900 +++ /opt/gitlab/sv/prometheus/log/.chef-run20180622-11711-1i8p0vm 2018-06-22 15:42:18.942484032 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/prometheus - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/prometheus/config] action create - create new file /var/log/gitlab/prometheus/config - update content in file /var/log/gitlab/prometheus/config from none to 623c00 --- /var/log/gitlab/prometheus/config 2018-06-22 15:42:18.954483899 +0900 +++ /var/log/gitlab/prometheus/.chef-config20180622-11711-1cqjdih 2018-06-22 15:42:18.954483899 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload prometheus svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart prometheus svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/prometheus/down] action delete (up to date) * link[/opt/gitlab/init/prometheus] action create - create symlink at /opt/gitlab/init/prometheus to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/prometheus] action create - create symlink at /opt/gitlab/service/prometheus to /opt/gitlab/sv/prometheus * ruby_block[supervise_prometheus_sleep] action run - execute the ruby block supervise_prometheus_sleep * directory[/opt/gitlab/sv/prometheus/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/prometheus/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/prometheus/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/log/supervise/control] action touch (skipped due to only_if) * service[prometheus] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start prometheus] action run [execute] ok: run: prometheus: (pid 13112) 1s - execute /opt/gitlab/bin/gitlab-ctl start prometheus Recipe: gitlab::alertmanager * directory[/var/opt/gitlab/alertmanager] action create - create new directory /var/opt/gitlab/alertmanager - change mode from '' to '0750' - change owner from '' to 'gitlab-prometheus' * directory[/var/log/gitlab/alertmanager] action create - create new directory /var/log/gitlab/alertmanager - change mode from '' to '0700' - change owner from '' to 'gitlab-prometheus' * file[Alertmanager config] action create - create new file /var/opt/gitlab/alertmanager/alertmanager.yml - update content in file /var/opt/gitlab/alertmanager/alertmanager.yml from none to 21b7be --- /var/opt/gitlab/alertmanager/alertmanager.yml 2018-06-22 15:42:24.806420946 +0900 +++ /var/opt/gitlab/alertmanager/.chef-alertmanager20180622-11711-1f2i899.yml 2018-06-22 15:42:24.806420946 +0900 @@ -1 +1,10 @@ +--- +global: {} +templates: [] +route: + receiver: default-receiver + routes: [] +receivers: +- name: default-receiver +inhibit_rules: [] - change mode from '' to '0644' - change owner from '' to 'gitlab-prometheus' * directory[/opt/gitlab/sv/alertmanager] action create - create new directory /opt/gitlab/sv/alertmanager - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/alertmanager/log] action create - create new directory /opt/gitlab/sv/alertmanager/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/alertmanager/log/main] action create - create new directory /opt/gitlab/sv/alertmanager/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/alertmanager/run] action create - create new file /opt/gitlab/sv/alertmanager/run - update content in file /opt/gitlab/sv/alertmanager/run from none to ac906d --- /opt/gitlab/sv/alertmanager/run 2018-06-22 15:42:24.834420653 +0900 +++ /opt/gitlab/sv/alertmanager/.chef-run20180622-11711-iwih9t 2018-06-22 15:42:24.834420653 +0900 @@ -1 +1,7 @@ +#!/bin/sh +exec 2>&1 + +umask 077 +exec chpst -P -U gitlab-prometheus -u gitlab-prometheus \ + /opt/gitlab/embedded/bin/alertmanager --web.listen-address=localhost:9093 --storage.path=/var/opt/gitlab/alertmanager/data --config.file=/var/opt/gitlab/alertmanager/alertmanager.yml - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/alertmanager/log/run] action create - create new file /opt/gitlab/sv/alertmanager/log/run - update content in file /opt/gitlab/sv/alertmanager/log/run from none to 2feab9 --- /opt/gitlab/sv/alertmanager/log/run 2018-06-22 15:42:24.846420527 +0900 +++ /opt/gitlab/sv/alertmanager/log/.chef-run20180622-11711-hrc0hv 2018-06-22 15:42:24.846420527 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/alertmanager - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/alertmanager/config] action create - create new file /var/log/gitlab/alertmanager/config - update content in file /var/log/gitlab/alertmanager/config from none to 623c00 --- /var/log/gitlab/alertmanager/config 2018-06-22 15:42:24.854420442 +0900 +++ /var/log/gitlab/alertmanager/.chef-config20180622-11711-1igmw77 2018-06-22 15:42:24.854420442 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload alertmanager svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart alertmanager svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/alertmanager/down] action delete (up to date) * link[/opt/gitlab/init/alertmanager] action create - create symlink at /opt/gitlab/init/alertmanager to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/alertmanager] action create - create symlink at /opt/gitlab/service/alertmanager to /opt/gitlab/sv/alertmanager * ruby_block[supervise_alertmanager_sleep] action run - execute the ruby block supervise_alertmanager_sleep * directory[/opt/gitlab/sv/alertmanager/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/alertmanager/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/alertmanager/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/log/supervise/control] action touch (skipped due to only_if) * service[alertmanager] action nothing (skipped due to action :nothing) * execute[/opt/gitlab/bin/gitlab-ctl start alertmanager] action run [execute] ok: run: alertmanager: (pid 13156) 1s - execute /opt/gitlab/bin/gitlab-ctl start alertmanager Recipe: gitlab::postgres-exporter * directory[/var/log/gitlab/postgres-exporter] action create - create new directory /var/log/gitlab/postgres-exporter - change mode from '' to '0700' - change owner from '' to 'gitlab-psql' * directory[/var/opt/gitlab/postgres-exporter] action create - create new directory /var/opt/gitlab/postgres-exporter - change mode from '' to '0700' - change owner from '' to 'gitlab-psql' * env_dir[/opt/gitlab/etc/postgres-exporter/env] action create * directory[/opt/gitlab/etc/postgres-exporter/env] action create - create new directory /opt/gitlab/etc/postgres-exporter/env * file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] action create - create new file /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME - update content in file /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME from none to cd58e5 --- /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME 2018-06-22 15:42:30.726360436 +0900 +++ /opt/gitlab/etc/postgres-exporter/env/.chef-DATA_SOURCE_NAME20180622-11711-ai8in1 2018-06-22 15:42:30.726360436 +0900 @@ -1 +1,2 @@ +user=gitlab-psql host=/var/opt/gitlab/postgresql database=postgres sslmode=allow * directory[/opt/gitlab/sv/postgres-exporter] action create - create new directory /opt/gitlab/sv/postgres-exporter - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/postgres-exporter/log] action create - create new directory /opt/gitlab/sv/postgres-exporter/log - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create - create new directory /opt/gitlab/sv/postgres-exporter/log/main - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/postgres-exporter/run] action create - create new file /opt/gitlab/sv/postgres-exporter/run - update content in file /opt/gitlab/sv/postgres-exporter/run from none to b40d34 --- /opt/gitlab/sv/postgres-exporter/run 2018-06-22 15:42:30.754360156 +0900 +++ /opt/gitlab/sv/postgres-exporter/.chef-run20180622-11711-2ifo50 2018-06-22 15:42:30.754360156 +0900 @@ -1 +1,7 @@ +#!/bin/sh +exec 2>&1 + +umask 077 +exec chpst -e /opt/gitlab/etc/postgres-exporter/env -P -U gitlab-psql:git -u gitlab-psql:git /opt/gitlab/embedded/bin/postgres_exporter --web.listen-address=localhost:9187 --extend.query-path=/var/opt/gitlab/postgres-exporter/queries.yaml + - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/opt/gitlab/sv/postgres-exporter/log/run] action create - create new file /opt/gitlab/sv/postgres-exporter/log/run - update content in file /opt/gitlab/sv/postgres-exporter/log/run from none to b971c9 --- /opt/gitlab/sv/postgres-exporter/log/run 2018-06-22 15:42:30.766360035 +0900 +++ /opt/gitlab/sv/postgres-exporter/log/.chef-run20180622-11711-16rkd3w 2018-06-22 15:42:30.766360035 +0900 @@ -1 +1,3 @@ +#!/bin/sh +exec svlogd -tt /var/log/gitlab/postgres-exporter - change mode from '' to '0755' - change owner from '' to 'root' - change group from '' to 'root' * template[/var/log/gitlab/postgres-exporter/config] action create - create new file /var/log/gitlab/postgres-exporter/config - update content in file /var/log/gitlab/postgres-exporter/config from none to 623c00 --- /var/log/gitlab/postgres-exporter/config 2018-06-22 15:42:30.774359956 +0900 +++ /var/log/gitlab/postgres-exporter/.chef-config20180622-11711-vivmhn 2018-06-22 15:42:30.774359956 +0900 @@ -1 +1,7 @@ +s209715200 +n30 +t86400 +!gzip + + - change owner from '' to 'root' - change group from '' to 'root' * ruby_block[reload postgres-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart postgres-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/postgres-exporter/down] action delete (up to date) * link[/opt/gitlab/init/postgres-exporter] action create - create symlink at /opt/gitlab/init/postgres-exporter to /opt/gitlab/embedded/bin/sv * link[/opt/gitlab/service/postgres-exporter] action create - create symlink at /opt/gitlab/service/postgres-exporter to /opt/gitlab/sv/postgres-exporter * ruby_block[supervise_postgres-exporter_sleep] action run - execute the ruby block supervise_postgres-exporter_sleep * directory[/opt/gitlab/sv/postgres-exporter/supervise] action create - change mode from '0700' to '0755' * directory[/opt/gitlab/sv/postgres-exporter/log/supervise] action create - change mode from '0700' to '0755' * file[/opt/gitlab/sv/postgres-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/log/supervise/control] action touch (skipped due to only_if) * service[postgres-exporter] action nothing (skipped due to action :nothing) * template[/var/opt/gitlab/postgres-exporter/queries.yaml] action create - create new file /var/opt/gitlab/postgres-exporter/queries.yaml - update content in file /var/opt/gitlab/postgres-exporter/queries.yaml from none to 40142b --- /var/opt/gitlab/postgres-exporter/queries.yaml 2018-06-22 15:42:35.802310874 +0900 +++ /var/opt/gitlab/postgres-exporter/.chef-queries20180622-11711-1cf0924.yaml 2018-06-22 15:42:35.802310874 +0900 @@ -1 +1,175 @@ +pg_replication: + query: "SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp()))::INT as lag, CASE WHEN pg_is_in_recovery() THEN 1 ELSE 0 END as is_replica" + metrics: + - lag: + usage: "GAUGE" + description: "Replication lag behind master in seconds" + - is_replica: + usage: "GAUGE" + description: "Indicates if this host is a slave" + +pg_postmaster: + query: "SELECT pg_postmaster_start_time as start_time_seconds from pg_postmaster_start_time()" + metrics: + - start_time_seconds: + usage: "GAUGE" + description: "Time at which postmaster started" + +pg_stat_user_tables: + query: "SELECT schemaname, relname, seq_scan, seq_tup_read, idx_scan, idx_tup_fetch, n_tup_ins, n_tup_upd, n_tup_del, n_tup_hot_upd, n_live_tup, n_dead_tup, n_mod_since_analyze, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze, vacuum_count, autovacuum_count, analyze_count, autoanalyze_count FROM pg_stat_user_tables" + metrics: + - schemaname: + usage: "LABEL" + description: "Name of the schema that this table is in" + - relname: + usage: "LABEL" + description: "Name of this table" + - seq_scan: + usage: "COUNTER" + description: "Number of sequential scans initiated on this table" + - seq_tup_read: + usage: "COUNTER" + description: "Number of live rows fetched by sequential scans" + - idx_scan: + usage: "COUNTER" + description: "Number of index scans initiated on this table" + - idx_tup_fetch: + usage: "COUNTER" + description: "Number of live rows fetched by index scans" + - n_tup_ins: + usage: "COUNTER" + description: "Number of rows inserted" + - n_tup_upd: + usage: "COUNTER" + description: "Number of rows updated" + - n_tup_del: + usage: "COUNTER" + description: "Number of rows deleted" + - n_tup_hot_upd: + usage: "COUNTER" + description: "Number of rows HOT updated (i.e., with no separate index update required)" + - n_live_tup: + usage: "GAUGE" + description: "Estimated number of live rows" + - n_dead_tup: + usage: "GAUGE" + description: "Estimated number of dead rows" + - n_mod_since_analyze: + usage: "GAUGE" + description: "Estimated number of rows changed since last analyze" + - last_vacuum: + usage: "GAUGE" + description: "Last time at which this table was manually vacuumed (not counting VACUUM FULL)" + - last_autovacuum: + usage: "GAUGE" + description: "Last time at which this table was vacuumed by the autovacuum daemon" + - last_analyze: + usage: "GAUGE" + description: "Last time at which this table was manually analyzed" + - last_autoanalyze: + usage: "GAUGE" + description: "Last time at which this table was analyzed by the autovacuum daemon" + - vacuum_count: + usage: "COUNTER" + description: "Number of times this table has been manually vacuumed (not counting VACUUM FULL)" + - autovacuum_count: + usage: "COUNTER" + description: "Number of times this table has been vacuumed by the autovacuum daemon" + - analyze_count: + usage: "COUNTER" + description: "Number of times this table has been manually analyzed" + - autoanalyze_count: + usage: "COUNTER" + description: "Number of times this table has been analyzed by the autovacuum daemon" + +pg_total_relation_size: + query: | + SELECT relnamespace::regnamespace as schemaname, + relname as relname, + pg_total_relation_size(oid) bytes + FROM pg_class + WHERE relkind = 'r'; + metrics: + - schemaname: + usage: "LABEL" + description: "Name of the schema that this table is in" + - relname: + usage: "LABEL" + description: "Name of this table" + - bytes: + usage: "GAUGE" + description: "total disk space usage for the specified table and associated indexes" + +pg_blocked: + query: | + SELECT + count(blocked.transactionid) AS queries, + '__transaction__' AS table + FROM pg_catalog.pg_locks blocked + WHERE NOT blocked.granted AND locktype = 'transactionid' + GROUP BY locktype + UNION + SELECT + count(blocked.relation) AS queries, + blocked.relation::regclass::text AS table + FROM pg_catalog.pg_locks blocked + WHERE NOT blocked.granted AND locktype != 'transactionid' + GROUP BY relation + metrics: + - queries: + usage: "GAUGE" + description: "The current number of blocked queries" + - table: + usage: "LABEL" + description: "The table on which a query is blocked" + +pg_slow: + query: | + SELECT COUNT(*) AS queries + FROM pg_stat_activity + WHERE state = 'active' AND (now() - query_start) > '1 seconds'::interval + metrics: + - queries: + usage: "GAUGE" + description: "Current number of slow queries" + +pg_vacuum: + query: | + SELECT + COUNT(*) AS queries, + MAX(EXTRACT(EPOCH FROM (clock_timestamp() - query_start))) AS age_in_seconds + FROM pg_catalog.pg_stat_activity + WHERE state = 'active' AND trim(query) ~* '\AVACUUM (?!ANALYZE)' + metrics: + - queries: + usage: "GAUGE" + description: "The current number of VACUUM queries" + - age_in_seconds: + usage: "GAUGE" + description: "The current maximum VACUUM query age in seconds" + +pg_vacuum_analyze: + query: | + SELECT + COUNT(*) AS queries, + MAX(EXTRACT(EPOCH FROM (clock_timestamp() - query_start))) AS age_in_seconds + FROM pg_catalog.pg_stat_activity + WHERE state = 'active' AND trim(query) ~* '\AVACUUM ANALYZE' + metrics: + - queries: + usage: "GAUGE" + description: "The current number of VACUUM ANALYZE queries" + - age_in_seconds: + usage: "GAUGE" + description: "The current maximum VACUUM ANALYZE query age in seconds" + +pg_stuck_idle_in_transaction: + query: | + SELECT COUNT(*) AS queries + FROM pg_stat_activity + WHERE state = 'idle in transaction' AND (now() - query_start) > '10 minutes'::interval + metrics: + - queries: + usage: "GAUGE" + description: "Current number of queries that are stuck being idle in transactions" - change mode from '' to '0644' - change owner from '' to 'gitlab-psql' * execute[/opt/gitlab/bin/gitlab-ctl start postgres-exporter] action run [execute] ok: run: postgres-exporter: (pid 13191) 1s - execute /opt/gitlab/bin/gitlab-ctl start postgres-exporter Recipe: gitlab::deprecate-skip-auto-migrations * file[/etc/gitlab/skip-auto-reconfigure] action create (skipped due to only_if) * ruby_block[skip-auto-migrations deprecation] action run (skipped due to only_if) Recipe: gitlab::gitlab-rails * execute[clear the gitlab-rails cache] action run - execute /opt/gitlab/bin/gitlab-rake cache:clear Recipe: gitlab::redis * ruby_block[restart redis svlogd configuration] action create - execute the ruby block restart redis svlogd configuration * ruby_block[reload redis svlogd configuration] action create - execute the ruby block reload redis svlogd configuration Recipe: postgresql::enable * ruby_block[restart postgresql svlogd configuration] action create - execute the ruby block restart postgresql svlogd configuration * ruby_block[reload postgresql svlogd configuration] action create - execute the ruby block reload postgresql svlogd configuration Recipe: gitlab::unicorn * ruby_block[restart unicorn svlogd configuration] action create - execute the ruby block restart unicorn svlogd configuration * ruby_block[reload unicorn svlogd configuration] action create - execute the ruby block reload unicorn svlogd configuration Recipe: gitlab::sidekiq * ruby_block[restart sidekiq svlogd configuration] action create - execute the ruby block restart sidekiq svlogd configuration * ruby_block[reload sidekiq svlogd configuration] action create - execute the ruby block reload sidekiq svlogd configuration Recipe: gitlab::gitlab-workhorse * service[gitlab-workhorse] action restart - restart service service[gitlab-workhorse] * ruby_block[restart gitlab-workhorse svlogd configuration] action create - execute the ruby block restart gitlab-workhorse svlogd configuration * ruby_block[reload gitlab-workhorse svlogd configuration] action create - execute the ruby block reload gitlab-workhorse svlogd configuration Recipe: nginx::enable * ruby_block[restart nginx svlogd configuration] action create - execute the ruby block restart nginx svlogd configuration * ruby_block[reload nginx svlogd configuration] action create - execute the ruby block reload nginx svlogd configuration Recipe: gitlab::logrotate * ruby_block[restart logrotate svlogd configuration] action create - execute the ruby block restart logrotate svlogd configuration * ruby_block[reload logrotate svlogd configuration] action create - execute the ruby block reload logrotate svlogd configuration Recipe: gitaly::enable * service[gitaly] action restart - restart service service[gitaly] * ruby_block[restart gitaly svlogd configuration] action create - execute the ruby block restart gitaly svlogd configuration * ruby_block[reload gitaly svlogd configuration] action create - execute the ruby block reload gitaly svlogd configuration Recipe: gitlab::node-exporter * ruby_block[restart node-exporter svlogd configuration] action create - execute the ruby block restart node-exporter svlogd configuration * ruby_block[reload node-exporter svlogd configuration] action create - execute the ruby block reload node-exporter svlogd configuration Recipe: gitlab::gitlab-monitor * service[gitlab-monitor] action restart - restart service service[gitlab-monitor] * ruby_block[restart gitlab-monitor svlogd configuration] action create - execute the ruby block restart gitlab-monitor svlogd configuration * ruby_block[reload gitlab-monitor svlogd configuration] action create - execute the ruby block reload gitlab-monitor svlogd configuration Recipe: gitlab::redis-exporter * ruby_block[restart redis-exporter svlogd configuration] action create - execute the ruby block restart redis-exporter svlogd configuration * ruby_block[reload redis-exporter svlogd configuration] action create - execute the ruby block reload redis-exporter svlogd configuration Recipe: gitlab::prometheus * service[prometheus] action restart - restart service service[prometheus] * ruby_block[restart prometheus svlogd configuration] action create - execute the ruby block restart prometheus svlogd configuration * ruby_block[reload prometheus svlogd configuration] action create - execute the ruby block reload prometheus svlogd configuration Recipe: gitlab::alertmanager * service[alertmanager] action restart - restart service service[alertmanager] * ruby_block[restart alertmanager svlogd configuration] action create - execute the ruby block restart alertmanager svlogd configuration * ruby_block[reload alertmanager svlogd configuration] action create - execute the ruby block reload alertmanager svlogd configuration Recipe: gitlab::postgres-exporter * service[postgres-exporter] action restart - restart service service[postgres-exporter] * ruby_block[restart postgres-exporter svlogd configuration] action create - execute the ruby block restart postgres-exporter svlogd configuration * ruby_block[reload postgres-exporter svlogd configuration] action create - execute the ruby block reload postgres-exporter svlogd configuration Running handlers: Running handlers complete Chef Client finished, 424/607 resources updated in 02 minutes 27 seconds gitlab Reconfigured! | cs |
6.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 | # gitlab-ctl upgrade Checking PostgreSQL executables:Starting Chef Client, version 13.6.4 resolving cookbooks for run list: ["gitlab::config", "postgresql::bin"] Synchronizing Cookbooks: - postgresql (0.1.0) - gitlab (0.0.1) - registry (0.1.0) - gitaly (0.1.0) - mattermost (0.1.0) - nginx (0.1.0) - consul (0.0.0) - letsencrypt (0.1.0) - package (0.1.0) - runit (0.14.2) - acme (3.1.0) - crond (0.1.0) - compat_resource (12.19.0) Installing Cookbook Gems: Compiling Cookbooks... Converging 1 resources Recipe: postgresql::bin * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if) Running handlers: Running handlers complete Chef Client finished, 0/1 resources updated in 07 seconds Checking PostgreSQL executables: OK Shutting down all GitLab services except those needed for migrations ok: down: alertmanager: 1s, normally up ok: down: gitlab-monitor: 0s, normally up ok: down: gitlab-workhorse: 0s, normally up ok: down: logrotate: 1s, normally up ok: down: nginx: 0s, normally up ok: down: node-exporter: 1s, normally up ok: down: postgres-exporter: 0s, normally up ok: down: prometheus: 1s, normally up ok: down: redis-exporter: 0s, normally up ok: down: sidekiq: 0s, normally up ok: down: unicorn: 0s, normally up Ensuring the required services are running ok: run: postgresql: (pid 12568) 626s ok: run: redis: (pid 12505) 632s ok: run: gitaly: (pid 13289) 505s run: postgresql: (pid 12568) 626s; run: log: (pid 13264) 506s run: redis: (pid 12505) 632s; run: log: (pid 13263) 506s run: gitaly: (pid 13289) 505s; run: log: (pid 13300) 505s Reconfiguring GitLab to apply migrations Starting Chef Client, version 13.6.4 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks: - postgresql (0.1.0) - gitlab (0.0.1) - registry (0.1.0) - mattermost (0.1.0) - consul (0.0.0) - letsencrypt (0.1.0) - package (0.1.0) - nginx (0.1.0) - runit (0.14.2) - gitaly (0.1.0) - acme (3.1.0) - crond (0.1.0) - compat_resource (12.19.0) Installing Cookbook Gems: Compiling Cookbooks... Recipe: gitlab::default * directory[/etc/gitlab] action create (up to date) Converging 451 resources * directory[/etc/gitlab] action create (up to date) * directory[Create /var/opt/gitlab] action create (up to date) * directory[/opt/gitlab/embedded/etc] action create (up to date) * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date) Recipe: gitlab::web-server * account[Webserver user and group] action create * group[Webserver user and group] action create (up to date) * linux_user[Webserver user and group] action create (up to date) (up to date) Recipe: gitlab::users * directory[/var/opt/gitlab] action create (up to date) * account[GitLab user and group] action create * group[GitLab user and group] action create (up to date) * linux_user[GitLab user and group] action create (up to date) (up to date) * template[/var/opt/gitlab/.gitconfig] action create (up to date) Recipe: gitlab::gitlab-shell * storage_directory[/var/opt/gitlab/.ssh] action create * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if) (up to date) * directory[/var/log/gitlab/gitlab-shell/] action create (up to date) * directory[/var/opt/gitlab/gitlab-shell] action create (up to date) * templatesymlink[Create a config.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date) * execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions] action run - execute /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions * bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if) Recipe: gitlab::gitlab-rails * storage_directory[/var/opt/gitlab/git-data] action create * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/git-data/repositories] action create * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if) (up to date) * directory[/var/log/gitlab] action create (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if) (up to date) * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date) * directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date) * directory[create /var/log/gitlab/gitlab-rails] action create (up to date) * storage_directory[/var/opt/gitlab/backups] action create * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if) (up to date) * directory[/var/opt/gitlab/gitlab-rails] action create (up to date) * directory[/var/opt/gitlab/gitlab-ci] action create (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if) * template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create (up to date) * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date) * templatesymlink[Create a database.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date) (up to date) * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date) (up to date) * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date) (up to date) * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a aws.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/aws.yml] action delete (up to date) (up to date) * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date) (up to date) * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date) (up to date) * templatesymlink[Create a rack_attack.rb and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date) (up to date) * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date) (up to date) * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date) * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create * directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date) * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create (skipped due to not_if) * file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create (up to date) * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date) * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date) * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date) * execute[chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public] action run - execute chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date) Recipe: gitlab::add_trusted_certs * directory[/etc/gitlab/trusted-certs] action create (up to date) * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date) * file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date) * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if) Recipe: gitlab::default * service[create a temporary unicorn service] action nothing (skipped due to action :nothing) * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing) * service[create a temporary mailroom service] action nothing (skipped due to action :nothing) Recipe: runit::systemd * directory[/usr/lib/systemd/system] action create (up to date) * cookbook_file[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date) * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date) * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing) * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing) * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing) Recipe: gitlab::redis * account[user and group for redis] action create * group[user and group for redis] action create (up to date) * linux_user[user and group for redis] action create (up to date) (up to date) * group[Socket group] action create (up to date) * directory[/var/opt/gitlab/redis] action create (up to date) * directory[/var/log/gitlab/redis] action create (up to date) * template[/var/opt/gitlab/redis/redis.conf] action create (up to date) * directory[/opt/gitlab/sv/redis] action create (up to date) * directory[/opt/gitlab/sv/redis/log] action create (up to date) * directory[/opt/gitlab/sv/redis/log/main] action create (up to date) * template[/opt/gitlab/sv/redis/run] action create (up to date) * template[/opt/gitlab/sv/redis/log/run] action create (up to date) * template[/var/log/gitlab/redis/config] action create (up to date) * ruby_block[reload redis svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart redis svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/redis/down] action delete (up to date) * link[/opt/gitlab/init/redis] action create (up to date) * link[/opt/gitlab/service/redis] action create (up to date) * ruby_block[supervise_redis_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/redis/supervise] action create (up to date) * directory[/opt/gitlab/sv/redis/log/supervise] action create (up to date) * file[/opt/gitlab/sv/redis/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/log/supervise/control] action touch (skipped due to only_if) * service[redis] action nothing (skipped due to action :nothing) Recipe: postgresql::user * account[Postgresql user and group] action create * group[Postgresql user and group] action create (up to date) * linux_user[Postgresql user and group] action create (up to date) (up to date) Recipe: postgresql::enable * directory[/var/opt/gitlab/postgresql] action create (up to date) * directory[/var/opt/gitlab/postgresql/data] action create (up to date) * directory[/var/log/gitlab/postgresql] action create (up to date) * link[/var/opt/gitlab/postgresql/data] action create (skipped due to not_if) * file[/var/opt/gitlab/postgresql/.profile] action create (up to date) * sysctl[kernel.shmmax] action create * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date) * file[delete /etc/sysctl.d/90-postgresql.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.shmmax] action delete (skipped due to only_if) * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing) (up to date) * sysctl[kernel.shmall] action create * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date) * file[delete /etc/sysctl.d/90-postgresql.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.shmall] action delete (skipped due to only_if) * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing) (up to date) * sysctl[kernel.sem] action create * directory[create /etc/sysctl.d for kernel.sem] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date) * file[delete /etc/sysctl.d/90-postgresql.conf kernel.sem] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.sem] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.sem] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.sem] action delete (skipped due to only_if) * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing) (up to date) * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if) * file[/var/opt/gitlab/postgresql/data/server.crt] action create (up to date) * file[/var/opt/gitlab/postgresql/data/server.key] action create (up to date) * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date) * directory[/opt/gitlab/sv/postgresql] action create (up to date) * directory[/opt/gitlab/sv/postgresql/log] action create (up to date) * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date) * template[/opt/gitlab/sv/postgresql/run] action create (up to date) * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date) * template[/var/log/gitlab/postgresql/config] action create (up to date) * ruby_block[reload postgresql svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart postgresql svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/postgresql/down] action delete (up to date) * directory[/opt/gitlab/sv/postgresql/control] action create (up to date) * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date) * link[/opt/gitlab/init/postgresql] action create (up to date) * link[/opt/gitlab/service/postgresql] action create (up to date) * ruby_block[supervise_postgresql_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/postgresql/supervise] action create (up to date) * directory[/opt/gitlab/sv/postgresql/log/supervise] action create (up to date) * file[/opt/gitlab/sv/postgresql/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgresql/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgresql/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgresql/log/supervise/control] action touch (skipped due to only_if) * service[postgresql] action nothing (skipped due to action :nothing) Recipe: postgresql::bin * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if) Recipe: postgresql::enable * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date) * postgresql_user[gitlab] action create * execute[create gitlab postgresql user] action run (skipped due to not_if) (up to date) * execute[create gitlabhq_production database] action run (skipped due to not_if) * postgresql_user[gitlab_replicator] action create * execute[create gitlab_replicator postgresql user] action run (skipped due to not_if) * execute[set options for gitlab_replicator postgresql user] action run (skipped due to not_if) (up to date) * postgresql_extension[pg_trgm] action enable * postgresql_query[enable pg_trgm extension] action run (skipped due to only_if) (up to date) * execute[reload postgresql] action nothing (skipped due to action :nothing) * execute[start postgresql] action nothing (skipped due to action :nothing) Recipe: gitlab::database_migrations * bash[migrate gitlab-rails database] action run (skipped due to not_if) Recipe: gitlab::logrotate_folders_and_configs * directory[/var/opt/gitlab/logrotate] action create (up to date) * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date) * directory[/var/log/gitlab/logrotate] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/unicorn] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date) Recipe: gitlab::unicorn * directory[/var/log/gitlab/unicorn] action create (up to date) * directory[/opt/gitlab/var/unicorn] action create (up to date) * directory[/var/opt/gitlab/gitlab-rails/sockets] action create (up to date) * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date) * template[/var/opt/gitlab/gitlab-rails/etc/unicorn.rb] action create (up to date) * directory[/opt/gitlab/sv/unicorn] action create (up to date) * directory[/opt/gitlab/sv/unicorn/log] action create (up to date) * directory[/opt/gitlab/sv/unicorn/log/main] action create (up to date) * template[/opt/gitlab/sv/unicorn/run] action create (up to date) * template[/opt/gitlab/sv/unicorn/log/run] action create (up to date) * template[/var/log/gitlab/unicorn/config] action create (up to date) * ruby_block[reload unicorn svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart unicorn svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/unicorn/down] action delete (up to date) * directory[/opt/gitlab/sv/unicorn/control] action create (up to date) * template[/opt/gitlab/sv/unicorn/control/t] action create (up to date) * link[/opt/gitlab/init/unicorn] action create (up to date) * link[/opt/gitlab/service/unicorn] action create (up to date) * ruby_block[supervise_unicorn_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/unicorn/supervise] action create (up to date) * directory[/opt/gitlab/sv/unicorn/log/supervise] action create (up to date) * file[/opt/gitlab/sv/unicorn/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/log/supervise/control] action touch (skipped due to only_if) * service[unicorn] action nothing (skipped due to action :nothing) * sysctl[net.core.somaxconn] action create * directory[create /etc/sysctl.d for net.core.somaxconn] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create (up to date) * file[delete /etc/sysctl.d/90-postgresql.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf net.core.somaxconn] action delete (skipped due to only_if) * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing) (up to date) Recipe: gitlab::sidekiq * directory[/var/log/gitlab/sidekiq] action create (up to date) * directory[/opt/gitlab/sv/sidekiq] action create (up to date) * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date) * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date) * template[/opt/gitlab/sv/sidekiq/run] action create (up to date) * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date) * template[/var/log/gitlab/sidekiq/config] action create (up to date) * ruby_block[reload sidekiq svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart sidekiq svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/sidekiq/down] action delete (up to date) * link[/opt/gitlab/init/sidekiq] action create (up to date) * link[/opt/gitlab/service/sidekiq] action create (up to date) * ruby_block[supervise_sidekiq_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/sidekiq/supervise] action create (up to date) * directory[/opt/gitlab/sv/sidekiq/log/supervise] action create (up to date) * file[/opt/gitlab/sv/sidekiq/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/log/supervise/control] action touch (skipped due to only_if) * service[sidekiq] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-workhorse * directory[/var/opt/gitlab/gitlab-workhorse] action create (up to date) * directory[/var/log/gitlab/gitlab-workhorse] action create (up to date) * directory[/opt/gitlab/etc/gitlab-workhorse] action create (up to date) * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create * directory[/opt/gitlab/etc/gitlab-workhorse/env] action create (up to date) * file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] action create (up to date) * file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] action create (up to date) (up to date) * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date) * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date) * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date) * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date) * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date) * template[/var/log/gitlab/gitlab-workhorse/config] action create (up to date) * ruby_block[reload gitlab-workhorse svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitlab-workhorse svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitlab-workhorse/down] action delete (up to date) * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date) * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date) * ruby_block[supervise_gitlab-workhorse_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/gitlab-workhorse/supervise] action create (up to date) * directory[/opt/gitlab/sv/gitlab-workhorse/log/supervise] action create (up to date) * file[/opt/gitlab/sv/gitlab-workhorse/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/log/supervise/control] action touch (skipped due to only_if) * service[gitlab-workhorse] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitlab-workhorse/VERSION] action create (up to date) * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create (up to date) Recipe: gitlab::mailroom_disable * link[/opt/gitlab/service/mailroom] action delete (up to date) * directory[/opt/gitlab/sv/mailroom] action delete (up to date) Recipe: gitlab::nginx * directory[/var/opt/gitlab/nginx] action create (up to date) * directory[/var/opt/gitlab/nginx/conf] action create (up to date) * directory[/var/log/gitlab/nginx] action create (up to date) * link[/var/opt/gitlab/nginx/logs] action create (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] action create (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/nginx-status.conf] action create (up to date) * template[/var/opt/gitlab/nginx/conf/nginx.conf] action create (up to date) Recipe: nginx::enable * directory[/opt/gitlab/sv/nginx] action create (up to date) * directory[/opt/gitlab/sv/nginx/log] action create (up to date) * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date) * template[/opt/gitlab/sv/nginx/run] action create (up to date) * template[/opt/gitlab/sv/nginx/log/run] action create (up to date) * template[/var/log/gitlab/nginx/config] action create (up to date) * ruby_block[reload nginx svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart nginx svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/nginx/down] action delete (up to date) * link[/opt/gitlab/init/nginx] action create (up to date) * link[/opt/gitlab/service/nginx] action create (up to date) * ruby_block[supervise_nginx_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/nginx/supervise] action create (up to date) * directory[/opt/gitlab/sv/nginx/log/supervise] action create (up to date) * file[/opt/gitlab/sv/nginx/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/log/supervise/control] action touch (skipped due to only_if) * service[nginx] action nothing (skipped due to action :nothing) * execute[reload nginx] action nothing (skipped due to action :nothing) Recipe: gitlab::remote-syslog_disable * link[/opt/gitlab/service/remote-syslog] action delete (up to date) * directory[/opt/gitlab/sv/remote-syslog] action delete (up to date) Recipe: gitlab::logrotate * directory[/opt/gitlab/sv/logrotate] action create (up to date) * directory[/opt/gitlab/sv/logrotate/log] action create (up to date) * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date) * template[/opt/gitlab/sv/logrotate/run] action create (up to date) * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date) * template[/var/log/gitlab/logrotate/config] action create (up to date) * ruby_block[reload logrotate svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart logrotate svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/logrotate/down] action delete (up to date) * directory[/opt/gitlab/sv/logrotate/control] action create (up to date) * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date) * link[/opt/gitlab/init/logrotate] action create (up to date) * link[/opt/gitlab/service/logrotate] action create (up to date) * ruby_block[supervise_logrotate_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/logrotate/supervise] action create (up to date) * directory[/opt/gitlab/sv/logrotate/log/supervise] action create (up to date) * file[/opt/gitlab/sv/logrotate/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/log/supervise/control] action touch (skipped due to only_if) * service[logrotate] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-pages_disable * link[/opt/gitlab/service/gitlab-pages] action delete (up to date) * directory[/opt/gitlab/sv/gitlab-pages] action delete (up to date) Recipe: gitlab::storage-check_disable * link[/opt/gitlab/service/storage-check] action delete (up to date) * directory[/opt/gitlab/sv/storage-check] action delete (up to date) Recipe: registry::disable * link[/opt/gitlab/service/registry] action delete (up to date) * directory[/opt/gitlab/sv/registry] action delete (up to date) Recipe: gitaly::enable * directory[/var/opt/gitlab/gitaly] action create (up to date) * directory[/var/log/gitlab/gitaly] action create (up to date) * env_dir[/opt/gitlab/etc/gitaly] action create * directory[/opt/gitlab/etc/gitaly] action create (up to date) * file[/opt/gitlab/etc/gitaly/HOME] action create (up to date) * file[/opt/gitlab/etc/gitaly/PATH] action create (up to date) * file[/opt/gitlab/etc/gitaly/TZ] action create (up to date) (up to date) * template[Create Gitaly config.toml] action create (up to date) * directory[/opt/gitlab/sv/gitaly] action create (up to date) * directory[/opt/gitlab/sv/gitaly/log] action create (up to date) * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date) * template[/opt/gitlab/sv/gitaly/run] action create (up to date) * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date) * template[/var/log/gitlab/gitaly/config] action create (up to date) * ruby_block[reload gitaly svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitaly svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitaly/down] action delete (up to date) * link[/opt/gitlab/init/gitaly] action create (up to date) * link[/opt/gitlab/service/gitaly] action create (up to date) * ruby_block[supervise_gitaly_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/gitaly/supervise] action create (up to date) * directory[/opt/gitlab/sv/gitaly/log/supervise] action create (up to date) * file[/opt/gitlab/sv/gitaly/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/log/supervise/control] action touch (skipped due to only_if) * service[gitaly] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitaly/VERSION] action create (up to date) Recipe: mattermost::disable * link[/opt/gitlab/service/mattermost] action delete (up to date) * directory[/opt/gitlab/sv/mattermost] action delete (up to date) Recipe: gitlab::gitlab-healthcheck * template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create (up to date) Recipe: gitlab::prometheus_user * account[Prometheus user and group] action create * group[Prometheus user and group] action create (up to date) * linux_user[Prometheus user and group] action create (up to date) (up to date) Recipe: gitlab::node-exporter * directory[/var/log/gitlab/node-exporter] action create (up to date) * directory[/var/opt/gitlab/node-exporter/textfile_collector] action create (up to date) * directory[/opt/gitlab/sv/node-exporter] action create (up to date) * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date) * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date) * template[/opt/gitlab/sv/node-exporter/run] action create (up to date) * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date) * template[/var/log/gitlab/node-exporter/config] action create (up to date) * ruby_block[reload node-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart node-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/node-exporter/down] action delete (up to date) * link[/opt/gitlab/init/node-exporter] action create (up to date) * link[/opt/gitlab/service/node-exporter] action create (up to date) * ruby_block[supervise_node-exporter_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/node-exporter/supervise] action create (up to date) * directory[/opt/gitlab/sv/node-exporter/log/supervise] action create (up to date) * file[/opt/gitlab/sv/node-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/log/supervise/control] action touch (skipped due to only_if) * service[node-exporter] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-monitor * directory[/var/opt/gitlab/gitlab-monitor] action create (up to date) * directory[/var/log/gitlab/gitlab-monitor] action create (up to date) * template[/var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml] action create (up to date) * directory[/opt/gitlab/sv/gitlab-monitor] action create (up to date) * directory[/opt/gitlab/sv/gitlab-monitor/log] action create (up to date) * directory[/opt/gitlab/sv/gitlab-monitor/log/main] action create (up to date) * template[/opt/gitlab/sv/gitlab-monitor/run] action create (up to date) * template[/opt/gitlab/sv/gitlab-monitor/log/run] action create (up to date) * template[/var/log/gitlab/gitlab-monitor/config] action create (up to date) * ruby_block[reload gitlab-monitor svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitlab-monitor svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitlab-monitor/down] action delete (up to date) * link[/opt/gitlab/init/gitlab-monitor] action create (up to date) * link[/opt/gitlab/service/gitlab-monitor] action create (up to date) * ruby_block[supervise_gitlab-monitor_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/gitlab-monitor/supervise] action create (up to date) * directory[/opt/gitlab/sv/gitlab-monitor/log/supervise] action create (up to date) * file[/opt/gitlab/sv/gitlab-monitor/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/log/supervise/control] action touch (skipped due to only_if) * service[gitlab-monitor] action nothing (skipped due to action :nothing) Recipe: gitlab::redis-exporter * directory[/var/log/gitlab/redis-exporter] action create (up to date) * directory[/opt/gitlab/sv/redis-exporter] action create (up to date) * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date) * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date) * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date) * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date) * template[/var/log/gitlab/redis-exporter/config] action create (up to date) * ruby_block[reload redis-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart redis-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/redis-exporter/down] action delete (up to date) * link[/opt/gitlab/init/redis-exporter] action create (up to date) * link[/opt/gitlab/service/redis-exporter] action create (up to date) * ruby_block[supervise_redis-exporter_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/redis-exporter/supervise] action create (up to date) * directory[/opt/gitlab/sv/redis-exporter/log/supervise] action create (up to date) * file[/opt/gitlab/sv/redis-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/log/supervise/control] action touch (skipped due to only_if) * service[redis-exporter] action nothing (skipped due to action :nothing) Recipe: gitlab::prometheus * directory[/var/opt/gitlab/prometheus] action create (up to date) * directory[/var/log/gitlab/prometheus] action create (up to date) * file[Prometheus config] action create (up to date) * directory[/opt/gitlab/sv/prometheus] action create (up to date) * directory[/opt/gitlab/sv/prometheus/log] action create (up to date) * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date) * template[/opt/gitlab/sv/prometheus/run] action create (up to date) * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date) * template[/var/log/gitlab/prometheus/config] action create (up to date) * ruby_block[reload prometheus svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart prometheus svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/prometheus/down] action delete (up to date) * link[/opt/gitlab/init/prometheus] action create (up to date) * link[/opt/gitlab/service/prometheus] action create (up to date) * ruby_block[supervise_prometheus_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/prometheus/supervise] action create (up to date) * directory[/opt/gitlab/sv/prometheus/log/supervise] action create (up to date) * file[/opt/gitlab/sv/prometheus/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/log/supervise/control] action touch (skipped due to only_if) * service[prometheus] action nothing (skipped due to action :nothing) Recipe: gitlab::alertmanager * directory[/var/opt/gitlab/alertmanager] action create (up to date) * directory[/var/log/gitlab/alertmanager] action create (up to date) * file[Alertmanager config] action create (up to date) * directory[/opt/gitlab/sv/alertmanager] action create (up to date) * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date) * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date) * template[/opt/gitlab/sv/alertmanager/run] action create (up to date) * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date) * template[/var/log/gitlab/alertmanager/config] action create (up to date) * ruby_block[reload alertmanager svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart alertmanager svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/alertmanager/down] action delete (up to date) * link[/opt/gitlab/init/alertmanager] action create (up to date) * link[/opt/gitlab/service/alertmanager] action create (up to date) * ruby_block[supervise_alertmanager_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/alertmanager/supervise] action create (up to date) * directory[/opt/gitlab/sv/alertmanager/log/supervise] action create (up to date) * file[/opt/gitlab/sv/alertmanager/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/log/supervise/control] action touch (skipped due to only_if) * service[alertmanager] action nothing (skipped due to action :nothing) Recipe: gitlab::postgres-exporter * directory[/var/log/gitlab/postgres-exporter] action create (up to date) * directory[/var/opt/gitlab/postgres-exporter] action create (up to date) * env_dir[/opt/gitlab/etc/postgres-exporter/env] action create * directory[/opt/gitlab/etc/postgres-exporter/env] action create (up to date) * file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] action create (up to date) (up to date) * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date) * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date) * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date) * template[/var/log/gitlab/postgres-exporter/config] action create (up to date) * ruby_block[reload postgres-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart postgres-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/postgres-exporter/down] action delete (up to date) * link[/opt/gitlab/init/postgres-exporter] action create (up to date) * link[/opt/gitlab/service/postgres-exporter] action create (up to date) * ruby_block[supervise_postgres-exporter_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/postgres-exporter/supervise] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/log/supervise] action create (up to date) * file[/opt/gitlab/sv/postgres-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/log/supervise/control] action touch (skipped due to only_if) * service[postgres-exporter] action nothing (skipped due to action :nothing) * template[/var/opt/gitlab/postgres-exporter/queries.yaml] action create (up to date) Recipe: gitlab::deprecate-skip-auto-migrations * file[/etc/gitlab/skip-auto-reconfigure] action create (skipped due to only_if) * ruby_block[skip-auto-migrations deprecation] action run (skipped due to only_if) Running handlers: Running handlers complete Chef Client finished, 2/549 resources updated in 12 seconds gitlab Reconfigured! Checking for an omnibus managed postgresql: OK Checking for a newer version of PostgreSQL to install No new version of PostgreSQL installed, nothing to upgrade to Ensuring PostgreSQL is updated: OK Restarting previously running GitLab services ok: run: alertmanager: (pid 15634) 1s ok: run: gitaly: (pid 13289) 522s ok: run: gitlab-monitor: (pid 15645) 0s ok: run: gitlab-workhorse: (pid 15648) 1s ok: run: logrotate: (pid 15655) 0s ok: run: nginx: (pid 15661) 1s ok: run: node-exporter: (pid 15667) 0s ok: run: postgres-exporter: (pid 15673) 0s ok: run: postgresql: (pid 12568) 645s ok: run: prometheus: (pid 15680) 1s ok: run: redis: (pid 12505) 652s ok: run: redis-exporter: (pid 15690) 0s ok: run: sidekiq: (pid 15695) 1s ok: run: unicorn: (pid 15704) 0s _______ __ __ __ / ____(_) /_/ / ____ _/ /_ / / __/ / __/ / / __ `/ __ \ / /_/ / / /_/ /___/ /_/ / /_/ / \____/_/\__/_____/\__,_/_.___/ Upgrade complete! If your GitLab server is misbehaving try running sudo gitlab-ctl restart before anything else. If you need to roll back to the previous version you can use the database backup made during the upgrade (scroll up for the filename). | cs |
7.
1 2 | # vi /etc/gitlab/gitlab.rb | cs |
7-1.
1 2 3 4 5 6 | #external_url 'http://gitlab.example.com' external_url 'http://192.168.0.31' # gitlab_rails['time_zone'] = 'UTC' gitlab_rails['time_zone'] = 'Asia/Seoul' | cs |
8.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 | # gitlab-ctl reconfigure Starting Chef Client, version 13.6.4 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks: - postgresql (0.1.0) - mattermost (0.1.0) - gitlab (0.0.1) - gitaly (0.1.0) - package (0.1.0) - nginx (0.1.0) - registry (0.1.0) - letsencrypt (0.1.0) - runit (0.14.2) - consul (0.0.0) - acme (3.1.0) - crond (0.1.0) - compat_resource (12.19.0) Installing Cookbook Gems: Compiling Cookbooks... Recipe: gitlab::default * directory[/etc/gitlab] action create (up to date) Converging 451 resources * directory[/etc/gitlab] action create (up to date) * directory[Create /var/opt/gitlab] action create (up to date) * directory[/opt/gitlab/embedded/etc] action create (up to date) * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date) Recipe: gitlab::web-server * account[Webserver user and group] action create * group[Webserver user and group] action create (up to date) * linux_user[Webserver user and group] action create (up to date) (up to date) Recipe: gitlab::users * directory[/var/opt/gitlab] action create (up to date) * account[GitLab user and group] action create * group[GitLab user and group] action create (up to date) * linux_user[GitLab user and group] action create (up to date) (up to date) * template[/var/opt/gitlab/.gitconfig] action create - update content in file /var/opt/gitlab/.gitconfig from b924e8 to 1754e9 --- /var/opt/gitlab/.gitconfig 2018-06-22 15:40:38.072527759 +0900 +++ /var/opt/gitlab/.chef-.gitconfig20180622-16359-k1i6ms.gitconfig 2018-06-22 15:55:26.633447229 +0900 @@ -4,7 +4,7 @@ [user] name = GitLab - email = gitlab@gitlab.example.com + email = gitlab@192.168.0.31 [core] autocrlf = input [gc] Recipe: gitlab::gitlab-shell * storage_directory[/var/opt/gitlab/.ssh] action create * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if) (up to date) * directory[/var/log/gitlab/gitlab-shell/] action create (up to date) * directory[/var/opt/gitlab/gitlab-shell] action create (up to date) * templatesymlink[Create a config.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date) * execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions] action run - execute /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions * bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if) Recipe: gitlab::gitlab-rails * storage_directory[/var/opt/gitlab/git-data] action create * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/git-data/repositories] action create * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if) (up to date) * directory[/var/log/gitlab] action create (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if) (up to date) * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date) * directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date) * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date) * directory[create /var/log/gitlab/gitlab-rails] action create (up to date) * storage_directory[/var/opt/gitlab/backups] action create * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if) (up to date) * directory[/var/opt/gitlab/gitlab-rails] action create (up to date) * directory[/var/opt/gitlab/gitlab-ci] action create (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if) * template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create (up to date) * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date) * templatesymlink[Create a database.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date) (up to date) * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date) (up to date) * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date) (up to date) * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if) * templatesymlink[Create a aws.yml and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/aws.yml] action delete (up to date) (up to date) * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date) (up to date) * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create - update content in file /var/opt/gitlab/gitlab-rails/etc/gitlab.yml from 094b72 to 83d8eb --- /var/opt/gitlab/gitlab-rails/etc/gitlab.yml 2018-06-22 15:40:41.352413082 +0900 +++ /var/opt/gitlab/gitlab-rails/etc/.chef-gitlab20180622-16359-i0h4xa.yml 2018-06-22 15:55:27.609437404 +0900 @@ -10,7 +10,7 @@ ## GitLab settings gitlab: ## Web server settings (note: host is the FQDN, do not include http://) - host: gitlab.example.com + host: 192.168.0.31 port: 80 https: false @@ -32,13 +32,13 @@ user: git ## Date & Time settings - time_zone: + time_zone: "Asia/Seoul" ## Email settings # Uncomment and set to false if you need to disable email sending from GitLab (default: true) email_enabled: # Email address used in the "From" field in mails sent by GitLab - email_from: gitlab@gitlab.example.com + email_from: gitlab@192.168.0.31 email_display_name: email_reply_to: email_subject_suffix: * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date) * templatesymlink[Create a rack_attack.rb and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date) (up to date) * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date) (up to date) * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date) * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create * directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date) * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date) (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date) * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date) * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create (skipped due to not_if) * file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create (up to date) * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date) * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date) * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date) * execute[chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public] action run - execute chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date) Recipe: gitlab::add_trusted_certs * directory[/etc/gitlab/trusted-certs] action create (up to date) * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date) * file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date) * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if) Recipe: gitlab::default * service[create a temporary unicorn service] action nothing (skipped due to action :nothing) * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing) * service[create a temporary mailroom service] action nothing (skipped due to action :nothing) Recipe: runit::systemd * directory[/usr/lib/systemd/system] action create (up to date) * cookbook_file[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date) * file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date) * execute[systemctl daemon-reload] action nothing (skipped due to action :nothing) * execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing) * execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing) Recipe: gitlab::redis * account[user and group for redis] action create * group[user and group for redis] action create (up to date) * linux_user[user and group for redis] action create (up to date) (up to date) * group[Socket group] action create (up to date) * directory[/var/opt/gitlab/redis] action create (up to date) * directory[/var/log/gitlab/redis] action create (up to date) * template[/var/opt/gitlab/redis/redis.conf] action create (up to date) * directory[/opt/gitlab/sv/redis] action create (up to date) * directory[/opt/gitlab/sv/redis/log] action create (up to date) * directory[/opt/gitlab/sv/redis/log/main] action create (up to date) * template[/opt/gitlab/sv/redis/run] action create (up to date) * template[/opt/gitlab/sv/redis/log/run] action create (up to date) * template[/var/log/gitlab/redis/config] action create (up to date) * ruby_block[reload redis svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart redis svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/redis/down] action delete (up to date) * link[/opt/gitlab/init/redis] action create (up to date) * link[/opt/gitlab/service/redis] action create (up to date) * ruby_block[supervise_redis_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/redis/supervise] action create (up to date) * directory[/opt/gitlab/sv/redis/log/supervise] action create (up to date) * file[/opt/gitlab/sv/redis/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis/log/supervise/control] action touch (skipped due to only_if) * service[redis] action nothing (skipped due to action :nothing) Recipe: postgresql::user * account[Postgresql user and group] action create * group[Postgresql user and group] action create (up to date) * linux_user[Postgresql user and group] action create (up to date) (up to date) Recipe: postgresql::enable * directory[/var/opt/gitlab/postgresql] action create (up to date) * directory[/var/opt/gitlab/postgresql/data] action create (up to date) * directory[/var/log/gitlab/postgresql] action create (up to date) * link[/var/opt/gitlab/postgresql/data] action create (skipped due to not_if) * file[/var/opt/gitlab/postgresql/.profile] action create (up to date) * sysctl[kernel.shmmax] action create * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date) * file[delete /etc/sysctl.d/90-postgresql.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.shmmax] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.shmmax] action delete (skipped due to only_if) * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing) (up to date) * sysctl[kernel.shmall] action create * directory[create /etc/sysctl.d for kernel.shmall] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date) * file[delete /etc/sysctl.d/90-postgresql.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.shmall] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.shmall] action delete (skipped due to only_if) * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing) (up to date) * sysctl[kernel.sem] action create * directory[create /etc/sysctl.d for kernel.sem] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date) * file[delete /etc/sysctl.d/90-postgresql.conf kernel.sem] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf kernel.sem] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf kernel.sem] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf kernel.sem] action delete (skipped due to only_if) * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing) (up to date) * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if) * file[/var/opt/gitlab/postgresql/data/server.crt] action create (up to date) * file[/var/opt/gitlab/postgresql/data/server.key] action create (up to date) * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date) * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date) * directory[/opt/gitlab/sv/postgresql] action create (up to date) * directory[/opt/gitlab/sv/postgresql/log] action create (up to date) * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date) * template[/opt/gitlab/sv/postgresql/run] action create (up to date) * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date) * template[/var/log/gitlab/postgresql/config] action create (up to date) * ruby_block[reload postgresql svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart postgresql svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/postgresql/down] action delete (up to date) * directory[/opt/gitlab/sv/postgresql/control] action create (up to date) * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date) * link[/opt/gitlab/init/postgresql] action create (up to date) * link[/opt/gitlab/service/postgresql] action create (up to date) * ruby_block[supervise_postgresql_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/postgresql/supervise] action create (up to date) * directory[/opt/gitlab/sv/postgresql/log/supervise] action create (up to date) * file[/opt/gitlab/sv/postgresql/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgresql/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgresql/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgresql/log/supervise/control] action touch (skipped due to only_if) * service[postgresql] action nothing (skipped due to action :nothing) Recipe: postgresql::bin * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if) Recipe: postgresql::enable * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date) * postgresql_user[gitlab] action create * execute[create gitlab postgresql user] action run (skipped due to not_if) (up to date) * execute[create gitlabhq_production database] action run (skipped due to not_if) * postgresql_user[gitlab_replicator] action create * execute[create gitlab_replicator postgresql user] action run (skipped due to not_if) * execute[set options for gitlab_replicator postgresql user] action run (skipped due to not_if) (up to date) * postgresql_extension[pg_trgm] action enable * postgresql_query[enable pg_trgm extension] action run (skipped due to only_if) (up to date) * execute[reload postgresql] action nothing (skipped due to action :nothing) * execute[start postgresql] action nothing (skipped due to action :nothing) Recipe: gitlab::database_migrations * bash[migrate gitlab-rails database] action run (skipped due to not_if) Recipe: gitlab::logrotate_folders_and_configs * directory[/var/opt/gitlab/logrotate] action create (up to date) * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date) * directory[/var/log/gitlab/logrotate] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/unicorn] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date) * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date) Recipe: gitlab::unicorn * directory[/var/log/gitlab/unicorn] action create (up to date) * directory[/opt/gitlab/var/unicorn] action create (up to date) * directory[/var/opt/gitlab/gitlab-rails/sockets] action create (up to date) * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date) * template[/var/opt/gitlab/gitlab-rails/etc/unicorn.rb] action create (up to date) * directory[/opt/gitlab/sv/unicorn] action create (up to date) * directory[/opt/gitlab/sv/unicorn/log] action create (up to date) * directory[/opt/gitlab/sv/unicorn/log/main] action create (up to date) * template[/opt/gitlab/sv/unicorn/run] action create (up to date) * template[/opt/gitlab/sv/unicorn/log/run] action create (up to date) * template[/var/log/gitlab/unicorn/config] action create (up to date) * ruby_block[reload unicorn svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart unicorn svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/unicorn/down] action delete (up to date) * directory[/opt/gitlab/sv/unicorn/control] action create (up to date) * template[/opt/gitlab/sv/unicorn/control/t] action create (up to date) * link[/opt/gitlab/init/unicorn] action create (up to date) * link[/opt/gitlab/service/unicorn] action create (up to date) * ruby_block[supervise_unicorn_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/unicorn/supervise] action create (up to date) * directory[/opt/gitlab/sv/unicorn/log/supervise] action create (up to date) * file[/opt/gitlab/sv/unicorn/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/unicorn/log/supervise/control] action touch (skipped due to only_if) * service[unicorn] action nothing (skipped due to action :nothing) * sysctl[net.core.somaxconn] action create * directory[create /etc/sysctl.d for net.core.somaxconn] action create (up to date) * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create (up to date) * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create (up to date) * file[delete /etc/sysctl.d/90-postgresql.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-unicorn.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /opt/gitlab/embedded/etc/90-omnibus-gitlab.conf net.core.somaxconn] action delete (skipped due to only_if) * file[delete /etc/sysctl.d/90-omnibus-gitlab.conf net.core.somaxconn] action delete (skipped due to only_if) * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing) (up to date) Recipe: gitlab::sidekiq * directory[/var/log/gitlab/sidekiq] action create (up to date) * directory[/opt/gitlab/sv/sidekiq] action create (up to date) * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date) * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date) * template[/opt/gitlab/sv/sidekiq/run] action create (up to date) * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date) * template[/var/log/gitlab/sidekiq/config] action create (up to date) * ruby_block[reload sidekiq svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart sidekiq svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/sidekiq/down] action delete (up to date) * link[/opt/gitlab/init/sidekiq] action create (up to date) * link[/opt/gitlab/service/sidekiq] action create (up to date) * ruby_block[supervise_sidekiq_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/sidekiq/supervise] action create (up to date) * directory[/opt/gitlab/sv/sidekiq/log/supervise] action create (up to date) * file[/opt/gitlab/sv/sidekiq/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/sidekiq/log/supervise/control] action touch (skipped due to only_if) * service[sidekiq] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-workhorse * directory[/var/opt/gitlab/gitlab-workhorse] action create (up to date) * directory[/var/log/gitlab/gitlab-workhorse] action create (up to date) * directory[/opt/gitlab/etc/gitlab-workhorse] action create (up to date) * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create * directory[/opt/gitlab/etc/gitlab-workhorse/env] action create (up to date) * file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] action create (up to date) * file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] action create (up to date) (up to date) * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date) * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date) * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date) * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date) * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date) * template[/var/log/gitlab/gitlab-workhorse/config] action create (up to date) * ruby_block[reload gitlab-workhorse svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitlab-workhorse svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitlab-workhorse/down] action delete (up to date) * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date) * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date) * ruby_block[supervise_gitlab-workhorse_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/gitlab-workhorse/supervise] action create (up to date) * directory[/opt/gitlab/sv/gitlab-workhorse/log/supervise] action create (up to date) * file[/opt/gitlab/sv/gitlab-workhorse/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-workhorse/log/supervise/control] action touch (skipped due to only_if) * service[gitlab-workhorse] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitlab-workhorse/VERSION] action create (up to date) * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create (up to date) Recipe: gitlab::mailroom_disable * link[/opt/gitlab/service/mailroom] action delete (up to date) * directory[/opt/gitlab/sv/mailroom] action delete (up to date) Recipe: gitlab::nginx * directory[/var/opt/gitlab/nginx] action create (up to date) * directory[/var/opt/gitlab/nginx/conf] action create (up to date) * directory[/var/log/gitlab/nginx] action create (up to date) * link[/var/opt/gitlab/nginx/logs] action create (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] action create - update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from a347d6 to 67acda --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2018-06-22 15:41:46.686902256 +0900 +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20180622-16359-l5ogjr.conf 2018-06-22 15:55:28.661426821 +0900 @@ -39,7 +39,7 @@ listen *:80; - server_name gitlab.example.com; + server_name 192.168.0.31; server_tokens off; ## Don't show the nginx version number, a security best practice ## Increase this if you want to upload large attachments @@ -59,7 +59,7 @@ error_log /var/log/gitlab/nginx/gitlab_error.log; if ($http_host = "") { - set $http_host_with_default "gitlab.example.com"; + set $http_host_with_default "192.168.0.31"; } if ($http_host != "") { * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/nginx-status.conf] action create (up to date) * template[/var/opt/gitlab/nginx/conf/nginx.conf] action create (up to date) Recipe: nginx::enable * directory[/opt/gitlab/sv/nginx] action create (up to date) * directory[/opt/gitlab/sv/nginx/log] action create (up to date) * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date) * template[/opt/gitlab/sv/nginx/run] action create (up to date) * template[/opt/gitlab/sv/nginx/log/run] action create (up to date) * template[/var/log/gitlab/nginx/config] action create (up to date) * ruby_block[reload nginx svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart nginx svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/nginx/down] action delete (up to date) * link[/opt/gitlab/init/nginx] action create (up to date) * link[/opt/gitlab/service/nginx] action create (up to date) * ruby_block[supervise_nginx_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/nginx/supervise] action create (up to date) * directory[/opt/gitlab/sv/nginx/log/supervise] action create (up to date) * file[/opt/gitlab/sv/nginx/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/nginx/log/supervise/control] action touch (skipped due to only_if) * service[nginx] action nothing (skipped due to action :nothing) * execute[reload nginx] action nothing (skipped due to action :nothing) Recipe: gitlab::remote-syslog_disable * link[/opt/gitlab/service/remote-syslog] action delete (up to date) * directory[/opt/gitlab/sv/remote-syslog] action delete (up to date) Recipe: gitlab::logrotate * directory[/opt/gitlab/sv/logrotate] action create (up to date) * directory[/opt/gitlab/sv/logrotate/log] action create (up to date) * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date) * template[/opt/gitlab/sv/logrotate/run] action create (up to date) * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date) * template[/var/log/gitlab/logrotate/config] action create (up to date) * ruby_block[reload logrotate svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart logrotate svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/logrotate/down] action delete (up to date) * directory[/opt/gitlab/sv/logrotate/control] action create (up to date) * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date) * link[/opt/gitlab/init/logrotate] action create (up to date) * link[/opt/gitlab/service/logrotate] action create (up to date) * ruby_block[supervise_logrotate_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/logrotate/supervise] action create (up to date) * directory[/opt/gitlab/sv/logrotate/log/supervise] action create (up to date) * file[/opt/gitlab/sv/logrotate/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/logrotate/log/supervise/control] action touch (skipped due to only_if) * service[logrotate] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-pages_disable * link[/opt/gitlab/service/gitlab-pages] action delete (up to date) * directory[/opt/gitlab/sv/gitlab-pages] action delete (up to date) Recipe: gitlab::storage-check_disable * link[/opt/gitlab/service/storage-check] action delete (up to date) * directory[/opt/gitlab/sv/storage-check] action delete (up to date) Recipe: registry::disable * link[/opt/gitlab/service/registry] action delete (up to date) * directory[/opt/gitlab/sv/registry] action delete (up to date) Recipe: gitaly::enable * directory[/var/opt/gitlab/gitaly] action create (up to date) * directory[/var/log/gitlab/gitaly] action create (up to date) * env_dir[/opt/gitlab/etc/gitaly] action create * directory[/opt/gitlab/etc/gitaly] action create (up to date) * file[/opt/gitlab/etc/gitaly/HOME] action create (up to date) * file[/opt/gitlab/etc/gitaly/PATH] action create (up to date) * file[/opt/gitlab/etc/gitaly/TZ] action create (up to date) (up to date) * template[Create Gitaly config.toml] action create (up to date) * directory[/opt/gitlab/sv/gitaly] action create (up to date) * directory[/opt/gitlab/sv/gitaly/log] action create (up to date) * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date) * template[/opt/gitlab/sv/gitaly/run] action create (up to date) * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date) * template[/var/log/gitlab/gitaly/config] action create (up to date) * ruby_block[reload gitaly svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitaly svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitaly/down] action delete (up to date) * link[/opt/gitlab/init/gitaly] action create (up to date) * link[/opt/gitlab/service/gitaly] action create (up to date) * ruby_block[supervise_gitaly_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/gitaly/supervise] action create (up to date) * directory[/opt/gitlab/sv/gitaly/log/supervise] action create (up to date) * file[/opt/gitlab/sv/gitaly/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitaly/log/supervise/control] action touch (skipped due to only_if) * service[gitaly] action nothing (skipped due to action :nothing) * file[/var/opt/gitlab/gitaly/VERSION] action create (up to date) Recipe: mattermost::disable * link[/opt/gitlab/service/mattermost] action delete (up to date) * directory[/opt/gitlab/sv/mattermost] action delete (up to date) Recipe: gitlab::gitlab-healthcheck * template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create (up to date) Recipe: gitlab::prometheus_user * account[Prometheus user and group] action create * group[Prometheus user and group] action create (up to date) * linux_user[Prometheus user and group] action create (up to date) (up to date) Recipe: gitlab::node-exporter * directory[/var/log/gitlab/node-exporter] action create (up to date) * directory[/var/opt/gitlab/node-exporter/textfile_collector] action create (up to date) * directory[/opt/gitlab/sv/node-exporter] action create (up to date) * directory[/opt/gitlab/sv/node-exporter/log] action create (up to date) * directory[/opt/gitlab/sv/node-exporter/log/main] action create (up to date) * template[/opt/gitlab/sv/node-exporter/run] action create (up to date) * template[/opt/gitlab/sv/node-exporter/log/run] action create (up to date) * template[/var/log/gitlab/node-exporter/config] action create (up to date) * ruby_block[reload node-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart node-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/node-exporter/down] action delete (up to date) * link[/opt/gitlab/init/node-exporter] action create (up to date) * link[/opt/gitlab/service/node-exporter] action create (up to date) * ruby_block[supervise_node-exporter_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/node-exporter/supervise] action create (up to date) * directory[/opt/gitlab/sv/node-exporter/log/supervise] action create (up to date) * file[/opt/gitlab/sv/node-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/node-exporter/log/supervise/control] action touch (skipped due to only_if) * service[node-exporter] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-monitor * directory[/var/opt/gitlab/gitlab-monitor] action create (up to date) * directory[/var/log/gitlab/gitlab-monitor] action create (up to date) * template[/var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml] action create (up to date) * directory[/opt/gitlab/sv/gitlab-monitor] action create (up to date) * directory[/opt/gitlab/sv/gitlab-monitor/log] action create (up to date) * directory[/opt/gitlab/sv/gitlab-monitor/log/main] action create (up to date) * template[/opt/gitlab/sv/gitlab-monitor/run] action create (up to date) * template[/opt/gitlab/sv/gitlab-monitor/log/run] action create (up to date) * template[/var/log/gitlab/gitlab-monitor/config] action create (up to date) * ruby_block[reload gitlab-monitor svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart gitlab-monitor svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/gitlab-monitor/down] action delete (up to date) * link[/opt/gitlab/init/gitlab-monitor] action create (up to date) * link[/opt/gitlab/service/gitlab-monitor] action create (up to date) * ruby_block[supervise_gitlab-monitor_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/gitlab-monitor/supervise] action create (up to date) * directory[/opt/gitlab/sv/gitlab-monitor/log/supervise] action create (up to date) * file[/opt/gitlab/sv/gitlab-monitor/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/gitlab-monitor/log/supervise/control] action touch (skipped due to only_if) * service[gitlab-monitor] action nothing (skipped due to action :nothing) Recipe: gitlab::redis-exporter * directory[/var/log/gitlab/redis-exporter] action create (up to date) * directory[/opt/gitlab/sv/redis-exporter] action create (up to date) * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date) * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date) * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date) * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date) * template[/var/log/gitlab/redis-exporter/config] action create (up to date) * ruby_block[reload redis-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart redis-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/redis-exporter/down] action delete (up to date) * link[/opt/gitlab/init/redis-exporter] action create (up to date) * link[/opt/gitlab/service/redis-exporter] action create (up to date) * ruby_block[supervise_redis-exporter_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/redis-exporter/supervise] action create (up to date) * directory[/opt/gitlab/sv/redis-exporter/log/supervise] action create (up to date) * file[/opt/gitlab/sv/redis-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/redis-exporter/log/supervise/control] action touch (skipped due to only_if) * service[redis-exporter] action nothing (skipped due to action :nothing) Recipe: gitlab::prometheus * directory[/var/opt/gitlab/prometheus] action create (up to date) * directory[/var/log/gitlab/prometheus] action create (up to date) * file[Prometheus config] action create (up to date) * directory[/opt/gitlab/sv/prometheus] action create (up to date) * directory[/opt/gitlab/sv/prometheus/log] action create (up to date) * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date) * template[/opt/gitlab/sv/prometheus/run] action create (up to date) * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date) * template[/var/log/gitlab/prometheus/config] action create (up to date) * ruby_block[reload prometheus svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart prometheus svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/prometheus/down] action delete (up to date) * link[/opt/gitlab/init/prometheus] action create (up to date) * link[/opt/gitlab/service/prometheus] action create (up to date) * ruby_block[supervise_prometheus_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/prometheus/supervise] action create (up to date) * directory[/opt/gitlab/sv/prometheus/log/supervise] action create (up to date) * file[/opt/gitlab/sv/prometheus/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/prometheus/log/supervise/control] action touch (skipped due to only_if) * service[prometheus] action nothing (skipped due to action :nothing) Recipe: gitlab::alertmanager * directory[/var/opt/gitlab/alertmanager] action create (up to date) * directory[/var/log/gitlab/alertmanager] action create (up to date) * file[Alertmanager config] action create (up to date) * directory[/opt/gitlab/sv/alertmanager] action create (up to date) * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date) * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date) * template[/opt/gitlab/sv/alertmanager/run] action create (up to date) * template[/opt/gitlab/sv/alertmanager/log/run] action create (up to date) * template[/var/log/gitlab/alertmanager/config] action create (up to date) * ruby_block[reload alertmanager svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart alertmanager svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/alertmanager/down] action delete (up to date) * link[/opt/gitlab/init/alertmanager] action create (up to date) * link[/opt/gitlab/service/alertmanager] action create (up to date) * ruby_block[supervise_alertmanager_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/alertmanager/supervise] action create (up to date) * directory[/opt/gitlab/sv/alertmanager/log/supervise] action create (up to date) * file[/opt/gitlab/sv/alertmanager/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/alertmanager/log/supervise/control] action touch (skipped due to only_if) * service[alertmanager] action nothing (skipped due to action :nothing) Recipe: gitlab::postgres-exporter * directory[/var/log/gitlab/postgres-exporter] action create (up to date) * directory[/var/opt/gitlab/postgres-exporter] action create (up to date) * env_dir[/opt/gitlab/etc/postgres-exporter/env] action create * directory[/opt/gitlab/etc/postgres-exporter/env] action create (up to date) * file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] action create (up to date) (up to date) * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date) * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date) * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date) * template[/var/log/gitlab/postgres-exporter/config] action create (up to date) * ruby_block[reload postgres-exporter svlogd configuration] action nothing (skipped due to action :nothing) * ruby_block[restart postgres-exporter svlogd configuration] action nothing (skipped due to action :nothing) * file[/opt/gitlab/sv/postgres-exporter/down] action delete (up to date) * link[/opt/gitlab/init/postgres-exporter] action create (up to date) * link[/opt/gitlab/service/postgres-exporter] action create (up to date) * ruby_block[supervise_postgres-exporter_sleep] action run (skipped due to not_if) * directory[/opt/gitlab/sv/postgres-exporter/supervise] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/log/supervise] action create (up to date) * file[/opt/gitlab/sv/postgres-exporter/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/log/supervise/ok] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/supervise/control] action touch (skipped due to only_if) * file[/opt/gitlab/sv/postgres-exporter/log/supervise/control] action touch (skipped due to only_if) * service[postgres-exporter] action nothing (skipped due to action :nothing) * template[/var/opt/gitlab/postgres-exporter/queries.yaml] action create (up to date) Recipe: gitlab::deprecate-skip-auto-migrations * file[/etc/gitlab/skip-auto-reconfigure] action create (skipped due to only_if) * ruby_block[skip-auto-migrations deprecation] action run (skipped due to only_if) Recipe: gitlab::unicorn * service[unicorn] action restart - restart service service[unicorn] Recipe: gitlab::sidekiq * service[sidekiq] action restart - restart service service[sidekiq] Recipe: gitlab::gitlab-rails * execute[clear the gitlab-rails cache] action run - execute /opt/gitlab/bin/gitlab-rake cache:clear Recipe: nginx::enable * service[nginx] action restart - restart service service[nginx] Running handlers: Running handlers complete Chef Client finished, 10/553 resources updated in 30 seconds gitlab Reconfigured! | cs |
9.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # gitlab-ctl restart ok: run: alertmanager: (pid 17163) 0s ok: run: gitaly: (pid 17172) 0s ok: run: gitlab-monitor: (pid 17182) 1s ok: run: gitlab-workhorse: (pid 17187) 0s ok: run: logrotate: (pid 17195) 1s ok: run: nginx: (pid 17213) 0s ok: run: node-exporter: (pid 17219) 1s ok: run: postgres-exporter: (pid 17227) 0s ok: run: postgresql: (pid 17246) 0s ok: run: prometheus: (pid 17254) 1s ok: run: redis: (pid 17264) 0s ok: run: redis-exporter: (pid 17269) 1s ok: run: sidekiq: (pid 17276) 0s ok: run: unicorn: (pid 17370) 0s | cs |
10.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # gitlab-ctl status run: alertmanager: (pid 17163) 1361s; run: log: (pid 13381) 2151s run: gitaly: (pid 17172) 1361s; run: log: (pid 13300) 2154s run: gitlab-monitor: (pid 17182) 1361s; run: log: (pid 13323) 2153s run: gitlab-workhorse: (pid 17187) 1360s; run: log: (pid 13331) 2153s run: logrotate: (pid 17195) 1360s; run: log: (pid 13282) 2154s run: nginx: (pid 17213) 1359s; run: log: (pid 13332) 2153s run: node-exporter: (pid 17219) 1359s; run: log: (pid 13352) 2153s run: postgres-exporter: (pid 17227) 1358s; run: log: (pid 13380) 2152s run: postgresql: (pid 17246) 1358s; run: log: (pid 13264) 2155s run: prometheus: (pid 17254) 1358s; run: log: (pid 13343) 2153s run: redis: (pid 17264) 1357s; run: log: (pid 13263) 2155s run: redis-exporter: (pid 17269) 1357s; run: log: (pid 13324) 2153s run: sidekiq: (pid 17276) 1356s; run: log: (pid 13311) 2154s run: unicorn: (pid 17370) 1355s; run: log: (pid 13310) 2154s | cs |
11. 비밀번호를 초기화합니다.
12. 계정을 만들고 로그인을 진행하면 아래와 같은 화면이 표시됩니다.
gitlab port 변경 시 (0) | 2018.06.22 |
---|---|
GitLab 설정 파일 및 명령어 (0) | 2018.06.22 |