Useful Chef commands

  • Create a cookbook with knife:
    knife cookbook create cookbook_name
  • Converge a cookbook with debug info:
    kitchen converge -l=DEBUG
  • Install or update cookbook dependencies:
    berks install

    or, if you need to update, after deleting the Berksfile.lock from the cookbook folder, execute:

    berks update
  • Increase cookbook minor version with knife:
    knife spork bump your_cookbook_name minor

    More info about versioning on semver.org

  • Note: Will update this post with useful Chef commands in the near future

    Advertisements

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: