This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove more string literal comments and fix some specs
Signed-off-by: Tim Smith <tsmith@chef.io>
- Loading branch information
Showing
32 changed files
with
513 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
lib/chef-dk/skeletons/code_generator/files/default/build_cookbook/test-fixture-recipe.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
lib/chef-dk/skeletons/code_generator/recipes/build_cookbook.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
lib/chef-dk/skeletons/code_generator/recipes/cookbook_file.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.chef-repo.txt | ||
============== | ||
|
||
This file gives Chef DK's generators a hint that you are using a Chef Repo and | ||
this is the root directory of your Chef Repo. Chef DK's generators use this to | ||
generate code that is designed to work with the Chef Repo workflow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
## Below are example of common git excludes. | ||
## Please note that /cookbooks folder is ignored. This allows users to | ||
## clone individual cookbooks into the /cookbook folder of the chef repo | ||
## and work on them in parallel. This pattern also allows for chef-workstation | ||
## pattern, where base repo also builds out a dynamic chef workstation. | ||
## Examples of workstation cookbooks: | ||
## https://github.com/mwrock/chef_workstation | ||
## https://github.com/Nordstrom/chefdk_bootstrap | ||
|
||
|
||
## Ignore Chef related files and secrets | ||
.chef | ||
.chef/*.pem | ||
.chef/encrypted_data_bag_secret | ||
|
||
## Ignore Chef-Zero files | ||
clients | ||
nodes | ||
|
||
# ## OS junk files | ||
# [Tt]humbs.db | ||
# *.DS_Store | ||
|
||
# ## Example of the workstation pattern. | ||
# !/cookbooks/chef_workstation/files/default/bundler/Gemfile | ||
# !/cookbooks/chef_workstation/files/default/bundler/Gemfile.lock | ||
# cookbooks/* | ||
# !cookbooks/chef_workstation | ||
|
||
# ##Chef | ||
# .kitchen/ | ||
# .vagrant | ||
# nodes | ||
# metadata.json | ||
|
||
# ##ruby | ||
# *.gem | ||
# Gemfile | ||
# Gemfile.lock | ||
.rake_test_cache | ||
|
||
# ## Rails Heroku and other bits to ignore | ||
# *.log | ||
# *.sqlite3 | ||
# db/*.sqlite3 | ||
# .bundle | ||
# log/* | ||
# tmp/* | ||
# public/system/* | ||
|
||
# ##nodejs | ||
# node_modules | ||
|
||
# # Nuget (exclude all exes except for the one in the global build folder) | ||
# nuget.exe | ||
# !build/nuget/nuget.exe | ||
# *.nupkg | ||
# # NuGet packages (based on default naming convention) | ||
# [Bb]uild/[Pp]ackages/ | ||
|
||
# # Build System # common build output folders | ||
# build-common/ | ||
# output/ | ||
|
||
# ## Probably not a good idea to be keeing VM inages in source control | ||
# *.vhd | ||
# *.vhdx | ||
|
||
# ## Pester Test summary | ||
# Test.xml | ||
|
||
# ##Webstorm files | ||
# *.idea | ||
# .idea | ||
# .idea/ | ||
|
||
# ##Mono (or something?) files | ||
# *.pidb | ||
# *.userprefs | ||
|
||
# ## Visual Studio files | ||
# *.docstates | ||
# *.[Oo]bj | ||
# *.dat | ||
# *.crc | ||
# *.dbmdl | ||
# *.pdb | ||
# *.user | ||
# *.aps | ||
# *.pch | ||
# *.vspscc | ||
# *.vssscc | ||
# *_i.c | ||
# *_p.c | ||
# *.ncb | ||
# *.suo | ||
# *.tlb | ||
# *.tlh | ||
# *.bak | ||
# *.[Cc]ache | ||
# *.ilk | ||
# *.log | ||
# *.lib | ||
# *.sbr | ||
# *.schemaview | ||
# ipch/ | ||
# [Oo]bj/ | ||
# [Bb]in/* | ||
# [Dd]ebug*/ | ||
# [Rr]elease*/ | ||
# Ankh.NoLoad | ||
|
||
# ##Tooling | ||
# _ReSharper*/ | ||
# *.[Rr]e[Ss]harper | ||
# [Tt]est[Rr]esult* | ||
# .[Jj]ust[Cc]ode | ||
# *ncrunch* | ||
|
||
# ##Subversion files | ||
# .svn | ||
|
||
# ## Office Temp Files | ||
# ~$* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Copyright 2019 The Authors | ||
|
||
All rights reserved, do not redistribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Overview | ||
|
||
Every Chef Infra installation needs a Chef Repository. This is the place where cookbooks, policyfiles, config files and other artifacts for managing systems with Chef Infra will live. We strongly recommend storing this repository in a version control system such as Git and treating it like source code. | ||
|
||
# Repository Directories | ||
|
||
This repository contains several directories, and each directory contains a README file that describes what it is for in greater detail, and how to use it for managing your systems with Chef. | ||
|
||
- `cookbooks/` - Cookbooks you download or create. | ||
- `data_bags/` - Store data bags and items in .json in the repository. | ||
- `roles/` - Store roles in .rb or .json in the repository. | ||
- `environments/` - Store environments in .rb or .json in the repository. | ||
|
||
# Configuration | ||
|
||
The config file, `.chef/config.rb` is a repository specific configuration file for knife. If you're using the Chef Platform, you can download one for your organization from the management console. You can generate a new one with `knife configure`. For more information about configuring Knife, see the Knife documentation. | ||
|
||
<https://docs.chef.io/knife.html> | ||
|
||
# Next Steps | ||
|
||
Read the README file in each of the subdirectories for more information about what goes in those directories. |
Oops, something went wrong.