chef / chef/chef-cli

Allow Configurable Option to Change Default Cookbook Generation policy_mode

Open
#43 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Aspect: UX Triage: Confirmed Triage: Feature Request Type: Enhancement
Dominant language
Ruby
Stars
18
Forks
23
Avg merge
5d 17h
Merged PRs (30d)
1

Description

Describe the Enhancement:

I would like to have a local setting that I can set, similar to chefdk.generator.license, that allows me to change the default behavior of the cookbook generator to generate berks cookbooks by default. Maybe something like chefdk.generator.policy_mode false

Describe the Need:

Anyone that regularly generates cookbooks with pipelines or development process that are tied to using Berksfile cookbooks would like a tunable parameter that they can set on their development workstation to default to this cookbook style.

Current Alternative

When generating each cookbook, you can specify -b or --berks flags. This isn't ideal as there is one more step that we could forget or forget to inform someone we're helping learn our cookbook development processes.

Can We Help You Implement This?:

Submitting open source code is, unfortunately, difficult at my current place of employment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the configuration handling for chefdk.generator.license and the cookbook generator entry point that processes -b or --berks. Done means a local setting changes the default cookbook policy mode while the explicit command-line flags continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.