# https://github.com/chef-cookbooks/delivery-sugar/blob/master/README.md#resource-delivery_supermarket # As an alternative to setting `supermarket-custom-credentials` in `config.json` # you can also directly utilize the `delivery_supermarket` resource. # Directly using the `delivery_supermarket` resource allows you to utilize secrets # from something other than an encrypted databag. For instance, vault. # https://github.com/chef-cookbooks/delivery-sugar#using-get_chef_vault_data # load vaults from the `workflow-vaults` databag secrets = get_chef_vault_data # for encrypted databags use `get_project_secrets` delivery_supermarket 'share_custom_cookbook' do site 'https://my-private-supermarket.example.com' user secrets['supermarket_user'] key secrets['supermarket_key'] # private key of the above Chef Server user associated with the Supermarket instance action :share end