postgresql['custom_pg_hba_entries'] is broken or config example is misleading
When I enabled postgresql['custom_pg_hba_entries'] in gitlab.rb as follows I see an "undefined method `[]=' for nil:NilClass" error in logfile and gitlab doesn't start.
section in gitlab.rb
postgresql['custom_pg_hba_entries']['Admin'] = { type: 'host', database: 'all', user: 'all', cidr: '172.21.200.0/24', method: 'md5' }
####################
I'm trying on current gitlab/gitlab-ce docker image (gitlab 9.4.4).
postgresql['custom_pg_hba_entries'] is the only postgresql-option set in gitlab.rb. When disabled gitlab starts without any problems.
Lofile:
Logfile created on 2017-08-14 06:13:38 +0000 by logger.rb/56438
[2017-08-14T06:13:38+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /opt/gitlab/embedded One version per cookbook
[2017-08-14T06:13:38+00:00] INFO: Forking chef instance to converge... [2017-08-14T06:13:38+00:00] INFO: *** Chef 12.12.15 *** [2017-08-14T06:13:38+00:00] INFO: Platform: x86_64-linux [2017-08-14T06:13:38+00:00] INFO: Chef-client pid: 31 [2017-08-14T06:13:39+00:00] WARN: unable to detect ipaddress [2017-08-14T06:13:40+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/vcs.******** [2017-08-14T06:13:40+00:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options [2017-08-14T06:13:40+00:00] INFO: Run List is [recipe[gitlab]] [2017-08-14T06:13:40+00:00] INFO: Run List expands to [gitlab] [2017-08-14T06:13:40+00:00] INFO: Starting Chef Run for vcs.*********** [2017-08-14T06:13:40+00:00] INFO: Running start handlers [2017-08-14T06:13:40+00:00] INFO: Start handlers complete. [2017-08-14T06:13:40+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: [2017-08-14T06:13:40+00:00] INFO: Loading cookbooks [gitlab@0.0.1, runit@0.14.2, package@0.0.0, registry@0.1.0] [2017-08-14T06:13:41+00:00] ERROR: Running exception handlers [2017-08-14T06:13:41+00:00] ERROR: Exception handlers complete [2017-08-14T06:13:41+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out [2017-08-14T06:13:41+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2017-08-14T06:13:41+00:00] ERROR: undefined method `[]=' for nil:NilClass [2017-08-14T06:13:41+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)