summaryrefslogtreecommitdiff
path: root/chef-config
Commit message (Collapse)AuthorAgeFilesLines
* chefstyle Style/AndOr fixesLamont Granquist2016-03-142-2/+2
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* this is a really, really bad setting to tweaklcg/yell-at-usersLamont Granquist2016-03-111-0/+3
| | | | | | people are actually doing this in order to work around issues with writing /etc/hosts in docker containers. they should seriously stop doing it and fix this problem in the cookbooks.
* s/escape_glob/escape_glob_dir/lcg/fix-escape-globLamont Granquist2016-03-101-0/+11
| | | | | Removes all remaining references to the deprecated escape_glob helper routine.
* Bump version to 12.8.112.8.1jk/bump-versionJohn Keiser2016-03-071-1/+1
|
* Merge pull request #4617 from chef/lcg/chefstyle-perfLamont Granquist2016-03-041-1/+1
|\ | | | | Autofixing new Perf cops in 0.37.2
| * Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* | Merge pull request #4478 from chef/lcg/rfc-060-gem-metadataLamont Granquist2016-03-031-0/+2
|\ \ | | | | | | RFC-060 gem metadata MVP
| * | make rubygems.org configurableLamont Granquist2016-02-091-0/+2
| | | | | | | | | | | | for bonus points gem_package will pick this up as well.
* | | Merge pull request #4626 from chef/umlautMatt Wrock2016-02-251-1/+1
|\ \ \ | | | | | | | | ensure paths maintain utf-8ness in non ascii encodings
| * | | ensure paths maintain utf-8ness in non ascii encodingsumlautMatt Wrock2016-02-241-1/+1
| | |/ | |/|
* | | Rename conf.d to config.djdm/knife-bootstrap-clientdJay Mundrawala2016-02-253-5/+5
| | |
* | | Add support for solo.dJay Mundrawala2016-02-241-0/+3
| | |
* | | Rename read_config to apply_configJay Mundrawala2016-02-243-7/+7
| | | | | | | | | | | | | | | This makes it the same as application/client.rb. This will let the mixin be used the same way in both places.
* | | Refactor dot_d loading for workstation_config_loader to use mixinJay Mundrawala2016-02-242-19/+41
| | |
* | | Use escape_glob_dir for client.d/conf.dJay Mundrawala2016-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Passing the value of `escape_glob` to Dir.glob does not always work correctly on Windows. Always use forward slashes when globbing, even on Windows. We now do this via `escape_glob_dir`, which calls Pathname.cleanpath, which does the foward slash thing.
* | | Refactor workstation_config_loader's conf_d_filesJay Mundrawala2016-02-241-7/+4
| | |
* | | Allow the workstation config to load a conf.d directoryJay Mundrawala2016-02-243-9/+113
| | | | | | | | | | | | | | | This will behave similarly to the client.d directory. The top-level ruby files will be loaded in sorted order.
* | | Add client_d_dir configurationJay Mundrawala2016-02-241-0/+3
| | | | | | | | | | | | | | | | | | This configuration defaults to config_dir/client.d, but can be set to nil if you do not want chef-client loading any extra config files.
* | | Don't warn about FIPS - it's a proper feature nowksubrama/test_fixKartik Null Cating-Subramanian2016-02-241-1/+0
| | |
* | | Add client keys handling to ChefFSJordan Running2016-02-241-1/+5
|/ / | | | | | | Supports work to being chef-zero closer to parity with chef-server.
* | Fix rubocop warningsJay Mundrawala2016-02-161-1/+1
| |
* | Fix spec for escape_glob_dirJay Mundrawala2016-02-161-4/+4
| | | | | | | | | | This was testing `escape_glob` behavior. Probably a copy-pasta mistake
* | Fix databag globbing issues for chef-solo on windowsyoungjl12016-02-162-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | Backslashes should not be passed to Dir, as it does not work when globbing in many cases. Created new function that can be used with dir on windows. `escape_glob_dir` should be used when the result is going to be passed into Dir. Fixes #4194 Replaces #4195
* | Post 12.7.2 release follow up itemstyler-ball2016-02-161-1/+1
| |
* | convert MultilineOperationIndentation style to "indented"Lamont Granquist2016-02-121-1/+1
| | | | | | | | this looks nicer.
* | Merge pull request #4541 from chef/lcg/chefstyle-batchLamont Granquist2016-02-111-2/+2
|\ \ | | | | | | fix a batch of cops
| * | auto fixing some rubocopsLamont Granquist2016-02-091-2/+2
| |/ | | | | | | | | | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* | 12.7.2 release prep, removing some unstable acceptance tests so we can get a ↵tyler-ball2016-02-111-1/+1
| | | | | | | | successful release pipeline run
* | VERSION change and CHANGELOG for 12.7.1 releasetyler-ball2016-02-101-1/+1
|/
* autofixing whitespace copsLamont Granquist2016-02-0511-36/+25
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* auto-fixing some easy copschefstyle/fixesLamont Granquist2016-02-031-1/+1
| | | | | | | | | | | | | 3 Performance/CaseWhenSplat: Place when conditions with a splat at the end of the when branches. 1 Style/ElseAlignment: Align else with if. 1 Style/EvenOdd: Replace with Fixnum#even?. 1 Style/MethodDefParentheses: Use def with parentheses when there are parameters. 3 Style/PercentQLiterals: Do not use %Q unless interpolation is needed. Use %q. 3 Style/SpaceAfterColon: Space missing after colon. 2 Style/SpaceAfterMethodName: Do not put a space between a method name and the opening parenthesis. 2 Style/Tab: Tab detected. 1 Style/TrailingUnderscoreVariable: Do not use trailing _s in parallel assignment. 1 Style/UnneededCapitalW: Do not use %W unless interpolation is needed. If not, use %w.
* Merge pull request #4481 from chef/jdm/fips-58Jay Mundrawala2016-02-031-7/+14
|\ | | | | Allow use of command line fips switch for knife
| * Refactor chef-config fips configjdm/fips-58Jay Mundrawala2016-01-281-7/+14
| | | | | | | | | | | | | | | | This refactor allows for better mocking in the tests. Before, when init_openssl was called, classes would get monkey patched. While this may not cause problems now, some day in the future, somebody would have been like "WTF is going on".
* | Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-023-6/+6
| | | | | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* | Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-022-2/+2
| | | | | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* | Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-0212-13/+13
|/ | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Bump version to 12.7.0, and make "rake version" use just the one VERSION filejk/bump-12.7.0John Keiser2016-01-273-9/+7
|
* Derive repo path from cookbook_artifact pathenable-policies-in-local-mode-by-defaultdanielsdeleo2016-01-262-8/+23
| | | | | Allows you to run local mode with autodetected paths using native policyfile objects only.
* Add test coverage for chef_repo_pathdanielsdeleo2016-01-261-0/+45
|
* Add test for repo_mode behaviordanielsdeleo2016-01-262-3/+44
|
* Enable Chef 12 mode for local mode by defaultdanielsdeleo2016-01-261-0/+42
|
* Fixup quotes in chef-configJay Mundrawala2016-01-251-7/+7
|
* Allow setting fips through environment variableJay Mundrawala2016-01-251-1/+1
|
* Rename openssl-fips to fips and add messagesJay Mundrawala2016-01-251-4/+4
|
* Do openssl initialization from applicationsJay Mundrawala2016-01-251-0/+14
| | | | | | | | | | | | | | | | | | | Some notes: * Add module overrides for fips We need to use the SHA1 module under OpenSSL because the openssl functions called by Digest::SHA1 cause openssl to crash the process. We use the Digest::MD5 over the OpenSSL::MD5 module because md5 is not allowed when in fips mode and causes the process to crash. While we work through these issues, we're going to allow it to pass by compiling the ruby md5 implementation. * Use OpenSSL::Digest::SHA256 instead of Digest::SHA256 Digest::SHA256 is broken in fips mode because it uses unapproved APIs. They cause the process to terminate.
* Use sign v1.3 when fips mode is selectedJay Mundrawala2016-01-251-2/+11
|
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-2/+2
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Fix unused variables and commentsjk/cookbook-artifactsJohn Keiser2016-01-151-2/+0
|
* Add local cookbook_artifactsJohn Keiser2016-01-151-6/+8
|
* Use double quotes by defaultThom May2016-01-1413-158/+158
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.