Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Make generate repo default to policyfiles + cleanup generated readme content #2050

Merged
merged 23 commits into from
May 9, 2019

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented May 5, 2019

When someone is creating their new chef repo from scratch set it up with policyfiles
Update kitchen.yml to describe the modern way of specifying product_version
Make metadata.rb require Chef 14+
Improve readme text in various generated readme files
Improve help descriptions of the depsolvers
Remove the frozen_string_literal: true comments in the generated code
Chef / Chef Server -> Che Infra Client / Chef Infra Server
Remove references to the old wiki site
Generate a working dokken config
Generate cookbooks that require Che 14+ not Chef 13+
Set the commented out product_version in the kitchen configs to Chef 15 not 14
Generate modern ChefSpecs with platform versions that won't need to be updated every year

@tas50 tas50 force-pushed the generator_cleanup branch 6 times, most recently from 0574e73 to 10eadcf Compare May 7, 2019 07:18
@tas50 tas50 changed the title WIP: Further cleanup of the generated Chef data Make generate repo default to policyfiles + cleanup generated readme content May 7, 2019
@tas50 tas50 force-pushed the generator_cleanup branch 4 times, most recently from 4bcf0c5 to 431fc29 Compare May 8, 2019 20:06
# frozen_string_literal: true
# This is a Chef recipe file. It can be used to specify resources which will
# apply configuration to a server.
# This is a Chef Infra Clientt recipe file. It can be used to specify resources
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# This is a Chef Infra Clientt recipe file. It can be used to specify resources
# This is a Chef Infra Client recipe file. It can be used to specify resources

@tyler-ball
Copy link
Contributor

Can you update the top level RELEASE_NOTES.md with these changes so we don't have to do that later?

Copy link
Contributor

@tyler-ball tyler-ball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 after getting release notes updated

@@ -327,11 +327,11 @@ def generator_context
<<~README
Create roles here, in either the Role Ruby DSL (.rb) or JSON (.json) files. To install roles on the server, use knife.

For example, in this directory you'll find an example role file called `example.json` which can be uploaded to the Chef Server:
For example, in this directory you'll find an example role file called `example.json` which can be uploaded to the Chef Infra Server:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For example, in this directory you'll find an example role file called `example.json` which can be uploaded to the Chef Infra Server:
For example, in this directory, you'll find an example role file called `example.json`, which can be uploaded to the Chef Infra Server:

tas50 added 2 commits May 9, 2019 11:14
We missed a few

Signed-off-by: Tim Smith <tsmith@chef.io>
Match our current best practices

Signed-off-by: Tim Smith <tsmith@chef.io>
tas50 added 20 commits May 9, 2019 11:14
Rubocop doesn't recommend this now. The string literals can has been kicked down the road a bit further.

Signed-off-by: Tim Smith <tsmith@chef.io>
Remove references to the wiki and a nonsense statement about tarballs.

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
This is a Chef 11-ism that we don't need to do anymore

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
This should be here as well

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
These don't matter the way we're using this

Signed-off-by: Tim Smith <tsmith@chef.io>
Never miss an opportunity to drop a brand name.

Signed-off-by: Tim Smith <tsmith@chef.io>
Work around foodcritic issues

Signed-off-by: Tim Smith <tsmith@chef.io>
This made no sense

Signed-off-by: Tim Smith <tsmith@chef.io>
I'll have it all soon

Signed-off-by: Tim Smith <tsmith@chef.io>
Savages

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
These are sane defaults for DK 4 / Chef 15 land

Signed-off-by: Tim Smith <tsmith@chef.io>
Without the pid_one_command bit it won't work

Signed-off-by: Tim Smith <tsmith@chef.io>
Get people using the new format with major versions only so eventually we can stop generating every point release in Fauxhai.

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 force-pushed the generator_cleanup branch from 5c492c6 to 85e15a6 Compare May 9, 2019 18:14
Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 merged commit 53d72e4 into master May 9, 2019
@chef-ci chef-ci deleted the generator_cleanup branch May 9, 2019 18:26
@lock
Copy link

lock bot commented Jul 9, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants