summaryrefslogtreecommitdiff
path: root/lib/chef/resource
Commit message (Collapse)AuthorAgeFilesLines
* Add macOS support to the timezone resourceTim Smith2018-10-311-32/+60
| | | | | | Moving towards a world where we properly load the current state. Adds a method that grabs the current timezone and properly fails with a warning message if we don't have the privs we need. Using converge_by and shell_out to set the timezone so we get a nice clean converge messaging vs. execute resources. Also improves the description to give a link to where users can find all the TZ options. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #7811 from chef/docs_improvementsTim Smith2018-10-319-19/+20
|\ | | | | Automated resource documentation improvements
| * Add skip_docs and default_description to resource propertiesdocs_improvementsTim Smith2018-10-302-2/+3
| | | | | | | | | | | | | | | | | | skip_docs is used to specify a property that we don't want to include in the documentation. We have several of these. default_description is used to describe the default in a way we'd want to put on the docs site. This is particularly useful for describing all our lazy / computed values. I've used both of these in resources to show how I think we'll use them. Signed-off-by: Tim Smith <tsmith@chef.io>
| * Update description fields from the docs siteTim Smith2018-10-308-17/+17
| | | | | | | | | | | | Minor syncs from the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Allow passing array to supports in mount againarray_mountTim Smith2018-10-301-2/+2
|/ | | | | | | We try to coerce the array into a Hash, but we don't allow the Array value. This makes this actually work as we documented it. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix locale on RHEL 6 / Amazon LinuxTim Smith2018-10-251-1/+1
| | | | | | There was a double source in the command, which would fail. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add support for localized system account to windows_task resourceAnton Kvashenkin2018-10-161-238/+240
| | | | Signed-off-by: Anton Kvashenkin <anton.jugatsu@gmail.com>
* Shellout with an array for safetTim Smith2018-10-091-5/+1
| | | | | | | Simplifies this code a bit, but it also the safe thing to do in the event that the timezone has a space. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add the timezone resource from the timezone_lwrp cookbookTim Smith2018-10-091-0/+95
| | | | | | Adding this resource to core Chef with permission from @dragonsmith Signed-off-by: Tim Smith <tsmith@chef.io>
* fixed typo in descriptionJoshua Colson2018-10-021-1/+1
| | | | Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
* Fixed introduced version to 14.6 for newly added properties in ↵Vasu11052018-09-262-2/+2
| | | | | | zypper_package and windows_user resource as it got released in 14.6. Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Merge pull request #7677 from ↵Tim Smith2018-09-251-0/+4
|\ | | | | | | | | MsysTechnologiesllc/vasundhara/MSYS-888_Add_full_name_property_to_user_resource_for_windows Adds full_name property to user resource for Windows.
| * Added introduced version for full_name property.vasu11052018-09-251-1/+2
| | | | | | | | Signed-off-by: vasu1105 <vasundhara.jagdale@msystechnologies.com>
| * MSYS-888 Adds full_name property to user resource for Windows.vasu11052018-09-241-0/+3
| | | | | | | | Signed-off-by: vasu1105 <vasundhara.jagdale@msystechnologies.com>
* | Merge pull request #7666 from chef/delcareTim Smith2018-09-251-4/+4
|\ \ | | | | | | Remove declare_resource usage in ohai_hint
| * | Remove declare_resource usage in ohai_hintdelcareTim Smith2018-09-201-4/+4
| | | | | | | | | | | | | | | | | | These aren't necessary here and make it harder to read the resource. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | added introduced fielddheerajd-msys2018-09-251-1/+2
| | | | | | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* | | added intermediate instruction for crondheerajd-msys2018-09-251-1/+3
| | | | | | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>dheerajd-msys2018-09-251-0/+2
| | | | | | | | | | | | | | | | | | | | | pick 3cf01debd fix for global options property pick af5cddaca added global_options property pick 7cc82d185 functional test added pick 3684cdb58 add suse rspec testing
* | | Merge pull request #7673 from chef/fix_adLamont Granquist2018-09-211-1/+1
|\ \ \ | | | | | | | | Fix failures in windows_ad_join in 14.5.27
| * | | Fix failures in windows_ad_join in 14.5.27Tim Smith2018-09-211-1/+1
| |/ / | | | | | | | | | | | | | | | I 1/2 renamed this property name. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #7667 from chef/deprecateTim Smith2018-09-211-2/+6
|\ \ \ | | | | | | | | Deprecate ohai resource's ohai_name property
| * | | Deprecate ohai resource's ohai_name propertydeprecateTim Smith2018-09-201-2/+6
| |/ / | | | | | | | | | | | | | | | This isn't actually used anywhere in the resource and there's no point. It reload's plugins based on the plugin property. We should kill this thing off and reduce the complexity a tiny bit. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #7668 from chef/yard++Stuart Preston2018-09-212-2/+2
|\ \ \ | |_|/ |/| | Add a tiny bit more yard
| * | Add a tiny bit more yardTim Smith2018-09-202-2/+2
| |/ | | | | | | | | | | Bump when we're going to kill this off so we can search for Chef-15 in the codebase. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Removing incorrect grammar, now that the exception message is aware of ↵Daniel Greeninger2018-09-202-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package quantity. Signed-off-by: Daniel Greeninger <dgreeninger@onica.com> Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as Indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
* Wire up openssl_x509Tim Smith2018-09-181-1/+1
| | | | | | | | | I originally left this uncommented, but this actually broke backwards compatibility more than the potential for Chef winning over the cookbook. I think we have to just bite the bullet here and let Chef win in the name of backwards compatibility with the name. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update description to match docs updateTim Smith2018-09-171-1/+1
| | | | | | *nix doesn't work well on the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add Chef 14.5 release notesTim Smith2018-09-171-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #7648 from chef/scmTim Smith2018-09-152-14/+49
|\ | | | | Move subversion properties out of scm and into subversion
| * Move subversion properties out of scm and into subversionscmTim Smith2018-09-142-14/+49
| | | | | | | | | | | | This way we're not polluting the git resource with the subversion properties. Cleans up our docs generation a bit. I added some property descriptions while I was in there. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Resource description updates for homebrew_cask, homebrew_tap, and hostnameresource_doc_fixesTim Smith2018-09-143-9/+9
| | | | | | | | | | | | More syncs from the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Update wording in the locale resourceTim Smith2018-09-141-2/+3
|/ | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix resource descriptions for ohai_hint and rhsm_errata_levelTim Smith2018-09-142-6/+4
| | | | | | Update these to match copy fixes we made on the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* Rename windows_ad_join's newname to be new_hostnameTim Smith2018-09-141-2/+3
| | | | | | | | | newname matches powershell, but isn't entirely apparent to non-PowerShell users. We should give it a name that requires no knowledge outside of Chef. This also adds the introduced field, which we use to generate docs. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge branch 'master' into feature/windows_ad_joinStuart Preston2018-09-1434-182/+327
|\
| * Merge pull request #7637 from derekgroh/feature/windows_ad_join_newnameStuart Preston2018-09-141-0/+4
| |\ | | | | | | windows_ad_join resource - add newname property
| | * use ruby naming; newname to new_nameDerek Groh2018-09-131-2/+2
| | | | | | | | | | | | Signed-off-by: Derek Groh <derekgroh@github.io>
| | * add newname propertyDerek Groh2018-09-121-0/+4
| | | | | | | | | | | | Signed-off-by: Derek Groh <derekgroh@github.io>
| * | add locale resource to chefVincent AUBERT2018-09-111-0/+92
| | | | | | | | | | | | Signed-off-by: Vincent AUBERT <vincentaubert88@gmail.com>
| * | Merge pull request #7625 from chef/paludis_packageTim Smith2018-09-101-1/+3
| |\ \ | | | | | | | | paludis_package: Make sure timeout property is an Integer
| | * | paludis_package: Make sure timeout property is an Integerpaludis_packageTim Smith2018-09-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | This is meant to be an integer, but we didn't specify. Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Properly capitalize PowerShell in descriptions and errorspowershellTim Smith2018-09-073-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | It's PowerShell not Powershell. Our docs site had already been updated. Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Fix a description to match the docs siteTim Smith2018-09-061-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Add introduced versions for properties and more descriptionsTim Smith2018-09-069-27/+40
| | | | | | | | | | | | | | | | | | | | | | | | Getting the auto generated docs ready 1 fix at a time. Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Remove unnecessary declare_resource usage in build_essentialTim Smith2018-09-061-37/+37
| |/ / | | | | | | | | | | | | | | | This is a custom resource so we don't need this. Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Add additional resource descriptionsTim Smith2018-09-0622-114/+148
| |/ | | | | | | | | | | Filling in more of the missing resource descriptions using the descriptions straight from the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* | syntax and logic fixesDerek Groh2018-09-131-2/+3
| | | | | | | | Signed-off-by: Derek Groh <derekgroh@github.io>
* | update chef version introducedDerek Groh2018-09-101-1/+1
| | | | | | | | Signed-off-by: Derek Groh <derekgroh@github.io>
* | Merge branch 'master' of https://github.com/chef/chef into ↵Derek Groh2018-09-0449-273/+1573
|\ \ | |/ | | | | feature/windows_ad_join