Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
VDD can be easily customized and extended. You may implement your custom
cookbook and place it inside chef/cookbooks/custom directory or you may use
berkshelf to download cookbook from remote repository.
Cookbook inside chef/cookbooks/custom directory
- Take a look at
vdd_example
cookbook insidechef/cookbooks/custom directory
. - Create your own cookbook and place it inside
chef/cookbooks/custom
directory. - Include your recipies in
run_list
invdd.json
role file insidechef/roles
directory.
Remote cookbook using berkshelf
Berkshelf is great cookbook manager for Chef. It can automatically download cookbooks and their dependencies. Please, learn more at http://berkshelf.com/.
- Install berkshelf on your host machine.
- Include link to remote cookbooks' repository in
Berksfile
. - Delete
Berksfile.lock
file andchef/cookbooks/berks
directory. - Run next command inside VDD directory. It will download all dependencies.
$ berks vendor chef/cookbooks/berks
Comments
What is the plan given the deprecation of Vagrant Berkshelf
According to Seth Vargo, the vagrant berkshelf plugin is being deprecated. It will likely be supported until Berkshelf 4, but if I understand Seth's post correctly, the guidance is that we should all be transitioning toward Test Kitchen.
https://sethvargo.com/the-future-of-vagrant-berkshelf/
Adding custom node attributes
How do I extend VDD to add custom node attributes? Here is my use case: I'm adding memcached to my vdd using the memcached cookbooks (requiring runit). To configure memcached.conf, I need to add custom node attributes in the following format:
node['memcached'][memory'], node['memcached']['port']
etc.Thanks
edited:
Nevermind, I didn't properly read the documentation on the cookbook.