`gdk reconfigure` is not updating all references to host as specified in the gdk.yml file
Overview
gdk reconfigure
not updating all references to host as specified in the gdk.yml
file.
My current gitlab.yml
file has:
- production.gitlab.host: localhost
- production.registry.host: localhost
- production.registry.api_url: http://localhost:5000
- production.geo.registry_replication.primary_api_url: http://localhost:5000
- production.gitlab_shell.ssh_host: localhost
- production.webpack.host: localhost
- production.monitoring.sidekiq_exporter.address: localhost
- production.prometheus.server_address: localhost:9090
- test.gitlab.host: localhost
- test.webpack.host: localhost
If I want to change from localhost to my ip address (say) 192.168.100.12 and update my gdk.yml
file to:
---
gdk:
overwrite_changes: true
update_hooks:
after:
- cd gitlab && git checkout db/structure.sql
hostname: 192.168.100.12
sshd:
enabled: true
listen_address: 192.168.100.12
webpack:
host: 192.168.100.12
and run gdk reconfigure
Expand for `gdk reconfigure` logs
Ensuring all required versions of bundler are installed
Installing gitlab-org/gitlab Ruby gems
Installing gitlab-org/gitlab Node.js packages
Compiling gitlab/workhorse/gitlab-workhorse
Building gitlab-org/gitaly bccabad35ea7b90a2bfae196cf583611a0484c51
go install -ldflags '-X gitlab.com/gitlab-org/gitaly/v14/internal/version.version=14.4.0-rc43-107-gbccabad35 -X gitlab.com/gitlab-org/gitaly/v14/internal/version.buildtime=20211104.112746 -X gitlab.com/gitlab-org/gitaly/v14/internal/version.moduleVersion=v14' -tags "tracer_static,tracer_static_jaeger,tracer_static_stackdriver,continuous_profiler_stackdriver,static,system_libgit2" gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-blackbox gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-wrapper gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-ssh gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-backup gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-debug gitlab.com/gitlab-org/gitaly/v14/cmd/praefect gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-lfs-smudge gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-git2go gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-hooks
Building git for gitlab-org/gitaly
Updating gitlab-org/gitaly to bccabad35ea7b90a2bfae196cf583611a0484c51
Successfully fetched and checked out 'bccabad35ea7b90a2bfae196cf583611a0484c51' for 'gitaly/'
Building gitlab-org/gitaly bccabad35ea7b90a2bfae196cf583611a0484c51
go install -ldflags '-X gitlab.com/gitlab-org/gitaly/v14/internal/version.version=14.4.0-rc43-107-gbccabad35 -X gitlab.com/gitlab-org/gitaly/v14/internal/version.buildtime=20211104.112808 -X gitlab.com/gitlab-org/gitaly/v14/internal/version.moduleVersion=v14' -tags "tracer_static,tracer_static_jaeger,tracer_static_stackdriver,continuous_profiler_stackdriver,static,system_libgit2" gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-blackbox gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-wrapper gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-ssh gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-backup gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-debug gitlab.com/gitlab-org/gitaly/v14/cmd/praefect gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-lfs-smudge gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-git2go gitlab.com/gitlab-org/gitaly/v14/cmd/gitaly-hooks
Building git for gitlab-org/gitaly
ok: run: /Users/sanadliaquat/work/gitlab/gdk-ee/services/postgresql: (pid 33965) 1s, normally down
ok: run: /Users/sanadliaquat/work/gitlab/gdk-ee/services/redis: (pid 33966) 1s, normally down
praefect sql-migrate: OK (applied 0 migrations)
Ensuring necessary data services are running
ok: run: /Users/sanadliaquat/work/gitlab/gdk-ee/services/postgresql: (pid 33965) 4s, normally down
ok: run: /Users/sanadliaquat/work/gitlab/gdk-ee/services/redis: (pid 33966) 4s, normally down
ok: run: /Users/sanadliaquat/work/gitlab/gdk-ee/services/praefect: (pid 34005) 1s, normally down
ok: run: /Users/sanadliaquat/work/gitlab/gdk-ee/services/praefect-gitaly-0: (pid 34006) 1s, normally down
ok: run: /Users/sanadliaquat/work/gitlab/gdk-ee/services/postgresql: (pid 33965) 6s, normally down
ok: run: /Users/sanadliaquat/work/gitlab/gdk-ee/services/redis: (pid 33966) 6s, normally down
INFO: gitlabhq_development exists, nothing to do here.
@@ -1,7 +1,7 @@
AllowUsers git
AuthenticationMethods publickey
HostKey /Users/sanadliaquat/work/gitlab/gdk-ee/openssh/ssh_host_rsa_key
-ListenAddress localhost:2222
+ListenAddress 192.168.100.12:2222
LogLevel VERBOSE
PasswordAuthentication no
PidFile none
WARNING: 'openssh/sshd_config' has been overwritten. To recover the previous version, run:
'openssh/sshd_config' has incoming changes:
cp -f '/Users/sanadliaquat/work/gitlab/gdk-ee/.backups/openssh__sshd_config.20211104112825'
'/Users/sanadliaquat/work/gitlab/gdk-ee/openssh/sshd_config'
If you want to protect this file from being overwritten, see:
https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/configuration.md#overwriting-configuration-files
@@ -29,7 +29,7 @@ http {
client_max_body_size 0;
upstream gitlab-workhorse {
server localhost:3000 fail_timeout=0;
server 192.168.100.12:3000 fail_timeout=0;
}
@@ -39,7 +39,7 @@ http {
}
server {
listen localhost:3000;
listen 192.168.100.12:3000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
WARNING: 'nginx/conf/nginx.conf' has been overwritten. To recover the previous version, run:
'nginx/conf/nginx.conf' has incoming changes:
cp -f '/Users/sanadliaquat/work/gitlab/gdk-ee/.backups/nginx__conf__nginx.conf.20211104112825'
'/Users/sanadliaquat/work/gitlab/gdk-ee/nginx/conf/nginx.conf'
If you want to protect this file from being overwritten, see:
https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/configuration.md#overwriting-configuration-files
Reconfigured as of 2021-11-04 11:28:26. Took 84 second(s).
My gitlab.yml
file (gitlab.yml) still looks the same.
Steps to replicate (optional)
See above
Proposal (optional)
Environment (optional)
- Operating system: macOS BigSur version 11.6
- The contents of your
gdk.yml
:
---
gdk:
overwrite_changes: true
update_hooks:
after:
- cd gitlab && git checkout db/structure.sql
hostname: 192.168.100.12
sshd:
enabled: true
listen_address: 192.168.100.12
webpack:
host: 192.168.100.12
- Ruby version:
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-darwin20]
- GDK version:
e8c53483
Edited by Sanad Liaquat