summaryrefslogtreecommitdiff
path: root/lib/chef/application/solo.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use ChefUtils::CANARY and update to the chefstyle that enforces thatTim Smith2020-09-231-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Revert change that removed use of Chef::Config.platform_specific_pathLance Albertson2020-09-151-1/+1
| | | | Signed-off-by: Lance Albertson <lance@osuosl.org>
* Chefstyle fixesLance Albertson2020-09-151-1/+1
| | | | Signed-off-by: Lance Albertson <lance@osuosl.org>
* tighten all require statements for dist implementationMarc Chamberland2020-09-151-0/+1
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* move dist implementation into chef-utilsMarc Chamberland2020-09-151-1/+1
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix typoVivek Singh2020-04-061-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-1/+1
| | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Revert "Drop privileges before creating files in solo mode"lcg/revert-drop-permsLamont Granquist2019-09-111-1/+1
| | | | This reverts commit 68b9e91d3b1471dafbe854fd3fcdc793d5a8b70e.
* fail on interval runs on windowsLamont Granquist2019-08-281-1/+7
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* consolidate some options in the base classLamont Granquist2019-07-151-5/+0
| | | | | | | | | | | | | | | most of these are options that apply to either chef-client -z or to chef-solo without legacy mode, so they are justifiably common options (that are handled by the trampolining into the Client code from Solo right now. the --legacy-mode switch is solo-specific (although we should wire it up for chef-client eventually once all the code is merged). old-reporting and skip-cookbook-sync only make sense for actual chef-client runs so are marked as such in the help text Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* --fips, --fatal-windows-admin-check and --disable-configLamont Granquist2019-07-151-0/+2
| | | | | | | | should fix fips mode for chef-solo, adds the windows admin check feature, but the distable-config option needs some future work to the base class to support it. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add some comments on deprecation of the solo classLamont Granquist2019-07-151-0/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* migrate --delete-entire-chef-repo to base classLamont Granquist2019-07-151-5/+0
| | | | | | this is a trivial duplication Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Copy the daemon loop from client to baseLamont Granquist2019-07-151-50/+0
| | | | | | | These improvements never made it into solo and should be backwards compatible. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* copy --ez to base classLamont Granquist2019-07-151-15/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* normalize fetch_recipe_tarballLamont Granquist2019-07-151-9/+0
| | | | | | | | | | | this makes solo behave like client does. client was modified in these pulls: https://github.com/chef/chef/pull/7223 https://github.com/chef/chef/pull/7523 but those changes were never "ported" to solo.
* create application base class for de-duplicationLamont Granquist2019-07-151-173/+2
| | | | | | all of the changes in this commit should be mechanical and identical Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/RegexpLiteralLamont Granquist2019-07-051-1/+1
| | | | | | | given how many regexps we have with /'s in the match this seems like a very good one. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/NegatedIfLamont Granquist2019-07-051-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* more distro constantsMarc Chamberland2019-06-031-1/+1
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* distro constants for solo, zero and automateMarc Chamberland2019-05-231-2/+2
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-201-3/+3
| | | | | | | | | Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add Chef license acceptance CLI flag to chef-solochef_apply_licenseTim Smith2019-05-151-0/+2
| | | | | | Our major CLI commands should all have this Signed-off-by: Tim Smith <tsmith@chef.io>
* fix a bunch of weirdly mangled require linesLamont Granquist2019-05-081-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-10/+10
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Use keyword arguments for acceptanceMark Anderson2019-05-031-1/+1
| | | | Signed-off-by: Mark Anderson <mark@chef.io>
* Only Chef Software binaries should enforce EULAtyler-ball2019-05-031-1/+2
| | | | Signed-off-by: tyler-ball <tball@chef.io>
* Update specs for the new messagesTim Smith2019-05-021-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update more help descriptionsTim Smith2019-05-021-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix a description I missedTim Smith2019-05-021-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix up main binary help messagesTim Smith2019-05-021-28/+28
| | | | | | | | Periods after each sentence Use the branding better Fix some weird capitalization Signed-off-by: Tim Smith <tsmith@chef.io>
* chef-client => Chef::Dist::CLIENTMarc Chamberland2019-04-261-1/+1
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* Replacing workmarks with distro constantsMarc Chamberland2019-04-191-8/+9
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* Merge pull request #8391 from chef/solo_syncLamont Granquist2019-04-171-5/+5
|\ | | | | Sync the CLI option descriptions between chef-client and chef-solo
| * Sync the CLI option descriptions between chef-client and chef-solosolo_syncTim Smith2019-04-171-5/+5
| | | | | | | | | | | | We've updated the descriptions in chef-client over the years and we never copied stuff over to solo. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Use color in chef-solo by default on Windowssolo_colorTim Smith2019-04-171-1/+1
|/ | | | | | This matches our behavior in all our other commands since Chef 12.5. Signed-off-by: Tim Smith <tsmith@chef.io>
* Drop privileges before creating files in solo modebtm/fix-solo-permsBryan McLellan2019-04-111-1/+1
| | | | | | Fixes #8360 Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* WIP: Remove audit mode from chef-clientTim Smith2019-03-111-3/+0
| | | | | | | | This just gives us a line count to the change and perhaps a starting point for when we do this in Chef 15 Signed-off-by: Tim Smith <tsmith@chef.io> Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* changes for rubocop engine upgrades.lcg/rubocop-upgradesLamont Granquist2019-01-151-1/+1
| | | | | | | this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/PreferredHashMethodsLamont Granquist2018-07-021-1/+1
| | | | | | | absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the floor of that gem is bumped up. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/UnneededInterpolationLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/IndentHeredocLamont Granquist2018-07-021-6/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-112/+112
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Updating a few logging references to include :tracesp/cli-logging-optionsStuart Preston2018-04-251-1/+1
| | | | Signed-off-by: Stuart Preston <stuart@chef.io>
* mechanical conversion of most debug log statements to traceThom May2018-03-261-6/+6
| | | | Signed-off-by: Thom May <thom@chef.io>
* fix legacy mode and legacy mode testsLamont Granquist2018-02-261-3/+7
| | | | | | | also more broadly applies the integration tests to legacy mode which was the original intent of the chef-solo tests in client_spec.rb here Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Revert "Fail on interval runs on windows"Lamont Granquist2018-01-231-17/+4
|
* fail on interval runs on windowslcg/windows-intervalLamont Granquist2018-01-221-3/+9
| | | | | | closes #4824 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* This isn't chef-client, probably an old copy-pasta.Noah Kantrowitz2018-01-221-2/+2
|