Whe you launch chef-client it says that a resource needs a name. And becasuse of node['gitlab']['certificate_databag_id'] value is nil by default. You have to check his value before define the resource, to ensure that these resource will have a name.