GitLab的基础使用-常用命令
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
git命令的基本使用参考我之前的笔记:https://www.cnblogs.com/yinzhengjie/p/9545646.html。
一.gitlab-backup
该命令用于数据备份恢复等操作。
博主推荐阅读:
二.gitlab-ctl
1>.查看所有组件运行状态
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-ctl status run: alertmanager: (pid 18509) 0s; run: log: (pid 1541) 1746s run: gitaly: (pid 18140) 13s; run: log: (pid 1549) 1746s run: gitlab-exporter: (pid 18156) 13s; run: log: (pid 1539) 1746s run: gitlab-workhorse: (pid 18167) 12s; run: log: (pid 1538) 1746s run: grafana: (pid 18189) 12s; run: log: (pid 1547) 1746s run: logrotate: (pid 18213) 12s; run: log: (pid 1540) 1746s run: nginx: (pid 18223) 11s; run: log: (pid 1543) 1746s run: node-exporter: (pid 18237) 11s; run: log: (pid 1536) 1746s run: postgres-exporter: (pid 18256) 10s; run: log: (pid 1546) 1746s run: postgresql: (pid 18341) 10s; run: log: (pid 1548) 1746s run: prometheus: (pid 18351) 9s; run: log: (pid 1545) 1746s run: redis: (pid 18372) 9s; run: log: (pid 1550) 1746s run: redis-exporter: (pid 18412) 9s; run: log: (pid 1537) 1746s run: sidekiq: (pid 18435) 6s; run: log: (pid 1544) 1746s run: unicorn: (pid 18461) 5s; run: log: (pid 1542) 1746s [root@gitlab201.yinzhengjie.org.cn ~]#
2>.停止服务
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-ctl stop ok: down: alertmanager: 0s, normally up, want up ok: down: gitaly: 0s, normally up ok: down: gitlab-exporter: 0s, normally up ok: down: gitlab-workhorse: 1s, normally up ok: down: grafana: 0s, normally up ok: down: logrotate: 0s, normally up ok: down: nginx: 1s, normally up ok: down: node-exporter: 0s, normally up ok: down: postgres-exporter: 1s, normally up ok: down: postgresql: 0s, normally up ok: down: prometheus: 1s, normally up ok: down: redis: 0s, normally up ok: down: redis-exporter: 0s, normally up ok: down: sidekiq: 0s, normally up ok: down: unicorn: 0s, normally up [root@gitlab201.yinzhengjie.org.cn ~]#
3>.启动服务
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-ctl start ok: run: alertmanager: (pid 17599) 0s ok: run: gitaly: (pid 17609) 1s ok: run: gitlab-exporter: (pid 17623) 0s ok: run: gitlab-workhorse: (pid 17631) 1s ok: run: grafana: (pid 17658) 0s ok: run: logrotate: (pid 17667) 0s ok: run: nginx: (pid 17679) 1s ok: run: node-exporter: (pid 17761) 0s ok: run: postgres-exporter: (pid 17767) 1s ok: run: postgresql: (pid 17781) 0s ok: run: prometheus: (pid 17790) 1s ok: run: redis: (pid 17801) 0s ok: run: redis-exporter: (pid 17813) 0s ok: run: sidekiq: (pid 17819) 1s ok: run: unicorn: (pid 17831) 0s [root@gitlab201.yinzhengjie.org.cn ~]#
4>.重启服务
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-ctl restart ok: run: alertmanager: (pid 18129) 0s ok: run: gitaly: (pid 18140) 0s ok: run: gitlab-exporter: (pid 18156) 1s ok: run: gitlab-workhorse: (pid 18167) 0s ok: run: grafana: (pid 18189) 0s ok: run: logrotate: (pid 18213) 1s ok: run: nginx: (pid 18223) 0s ok: run: node-exporter: (pid 18237) 1s ok: run: postgres-exporter: (pid 18256) 0s ok: run: postgresql: (pid 18341) 1s ok: run: prometheus: (pid 18351) 0s ok: run: redis: (pid 18372) 0s ok: run: redis-exporter: (pid 18412) 1s ok: run: sidekiq: (pid 18435) 0s ok: run: unicorn: (pid 18461) 0s [root@gitlab201.yinzhengjie.org.cn ~]#
5>.查看某个组件的日志
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-ctl tail nginx ==> /var/log/gitlab/nginx/error.log <== ==> /var/log/gitlab/nginx/access.log <== ==> /var/log/gitlab/nginx/gitlab_error.log <== ==> /var/log/gitlab/nginx/current <== ==> /var/log/gitlab/nginx/gitlab_access.log <== 172.200.0.1 - - [13/Mar/2020:09:45:59 +0000] "GET /favicon.ico HTTP/1.1" 502 2940 "http://gitlab201.yinzhengjie.org.cn/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:45:59 +0000] "GET / HTTP/1.1" 502 2940 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:45:59 +0000] "GET /favicon.ico HTTP/1.1" 502 2940 "http://gitlab201.yinzhengjie.org.cn/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:45:59 +0000] "GET / HTTP/1.1" 502 2940 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:46:00 +0000] "GET /favicon.ico HTTP/1.1" 502 2940 "http://gitlab201.yinzhengjie.org.cn/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:47:33 +0000] "GET / HTTP/1.1" 302 115 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:47:33 +0000] "GET /users/sign_in HTTP/1.1" 200 4816 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:47:35 +0000] "GET /users/password/new HTTP/1.1" 200 3752 "http://gitlab201.yinzhengjie.org.cn/users/sign_in" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:47:38 +0000] "POST /users/password HTTP/1.1" 302 115 "http://gitlab201.yinzhengjie.org.cn/users/password/new" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" 172.200.0.1 - - [13/Mar/2020:09:47:38 +0000] "GET /users/sign_in HTTP/1.1" 200 4979 "http://gitlab201.yinzhengjie.org.cn/users/password/new" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" ......
6>.重新配置应用(一般用于修改配置文件后需要执行该命令)
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-ctl reconfigure Starting Chef Client, version 14.14.29 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks: - package (0.1.0) - redis (0.1.0) - registry (0.1.0) - consul (0.1.0) - gitaly (0.1.0) - praefect (0.1.0) - letsencrypt (0.1.0) - nginx (0.1.0) - runit (4.3.0) - acme (4.0.0) - gitlab (0.0.1) - postgresql (0.1.0) - monitoring (0.1.0) - mattermost (0.1.0) - crond (0.1.0) Installing Cookbook Gems: Compiling Cookbooks... Recipe: gitlab::default * directory[/etc/gitlab] action create (up to date) Converging 270 resources * directory[/etc/gitlab] action create (up to date) * directory[Create /var/opt/gitlab] action create (up to date) * directory[Create /var/log/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) * directory[/var/opt/gitlab/.bundle] 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) * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date) 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) * 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/external-diffs] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] 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/shared/packages] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if) (up to date) * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] 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[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if) * 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) * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date) * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if) * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date) * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if) * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date) * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date) * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb to /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action create (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) * templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] action create * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date) * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_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) * file[/opt/gitlab/etc/gitlab-rails/env/TZ] 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[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::selinux * bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if) 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 puma 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: package::runit_systemd * directory[/usr/lib/systemd/system] action create (up to date) * template[/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) * file[/etc/systemd/system/basic.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: postgresql::bin * ruby_block[check_postgresql_version] action run (skipped due to not_if) * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if) Recipe: redis::enable * 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) Recipe: <Dynamically Defined Resource> * service[redis] action nothing (skipped due to action :nothing) Recipe: redis::enable * runit_service[redis] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/redis] action create (up to date) * template[/opt/gitlab/sv/redis/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/redis/config] action create (up to date) * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/redis/env] action create (up to date) * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if) * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/redis/control] action create (up to date) * link[/opt/gitlab/init/redis] action create (up to date) * file[/opt/gitlab/sv/redis/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/redis] action create (up to date) * ruby_block[wait for redis service socket] action run (skipped due to not_if) (up to date) * ruby_block[warn pending redis restart] action run (skipped due to only_if) Recipe: gitaly::enable * directory[/var/opt/gitlab/gitaly] action create (up to date) * directory[/var/log/gitlab/gitaly] action create (up to date) * directory[/var/opt/gitlab/gitaly/internal_sockets] action create (up to date) * env_dir[/opt/gitlab/etc/gitaly/env] action create * directory[/opt/gitlab/etc/gitaly/env] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/HOME] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/PATH] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/TZ] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create (up to date) * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create (up to date) (up to date) * template[Create Gitaly config.toml] action create (up to date) Recipe: <Dynamically Defined Resource> * service[gitaly] action nothing (skipped due to action :nothing) Recipe: gitaly::enable * runit_service[gitaly] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/gitaly] action create (up to date) * template[/opt/gitlab/sv/gitaly/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/gitaly/config] action create (up to date) * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/gitaly/env] action create (up to date) * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if) * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/gitaly/control] action create (up to date) * link[/opt/gitlab/init/gitaly] action create (up to date) * file[/opt/gitlab/sv/gitaly/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/gitaly] action create (up to date) * ruby_block[wait for gitaly service socket] action run (skipped due to not_if) (up to date) * file[/var/opt/gitlab/gitaly/VERSION] action create (up to date) * consul_service[gitaly] action delete * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date) (up to date) Recipe: <Dynamically Defined Resource> * service[praefect] action nothing (skipped due to action :nothing) Recipe: praefect::disable * runit_service[praefect] action disable * ruby_block[disable praefect] action run (skipped due to only_if) (up to date) * consul_service[praefect] action delete * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date) (up to date) 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] 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) * gitlab_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) * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing) (up to date) * gitlab_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) * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing) (up to date) * gitlab_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) * 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) * postgresql_config[gitlab] action create * 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) (up to date) Recipe: <Dynamically Defined Resource> * service[postgresql] action nothing (skipped due to action :nothing) Recipe: postgresql::enable * runit_service[postgresql] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/postgresql] action create (up to date) * template[/opt/gitlab/sv/postgresql/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/postgresql/config] action create (up to date) * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/postgresql/env] action create (up to date) * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if) * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if) * 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) * file[/opt/gitlab/sv/postgresql/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/postgresql] action create (up to date) * ruby_block[wait for postgresql service socket] action run (skipped due to not_if) * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date) * directory[/opt/gitlab/service/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/status] action touch - change owner from 'root' to 'gitlab-psql' - change group from 'root' to 'gitlab-psql' - update utime on file /opt/gitlab/sv/postgresql/supervise/status * file[/opt/gitlab/sv/postgresql/log/supervise/status] 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) * 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) * ruby_block[warn pending postgresql restart] action run (skipped due to only_if) * 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) * bash[set ownership of old migration log files] action run - execute "bash" "/tmp/chef-script20200313-20575-okytr9" 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) Recipe: <Dynamically Defined Resource> * service[unicorn] action nothing (skipped due to action :nothing) Recipe: gitlab::unicorn * runit_service[unicorn] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/unicorn] action create (up to date) * template[/opt/gitlab/sv/unicorn/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/unicorn/config] action create (up to date) * ruby_block[verify_chown_persisted_on_unicorn] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/unicorn/env] action create (up to date) * ruby_block[Delete unmanaged env files for unicorn service] action run (skipped due to only_if) * template[/opt/gitlab/sv/unicorn/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/unicorn/finish] action create (skipped due to only_if) * 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) * file[/opt/gitlab/sv/unicorn/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/unicorn] action create (up to date) * ruby_block[wait for unicorn service socket] action run (skipped due to not_if) (up to date) * runit_service[unicorn] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/unicorn] action create (up to date) * template[/opt/gitlab/sv/unicorn/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/unicorn/config] action create (up to date) * ruby_block[verify_chown_persisted_on_unicorn] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/unicorn/env] action create (up to date) * ruby_block[Delete unmanaged env files for unicorn service] action run (skipped due to only_if) * template[/opt/gitlab/sv/unicorn/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/unicorn/finish] action create (skipped due to only_if) * 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) * file[/opt/gitlab/sv/unicorn/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/unicorn] action create (up to date) * ruby_block[wait for unicorn service socket] action run (skipped due to not_if) (up to date) * consul_service[rails] action delete * file[/var/opt/gitlab/consul/config.d/rails-service.json] action delete (up to date) (up to date) * gitlab_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) * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing) (up to date) Recipe: <Dynamically Defined Resource> * service[puma] action nothing (skipped due to action :nothing) Recipe: gitlab::puma_disable * runit_service[puma] action disable * ruby_block[disable puma] action run (skipped due to only_if) (up to date) * consul_service[rails] action delete (skipped due to not_if) Recipe: gitlab::sidekiq * directory[/var/log/gitlab/sidekiq] action create (up to date) Recipe: <Dynamically Defined Resource> * service[sidekiq] action nothing (skipped due to action :nothing) Recipe: gitlab::sidekiq * runit_service[sidekiq] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/sidekiq] action create (up to date) * template[/opt/gitlab/sv/sidekiq/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/sidekiq/config] action create (up to date) * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date) * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if) * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date) * link[/opt/gitlab/init/sidekiq] action create (up to date) * file[/opt/gitlab/sv/sidekiq/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/sidekiq] action create (up to date) * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if) (up to date) * consul_service[sidekiq] action delete * file[/var/opt/gitlab/consul/config.d/sidekiq-service.json] action delete (up to date) (up to date) 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) * file[/opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR] action create (up to date) (up to date) Recipe: <Dynamically Defined Resource> * service[gitlab-workhorse] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-workhorse * runit_service[gitlab-workhorse] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date) * template[/opt/gitlab/sv/gitlab-workhorse/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/gitlab-workhorse/config] action create (up to date) * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date) * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if) * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date) * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date) * file[/opt/gitlab/sv/gitlab-workhorse/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date) * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if) (up to date) * consul_service[workhorse] action delete * file[/var/opt/gitlab/consul/config.d/workhorse-service.json] action delete (up to date) (up to date) * 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: <Dynamically Defined Resource> * service[mailroom] action nothing (skipped due to action :nothing) Recipe: gitlab::mailroom_disable * runit_service[mailroom] action disable * ruby_block[disable mailroom] action run (skipped due to only_if) (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-smartcard-http.conf] action delete (up to date) * template[/var/opt/gitlab/nginx/conf/gitlab-health.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) * consul_service[nginx] action delete * file[/var/opt/gitlab/consul/config.d/nginx-service.json] action delete (up to date) (up to date) * template[/var/opt/gitlab/nginx/conf/nginx.conf] action create (up to date) Recipe: <Dynamically Defined Resource> * service[nginx] action nothing (skipped due to action :nothing) Recipe: nginx::enable * runit_service[nginx] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/nginx] action create (up to date) * template[/opt/gitlab/sv/nginx/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/nginx/config] action create (up to date) * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/nginx/env] action create (up to date) * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if) * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/nginx/control] action create (up to date) * link[/opt/gitlab/init/nginx] action create (up to date) * file[/opt/gitlab/sv/nginx/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/nginx] action create (up to date) * ruby_block[wait for nginx service socket] action run (skipped due to not_if) (up to date) * execute[reload nginx] action nothing (skipped due to action :nothing) Recipe: <Dynamically Defined Resource> * service[remote-syslog] action nothing (skipped due to action :nothing) Recipe: gitlab::remote-syslog_disable * runit_service[remote-syslog] action disable * ruby_block[disable remote-syslog] action run (skipped due to only_if) (up to date) Recipe: <Dynamically Defined Resource> * service[logrotate] action nothing (skipped due to action :nothing) Recipe: gitlab::logrotate * runit_service[logrotate] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/logrotate] action create (up to date) * template[/opt/gitlab/sv/logrotate/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/logrotate/config] action create (up to date) * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/logrotate/env] action create (up to date) * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if) * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if) * 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) * file[/opt/gitlab/sv/logrotate/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/logrotate] action create (up to date) * ruby_block[wait for logrotate service socket] action run (skipped due to not_if) (up to date) Recipe: <Dynamically Defined Resource> * service[gitlab-pages] action nothing (skipped due to action :nothing) Recipe: gitlab::gitlab-pages_disable * runit_service[gitlab-pages] action disable * ruby_block[disable gitlab-pages] action run (skipped due to only_if) (up to date) Recipe: <Dynamically Defined Resource> * service[storage-check] action nothing (skipped due to action :nothing) Recipe: gitlab::storage-check_disable * runit_service[storage-check] action disable * ruby_block[disable storage-check] action run (skipped due to only_if) (up to date) Recipe: <Dynamically Defined Resource> * service[registry] action nothing (skipped due to action :nothing) Recipe: registry::disable * runit_service[registry] action disable * ruby_block[disable registry] action run (skipped due to only_if) (up to date) Recipe: <Dynamically Defined Resource> * service[mattermost] action nothing (skipped due to action :nothing) Recipe: mattermost::disable * runit_service[mattermost] action disable * ruby_block[disable mattermost] action run (skipped due to only_if) (up to date) Recipe: gitlab::gitlab-healthcheck * template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create (up to date) Recipe: monitoring::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: monitoring::node-exporter * directory[/var/log/gitlab/node-exporter] action create (up to date) * directory[/opt/gitlab/etc/node-exporter/env] action create (up to date) * env_dir[/opt/gitlab/etc/node-exporter/env] action create * directory[/opt/gitlab/etc/node-exporter/env] action create (up to date) * file[/opt/gitlab/etc/node-exporter/env/SSL_CERT_DIR] action create (up to date) (up to date) * directory[/var/opt/gitlab/node-exporter/textfile_collector] action create (up to date) Recipe: <Dynamically Defined Resource> * service[node-exporter] action nothing (skipped due to action :nothing) Recipe: monitoring::node-exporter * runit_service[node-exporter] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/node-exporter] action create (up to date) * template[/opt/gitlab/sv/node-exporter/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/node-exporter/config] action create (up to date) * ruby_block[verify_chown_persisted_on_node-exporter] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/node-exporter/env] action create (up to date) * ruby_block[Delete unmanaged env files for node-exporter service] action run (skipped due to only_if) * template[/opt/gitlab/sv/node-exporter/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/node-exporter/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/node-exporter/control] action create (up to date) * link[/opt/gitlab/init/node-exporter] action create (up to date) * file[/opt/gitlab/sv/node-exporter/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/node-exporter] action create (up to date) * ruby_block[wait for node-exporter service socket] action run (skipped due to not_if) (up to date) * consul_service[node-exporter] action delete * file[/var/opt/gitlab/consul/config.d/node-exporter-service.json] action delete (up to date) (up to date) Recipe: monitoring::gitlab-exporter * directory[/var/opt/gitlab/gitlab-exporter] action create (up to date) Recipe: <Dynamically Defined Resource> * service[gitlab-monitor] action nothing (skipped due to action :nothing) Recipe: monitoring::gitlab-exporter * runit_service[gitlab-monitor] action disable * ruby_block[disable gitlab-monitor] action run (skipped due to only_if) (up to date) * directory[/var/opt/gitlab/gitlab-monitor] action delete (up to date) * directory[/var/log/gitlab/gitlab-exporter] action create (up to date) * template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] action create (up to date) * file[/var/opt/gitlab/gitlab-exporter/RUBY_VERSION] action create (up to date) Recipe: <Dynamically Defined Resource> * service[gitlab-exporter] action nothing (skipped due to action :nothing) Recipe: monitoring::gitlab-exporter * runit_service[gitlab-exporter] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date) * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date) * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date) * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date) * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date) * template[/var/log/gitlab/gitlab-exporter/config] action create (up to date) * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date) * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if) * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date) * link[/opt/gitlab/init/gitlab-exporter] action create (up to date) * file[/opt/gitlab/sv/gitlab-exporter/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/gitlab-exporter] action create (up to date) * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if) (up to date) Recipe: monitoring::redis-exporter * directory[/var/log/gitlab/redis-exporter] action create (up to date) * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date) * env_dir[/opt/gitlab/etc/redis-exporter/env] action create * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date) * file[/opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR] action create (up to date) (up to date) Recipe: <Dynamically Defined Resource> * service[redis-exporter] action nothing (skipped due to action :nothing) Recipe: monitoring::redis-exporter * runit_service[redis-exporter] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/redis-exporter] action create (up to date) * template[/opt/gitlab/sv/redis-exporter/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/redis-exporter/config] action create (up to date) * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date) * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if) * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date) * link[/opt/gitlab/init/redis-exporter] action create (up to date) * file[/opt/gitlab/sv/redis-exporter/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/redis-exporter] action create (up to date) * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if) (up to date) * consul_service[redis-exporter] action delete * file[/var/opt/gitlab/consul/config.d/redis-exporter-service.json] action delete (up to date) (up to date) Recipe: monitoring::prometheus * directory[/var/opt/gitlab/prometheus] action create (up to date) * directory[/var/opt/gitlab/prometheus/rules] action create (up to date) * directory[/var/log/gitlab/prometheus] action create (up to date) * directory[/opt/gitlab/etc/prometheus/env] action create (up to date) * env_dir[/opt/gitlab/etc/prometheus/env] action create * directory[/opt/gitlab/etc/prometheus/env] action create (up to date) * file[/opt/gitlab/etc/prometheus/env/SSL_CERT_DIR] action create (up to date) (up to date) * execute[reload prometheus] action nothing (skipped due to action :nothing) * file[Prometheus config] action create (up to date) Recipe: <Dynamically Defined Resource> * service[prometheus] action nothing (skipped due to action :nothing) Recipe: monitoring::prometheus * runit_service[prometheus] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/prometheus] action create (up to date) * template[/opt/gitlab/sv/prometheus/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/prometheus/config] action create (up to date) * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/prometheus/env] action create (up to date) * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if) * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/prometheus/control] action create (up to date) * link[/opt/gitlab/init/prometheus] action create (up to date) * file[/opt/gitlab/sv/prometheus/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/prometheus] action create (up to date) * ruby_block[wait for prometheus service socket] action run (skipped due to not_if) (up to date) * consul_service[prometheus] action delete * file[/var/opt/gitlab/consul/config.d/prometheus-service.json] action delete (up to date) (up to date) * template[/var/opt/gitlab/prometheus/rules/gitlab.rules] action create (up to date) * template[/var/opt/gitlab/prometheus/rules/node.rules] action create (up to date) Recipe: monitoring::alertmanager * directory[/var/opt/gitlab/alertmanager] action create (up to date) * directory[/var/log/gitlab/alertmanager] action create (up to date) * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date) * env_dir[/opt/gitlab/etc/alertmanager/env] action create * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date) * file[/opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR] action create (up to date) (up to date) * file[Alertmanager config] action create (up to date) Recipe: <Dynamically Defined Resource> * service[alertmanager] action nothing (skipped due to action :nothing) Recipe: monitoring::alertmanager * runit_service[alertmanager] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/alertmanager] action create (up to date) * template[/opt/gitlab/sv/alertmanager/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/alertmanager/config] action create (up to date) * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/alertmanager/env] action create (up to date) * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if) * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/alertmanager/control] action create (up to date) * link[/opt/gitlab/init/alertmanager] action create (up to date) * file[/opt/gitlab/sv/alertmanager/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/alertmanager] action create (up to date) * ruby_block[wait for alertmanager service socket] action run (skipped due to not_if) (up to date) Recipe: monitoring::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/SSL_CERT_DIR] action create (up to date) * file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] action create (up to date) (up to date) Recipe: <Dynamically Defined Resource> * service[postgres-exporter] action nothing (skipped due to action :nothing) Recipe: monitoring::postgres-exporter * runit_service[postgres-exporter] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date) * template[/opt/gitlab/sv/postgres-exporter/run] 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/log/run] action create (up to date) * template[/var/log/gitlab/postgres-exporter/config] action create (up to date) * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date) * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if) * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date) * link[/opt/gitlab/init/postgres-exporter] action create (up to date) * file[/opt/gitlab/sv/postgres-exporter/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/postgres-exporter] action create (up to date) * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if) (up to date) * template[/var/opt/gitlab/postgres-exporter/queries.yaml] action create (up to date) * consul_service[postgres-exporter] action delete * file[/var/opt/gitlab/consul/config.d/postgres-exporter-service.json] action delete (up to date) (up to date) Recipe: monitoring::grafana * directory[/var/log/gitlab/grafana] action create (up to date) * directory[/var/opt/gitlab/grafana] action create (up to date) * directory[/var/opt/gitlab/grafana/provisioning] action create (up to date) * directory[/var/opt/gitlab/grafana/provisioning/dashboards] action create (up to date) * directory[/var/opt/gitlab/grafana/provisioning/datasources] action create (up to date) * directory[/var/opt/gitlab/grafana/provisioning/notifiers] action create (up to date) * file[/var/opt/gitlab/grafana/CVE_reset_status] action create (up to date) * link[/var/opt/gitlab/grafana/conf] action create (up to date) * link[/var/opt/gitlab/grafana/public] action create (up to date) * directory[/opt/gitlab/etc/grafana/env] action create (up to date) * ruby_block[populate Grafana configuration options] action run - execute the ruby block populate Grafana configuration options * env_dir[/opt/gitlab/etc/grafana/env] action create * directory[/opt/gitlab/etc/grafana/env] action create (up to date) * file[/opt/gitlab/etc/grafana/env/SSL_CERT_DIR] action create (up to date) (up to date) * template[/var/opt/gitlab/grafana/grafana.ini] action create (up to date) * file[/var/opt/gitlab/grafana/provisioning/dashboards/gitlab_dashboards.yml] action create (up to date) * file[/var/opt/gitlab/grafana/provisioning/datasources/gitlab_datasources.yml] action create (up to date) Recipe: <Dynamically Defined Resource> * service[grafana] action nothing (skipped due to action :nothing) Recipe: monitoring::grafana * runit_service[grafana] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/grafana] action create (up to date) * template[/opt/gitlab/sv/grafana/run] action create (up to date) * directory[/opt/gitlab/sv/grafana/log] action create (up to date) * directory[/opt/gitlab/sv/grafana/log/main] action create (up to date) * template[/opt/gitlab/sv/grafana/log/run] action create (up to date) * template[/var/log/gitlab/grafana/config] action create (up to date) * ruby_block[verify_chown_persisted_on_grafana] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/grafana/env] action create (up to date) * ruby_block[Delete unmanaged env files for grafana service] action run (skipped due to only_if) * template[/opt/gitlab/sv/grafana/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/grafana/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/grafana/control] action create (up to date) * link[/opt/gitlab/init/grafana] action create (up to date) * file[/opt/gitlab/sv/grafana/down] action delete (up to date) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/grafana] action create (up to date) * ruby_block[wait for grafana service socket] action run (skipped due to not_if) (up to date) Running handlers: Running handlers complete Chef Client finished, 4/729 resources updated in 06 seconds gitlab Reconfigured! [root@gitlab201.yinzhengjie.org.cn ~]#
7>.其它用法
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-ctl --help omnibus-ctl: command (subcommand) check-config Check if there are any configuration in gitlab.rb that is removed in specified version deploy-page Put up the deploy page diff-config Compare the user configuration with package available configuration get-redis-master Get connection details to Redis master prometheus-upgrade Upgrade the Prometheus data to the latest supported version remove-accounts Delete *all* users and groups used by this package reset-grafana Reset Grafana instance to its initial state by removing the data directory set-grafana-password Reset admin password for Grafana upgrade Run migrations after a package upgrade General Commands: cleanse Delete *all* gitlab data, and start from scratch. help Print this help message. reconfigure Reconfigure the application. show-config Show the configuration that would be generated by reconfigure. uninstall Kill all processes and uninstall the process supervisor (data will be preserved). Service Management Commands: graceful-kill Attempt a graceful stop, then SIGKILL the entire process group. hup Send the services a HUP. int Send the services an INT. kill Send the services a KILL. once Start the services if they are down. Do not restart them if they stop. restart Stop the services if they are running, then start them again. service-list List all the services (enabled services appear with a *.) start Start services if they are down, and restart them if they stop. status Show the status of all the services. stop Stop the services, and do not restart them. tail Watch the service logs of all enabled services. term Send the services a TERM. usr1 Send the services a USR1. usr2 Send the services a USR2. Backup Commands: backup-etc Backup GitLab configuration [accepts directory path] Container Registry Commands: registry-garbage-collect Run Container Registry garbage collection. Database Commands: pg-password-md5 Generate MD5 Hash of user password in PostgreSQL format pg-upgrade Upgrade the PostgreSQL DB to the latest supported version revert-pg-upgrade Run this to revert to the previous version of the database set-replication-password Set database replication password Let's Encrypt Commands: renew-le-certs Renew the existing Let's Encrypt certificates [root@gitlab201.yinzhengjie.org.cn ~]#
三.gitlab-psql
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-psql #进入到PgSQL数据库交互式命令行,你可以执行相应的操作。 psql (10.12) Type "help" for help. gitlabhq_production=# gitlabhq_production=# db List of tablespaces Name | Owner | Location ------------+-------------+---------- pg_default | gitlab-psql | pg_global | gitlab-psql | (2 rows) gitlabhq_production=# gitlabhq_production=# quit [root@gitlab201.yinzhengjie.org.cn ~]# [root@gitlab201.yinzhengjie.org.cn ~]#
四.gitlab-rails
gitlab-rails用于启动控制台进程特殊操作,比如修改管理员密码,打开数据库控制台(gitlab-rails dbconcole)等。
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-rails --help The most common rails commands are: generate Generate new code (short-cut alias: "g") console Start the Rails console (short-cut alias: "c") server Start the Rails server (short-cut alias: "s") test Run tests except system tests (short-cut alias: "t") test:system Run system tests dbconsole Start a console for the database specified in config/database.yml (short-cut alias: "db") new Create a new Rails application. "rails new my_app" creates a new application called MyApp in "./my_app" All commands can be run with -h (or --help) for more information. In addition to those commands, there are: -------------------------------------------------------------------------------- GitLab: 12.8.6 (5fc76a64537) FOSS GitLab Shell: 11.0.0 PostgreSQL: 10.12 -------------------------------------------------------------------------------- about acts_as_taggable_on_engine:install:migrations acts_as_taggable_on_engine:tag_names:collate_bin acts_as_taggable_on_engine:tag_names:collate_ci app:template app:update assets:clean[keep] assets:clobber assets:environment assets:precompile brakeman cache:clear:redis cache_digests:dependencies cache_digests:nested_dependencies ci:cleanup:builds clean clobber config_lint credentials:edit credentials:show danger_local db:create db:drop db:environment:set db:fixtures:load db:load_config db:migrate db:migrate:status db:obsolete_ignored_columns db:prepare db:rollback db:schema:cache:clear db:schema:cache:dump db:schema:dump db:schema:load db:seed db:seed:replant db:seed_fu db:setup db:structure:dump db:structure:load db:system:change db:version destroy dev:cache dev:load dev:setup downtime_check encrypted:edit encrypted:show file_hooks:validate gemojione:aliases gemojione:install_assets gettext:add_language[language] gettext:find gettext:lint gettext:pack gettext:po_to_json gettext:regenerate gettext:store_model_attributes gitlab:app:check gitlab:artifacts:check gitlab:artifacts:migrate gitlab:assets:clean gitlab:assets:compile gitlab:assets:fix_urls gitlab:assets:purge gitlab:assets:purge_modules gitlab:assets:vendor gitlab:backup:create gitlab:backup:restore gitlab:check gitlab:cleanup:block_removed_ldap_users gitlab:cleanup:orphan_job_artifact_files gitlab:cleanup:project_uploads gitlab:cleanup:remote_upload_files gitlab:cleanup:sessions:active_sessions_lookup_keys gitlab:db:composite_primary_keys_add gitlab:db:composite_primary_keys_drop gitlab:db:configure gitlab:db:downtime_check[ref] gitlab:db:drop_tables gitlab:db:mark_migration_complete[version] gitlab:db:setup_ee gitlab:env:info gitlab:exclusive_lease:clear[scope] gitlab:features:enable_rugged gitlab:generate_sample_prometheus_data[environment_id] gitlab:git:fsck gitlab:gitaly:check gitlab:gitaly:install[dir,storage_path,repo] gitlab:gitlab_shell:check gitlab:import:all_users_to_all_groups gitlab:import:all_users_to_all_projects gitlab:import:repos[import_path] gitlab:import:user_to_groups[email] gitlab:import:user_to_projects[email] gitlab:import_export:bump_version gitlab:import_export:data gitlab:import_export:import[username,namespace_path,project_path,archive_path,measurement_enabled] gitlab:import_export:version gitlab:incoming_email:check gitlab:ldap:rename_provider[old_provider,new_provider] gitlab:lfs:check gitlab:lfs:migrate gitlab:orphans:check gitlab:orphans:check_namespaces gitlab:orphans:check_repositories gitlab:seed:group_seed[subgroups_depth,username] gitlab:seed:issues[project_full_path,backfill_weeks,average_issues_per_week] gitlab:setup gitlab:shell:build_missing_projects gitlab:shell:install[repo] gitlab:shell:setup gitlab:sidekiq:check gitlab:storage:hashed_attachments gitlab:storage:hashed_projects gitlab:storage:legacy_attachments gitlab:storage:legacy_projects gitlab:storage:list_hashed_attachments gitlab:storage:list_hashed_projects gitlab:storage:list_legacy_attachments gitlab:storage:list_legacy_projects gitlab:storage:migrate_to_hashed gitlab:storage:rollback_to_legacy gitlab:tcp_check[host,port] gitlab:test gitlab:track_deployment gitlab:two_factor:disable_for_all_users gitlab:two_factor:rotate_key:apply gitlab:two_factor:rotate_key:rollback gitlab:update_project_templates gitlab:update_templates gitlab:uploads:check gitlab:uploads:legacy:migrate gitlab:uploads:migrate:all gitlab:uploads:migrate[uploader_class,model_class,mounted_as] gitlab:uploads:migrate_to_local:all gitlab:uploads:migrate_to_local[uploader_class,model_class,mounted_as] gitlab:uploads:sanitize:remove_exif[start_id,stop_id,dry_run,sleep_time,uploader,since] gitlab:web_hook:add gitlab:web_hook:list gitlab:web_hook:rm gitlab:workhorse:install[dir,repo] grape:path_helpers grape:routes hipchat:send[message] import:github[token,gitlab_username,project_path] initializers jira:generate_consumer_key jira:generate_public_cert log:clear metrics:setup_common_metrics middleware migrate_iids notes postgresql_md5_hash restart routes runner secret secrets:edit secrets:setup secrets:show setup sidekiq:launchd sidekiq:restart sidekiq:start sidekiq:stop stats test:db time:zones[country_or_offset] tmp:clear tmp:create tokens:reset_all_email tokens:reset_all_feed version webpack:compile yarn yarn:available yarn:check yarn:clobber yarn:install zeitwerk:check [root@gitlab201.yinzhengjie.org.cn ~]#
五.gitlab-rake
[root@gitlab201.yinzhengjie.org.cn ~]# gitlab-rake --help rake [-f rakefile] {options} targets... Options are ... --backtrace=[OUT] Enable full backtrace. OUT can be stderr (default) or stdout. --comments Show commented tasks only --job-stats [LEVEL] Display job statistics. LEVEL=history displays a complete job list --rules Trace the rules resolution. --suppress-backtrace PATTERN Suppress backtrace lines matching regexp PATTERN. Ignored if --trace is on. -A, --all Show all tasks, even uncommented ones (in combination with -T or -D) -B, --build-all Build all prerequisites, including those which are up-to-date. -D, --describe [PATTERN] Describe the tasks (matching optional PATTERN), then exit. -e, --execute CODE Execute some Ruby code and exit. -E, --execute-continue CODE Execute some Ruby code, then continue with normal task processing. -f, --rakefile [FILENAME] Use FILENAME as the rakefile to search for. -G, --no-system, --nosystem Use standard project Rakefile search paths, ignore system wide rakefiles. -g, --system Using system wide (global) rakefiles (usually '~/.rake/*.rake'). -I, --libdir LIBDIR Include LIBDIR in the search path for required modules. -j, --jobs [NUMBER] Specifies the maximum number of tasks to execute in parallel. (default is number of CPU cores + 4) -m, --multitask Treat all tasks as multitasks. -n, --dry-run Do a dry run without executing actions. -N, --no-search, --nosearch Do not search parent directories for the Rakefile. -P, --prereqs Display the tasks and dependencies, then exit. -p, --execute-print CODE Execute some Ruby code, print the result, then exit. -q, --quiet Do not log messages to standard output. -r, --require MODULE Require MODULE before executing rakefile. -R, --rakelibdir RAKELIBDIR, Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib') --rakelib -s, --silent Like --quiet, but also suppresses the 'in directory' announcement. -t, --trace=[OUT] Turn on invoke/execute tracing, enable full backtrace. OUT can be stderr (default) or stdout. -T, --tasks [PATTERN] Display the tasks (matching optional PATTERN) with descriptions, then exit. -AT combination displays all of tasks contained no description. -v, --verbose Log message to standard output. -V, --version Display the program version. -W, --where [PATTERN] Describe the tasks (matching optional PATTERN), then exit. -X, --no-deprecation-warnings Disable the deprecation warnings. -h, -H, --help Display this help message. [root@gitlab201.yinzhengjie.org.cn ~]#