summaryrefslogtreecommitdiff
path: root/lib/chef/resource
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8593 from chef/lcg/enable-target-modeLamont Granquist2019-05-273-1/+4
|\ | | | | Enable target mode on ruby_block, log and breakpoint
| * enable target mode on some resourceslcg/enable-target-modeLamont Granquist2019-05-243-1/+4
| | | | | | | | | | | | see PR for pontification on ruby_block Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Add introduced field to launch_events in launchd (#8592)Tim Smith2019-05-241-0/+1
| | | | | | | | | | This auto generates our docs. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #8582 from chilcote/launch_eventsTim Smith2019-05-241-0/+3
|\ \ | |/ |/| launchd: add launch_events property
| * add LaunchEvents to launchd resourceJoseph Chilcote2019-05-231-0/+3
| | | | | | | | Signed-off-by: Joseph Chilcote <chilcote+github@gmail.com>
* | Better target mode shell_outlcg/better-target-mode-shell-outLamont Granquist2019-05-231-1/+2
|/ | | | | | | | - integrates target-mode fully with shell_out - removes the train_or_shellout mixin - apt_package is now fully supported in target-mode Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-2011-11/+11
| | | | | | | | | 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>
* Rename the windows_dfs :install actions to :createTim Smith2019-05-132-2/+2
| | | | | | We're creating these dfs shares so it makes a lot more sense to make the action create. This is probably what people using Chef would expect. Signed-off-by: Tim Smith <tsmith@chef.io>
* Change some more require to require_relativeLamont Granquist2019-05-104-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #8492 from ↵Tim Smith2019-05-081-1/+1
|\ | | | | | | | | MsysTechnologiesllc/Kapil/MSYS-1006_chef_14_windows_feature_fails_on_windows_2008r2 windows_feature: Fix failures on windows 2008r2
| * Fix for chef 14 windows_feature fails on windows 2008r2Kapil Chouhan2019-05-081-1/+1
| | | | | | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* | fix a bunch of weirdly mangled require linesLamont Granquist2019-05-0891-91/+91
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Convert require to require_relativeLamont Granquist2019-05-08140-229/+229
|/ | | | | | | 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>
* Merge pull request #8307 from ↵Tim Smith2019-05-073-8/+16
|\ | | | | | | | | MsysTechnologiesllc/Kapil/MSYS-986_Move_response_file_and_response_file_variables_out_of_base_package_resource package: move response_file and response_file_variables out of base package resource
| * Move response_file and response_file_variables out of base package resourceKapil Chouhan2019-05-073-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> Fix for Move response_file and response_file_variables out of base package resource Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> update require changes Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> Updated require changes Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> Fixed some unit test cases Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* | Target Mode initial implementationBryan McLellan2019-05-061-1/+2
| | | | | | | | Signed-off-by: Bryan McLellan <btm@chef.io>
* | Update property descriptions for new resourcesTim Smith2019-04-293-7/+7
| | | | | | | | | | | | | | The docs team performed copy editing on these on the docs site. This backports those changes. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #8418 from cc-build/bulk_distro_constantLamont Granquist2019-04-2915-20/+35
|\ \ | | | | | | "chef-client" => #{Chef::Dist::CLIENT}
| * | chef-client => Chef::Dist::CLIENTMarc Chamberland2019-04-2615-20/+35
| |/ | | | | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* | Merge pull request #8412 from chef/document_snapLamont Granquist2019-04-291-0/+1
|\ \ | | | | | | Add the introduced field to snap_package
| * | Add the introduced field to snap_packagedocument_snapTim Smith2019-04-241-0/+1
| |/ | | | | | | | | | | Our docs site is generated with this field. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add start_when_available support to windows_taskVivek Singh2019-04-261-0/+4
|/ | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Limit locale resource to LinuxBryan McLellan2019-04-151-12/+16
| | | | | | Platforms that don't use /etc/locale.conf aren't supported Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Bing in the latest changes from the cookbookTim Smith2019-04-151-22/+59
| | | | | | This fixes idempotency issues. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add description fieldsTim Smith2019-04-151-6/+9
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add a new archive_file resource from the libarchive cookbookTim Smith2019-04-151-0/+132
| | | | | | This adds the archive_file resource from the libarchive cookbook. I've updated the property names in that cookbook to allow us to add a :create action later on. This code matches the code in the cookbook nearly 100%. Signed-off-by: Tim Smith <tsmith@chef.io>
* locale resource: Add support to set all LC ENV variablesNimesh-Msys2019-04-041-44/+96
| | | | | | | | | | | | - Deprecated `lc_all` - Provided other features like generate locale if it is not available - Removed system dependancy - Added unit and functional test cases - Added YARD format comments - Ensured Chefstyle - Fixes: MSYS-988 Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* Add misc YARD commentsyard3Tim Smith2019-03-119-4/+22
| | | | | | A pile of misc yard I added as I was reading things. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #8242 from ↵Tim Smith2019-03-041-18/+36
|\ | | | | | | | | MsysTechnologiesllc/MSYS-937_win_certificate_import_nested windows_certificate: Import nested certificates while importing P7B certs.
| * Adding support to import nested certificates through PFX certificateNimesh-Msys2019-02-271-1/+6
| | | | | | | | | | | | | | | | - The following case was also identified in case of PFX certificate - Minor changes to allow import of ca_certs if they are present - Supporting changes have been sent in PR: https://github.com/chef/win32-certstore/pull/53 Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
| * windows_certificate: Import root/nested certificates while importing P7B ↵Nimesh-Msys2019-02-251-17/+30
| | | | | | | | | | | | | | | | | | | | certificates - P7B might contain multiple certificates and we should not miss the internal one while import. - Added test cases and ensured chef-style - Fixes: MSYS-977 Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* | Require Path helperJason Field2019-02-251-0/+1
| | | | | | | | Signed-off-by: Jason Field <jason@avon-lea.co.uk>
* | Update windows_share.rbXorima2019-02-221-1/+1
| | | | | | | | | | | | Linting Fix Signed-off-by: Jason Field <jason@avon-lea.co.uk>
* | Update Share Bug FixJason Field2019-02-221-6/+8
|/ | | | | | | Fixes issue where updating a share will cause the share to be deleted but not re-created until chef is next run, and for chef to fail the run Signed-off-by: Jason Field <jason@avon-lea.co.uk>
* Simplify openssl_dhparam mode fixbtm/MSYS-955_openssl_dhparam_mode_fixBryan McLellan2019-02-211-20/+11
| | | | | | Reduce this down to a single file resource Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* update property for existing filedheerajd-msys2019-02-211-4/+14
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* test case addeddheerajd-msys2019-02-211-10/+10
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* fix for resource properties updatedheerajd-msys2019-02-211-3/+1
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* Move the iterations property directly into the dscl_user resourceTim Smith2019-02-192-4/+4
| | | | | | It's not used anywhere else. Let's keep it out of the other resources. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add another description and simplify the windows checkTim Smith2019-02-191-2/+3
| | | | | | More cleanup Signed-off-by: Tim Smith <tsmith@chef.io>
* Add descriptions to the user propertiesTim Smith2019-02-191-13/+13
| | | | | | This helps our documentation effort Signed-off-by: Tim Smith <tsmith@chef.io>
* Convert the user resource to use the resource DSLTim Smith2019-02-191-125/+46
| | | | | | This is one of the last ones that needed to be updated for the resource DSL. This gets us quite a bit of resource inspector goodness. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fetching OpenSSL::X509::Certificate object without shell interactions.Nimesh-Msys2019-02-171-37/+34
| | | | | | | | | | - Previously, we were building a new OpenSSL::X509::Certificate object with PEM string contents. - To get this content, we were using openssl utility and were converting all certificate types into PEM - And were extracting the PEM contents out of resulting data. - It could directly be done via correct usage of applicable classes. - Reverted using Open3. It uses shell hence did not solved the purpose. Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* Minor fixes as per the review comments.Nimesh-Msys2019-02-131-17/+20
| | | | | | - Checking file formats by uisng ruby itself, instead of shelling it out. Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* Windows Certificate: Add support to import Base 64 encoded CER certificatesNimesh-Msys2019-02-121-1/+8
| | | | | | | | | | - Till now, cer certificates were only considered to be in binary format (DER) - They can also be base-64 encoded(PEM) - We should only append "inform DER" only if it is a binary certificate, otherwise, default ("inform PEM") would support base64 encoded certificates. - Added test caes - Ensured Chef style Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* More consist descriptions for resource name propertiesTim Smith2019-02-0627-28/+28
| | | | | | This better describes how a name property works. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #8212 from chef/windows_uacTim Smith2019-02-061-0/+94
|\ | | | | Add windows_uac resource
| * Add windows_uac resourcewindows_uacTim Smith2019-02-051-0/+94
| | | | | | | | | | | | | | | | This comes from the windows_uac cookbook. https://supermarket.chef.io/cookbooks/windows_uac Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #8198 from chef/windows_resourcesTim Smith2019-02-065-0/+421
|\ \ | |/ |/| Add windows_dfs and windows_dns resources
| * Add descriptionsTim Smith2019-02-055-22/+113
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>