With Chef, there's a disparity between your local computer (called the "workstation") and the remote Chef Server. In your case, the knife
command created the data bag on the remote Chef Server.
I understand how that can be misleading. A data bag is nothing more than a folder containing one or more .json
files. Usually you generate this structure manually on your workstation (either using the GUI or terminal).
So in your example, just make the folder you've described (chef-repo -> data_bags -> users
) and then create a chef-repo/data_bags/users/deployer.json
file using the schema described by the cookbook.