summaryrefslogtreecommitdiff
path: root/lib/chef/resource/yum_repository.rb
Commit message (Collapse)AuthorAgeFilesLines
* More consist descriptions for resource name propertiesTim Smith2019-02-061-1/+1
| | | | | | This better describes how a name property works. Signed-off-by: Tim Smith <tsmith@chef.io>
* Replace several uses of attribute with property in resourcesattribute_is_propertyTim Smith2018-11-151-1/+1
| | | | | | We were still calling things attributes when they're actually properties. This fixes some documentation and error messages. Signed-off-by: Tim Smith <tsmith@chef.io>
* More resource description updatesTim Smith2018-11-071-1/+1
| | | | | | Better descriptions for many name properties and copy edits from the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add more validation_messages to propertiesvalidationsTim Smith2018-11-031-6/+12
| | | | | | Provide users with more helpful messages Signed-off-by: Tim Smith <tsmith@chef.io>
* Add additional resource descriptionsTim Smith2018-09-061-1/+1
| | | | | | Filling in more of the missing resource descriptions using the descriptions straight from the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add additional property descriptions using those on the docs siteTim Smith2018-08-291-45/+134
| | | | | | Slowly backporting stuff from the docs site into Chef so we can auto-generate our docs Signed-off-by: Tim Smith <tsmith@chef.io>
* Modify the provides for all resources from cookbooks so chef winsprovidesTim Smith2018-04-061-1/+1
| | | | | | Due to changes in chef-client 14 old cookbooks started winning and this causes lots of problems, especially for old incompatible resources. Chef client should always win here. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fail with a warning if users specify apt/yum/zypper repos with slashesrepo_filenamesTim Smith2018-03-191-1/+6
| | | | | | We can't write out a filename like foo/bar.repo so we should properly warn the user if they try to give us that. There's probably other things, but this one makes particular sense for apt since people want to use the slash in PPA repo names. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add more introduced and description fields to resourcesdescriptions_v2Tim Smith2018-02-221-4/+6
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #6697 from chef/yum_repo_cleanupTim Smith2017-12-191-22/+22
|\ | | | | Fix yum_repository allowing priority of 0 and remove string regexes
| * Fix priority to accept 1-99 not 0-99yum_repo_cleanupTim Smith2017-12-191-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remove the regex from every string propertyTim Smith2017-12-191-21/+21
| | | | | | | | | | | | We copied this in from the cookbook and I assume at one point there was a reason for it, but I can't think of one now. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add descriptions and @since comments to all resourcesTim Smith2017-12-191-0/+4
|/ | | | | | From the docs site Signed-off-by: Tim Smith <tsmith@chef.io>
* Add support for metalink and throttle in yum_repositoryyum_repoTim Smith2017-09-211-1/+4
| | | | | | metalink shipped in Fedora 10. I'm not sure about throttle as it doesn't google well, but there's references to it going back 5 years at least. Signed-off-by: Tim Smith <tsmith@chef.io>
* Sort yum repository options alphabeticallyTim Smith2017-09-211-8/+8
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #5606 from chef/adamleff/warn-on-dangerous-property-namesThom May2017-01-181-1/+0
|\ | | | | Deprecate creating properties whose names are already methods
| * Deprecate creating properties whose names are already methodsadamleff/warn-on-dangerous-property-namesAdam Leff2017-01-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating a resource, a user can create a property that is the same name as an already-existing Ruby method, such as `#hash`. In the case of the `#hash` method, this can cause issues when attempting to adding resources to other data structures, such as Arrays or Hashes. In other examples, this could cause unexpected behavior that is incredibly difficult to troubleshoot. This change adds a deprecation warning in the case where a user adds a property to a resource that the resource instance already responds to. If y'all are OK with this approach, I'll be happy to write up the deprecation doc for this for docs.chef.io. Signed-off-by: Adam Leff <adam@leff.co>
* | yum_repostiroy: Allow baseurl to be an array & allow fastestmirror_enabled falseupdate_yumTim Smith2017-01-051-1/+1
|/ | | | | | | | | Port two fixes that were made the yum cookbook yum_repository provider. https://github.com/chef-cookbooks/yum/pull/165 https://github.com/chef-cookbooks/yum/pull/162 Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #5474 from tas50/yum_propertyLamont Granquist2016-10-211-1/+1
|\ | | | | Use property vs. attribute in yum_repository
| * Use property vs. attribute in yum_propertyTim Smith2016-10-191-1/+1
| | | | | | | | | | | | We just auto replace the attribute call with a property call here. We might as well use the right one to start with. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Set yum_repository gpgcheck default to trueGrant Ridder2016-09-281-1/+1
|/ | | | Fixes https://github.com/chef/chef/issues/5397
* Fix makecache action name in yum_repositorymakecacheTim Smith2016-09-191-1/+1
| | | | | | | | | Our allowed action in the resource doesn't match the action name in the provider. makecache is the correct action not make_cache: https://github.com/chef-cookbooks/yum/blob/master/providers/repository.rb#L100 Signed-off-by: Tim Smith tsmith@chef.io
* Add back compatibility with old property namesTim Smith2016-09-141-2/+5
| | | | | | In yum 3.0 we changed the properties in the documentation, but never threw deprecation notices. Since there was no notice you would have no way to know to use the new properties. We need to add back compatibility with the old names and if we really want to kill them throw a proper deprecation warning. Signed-off-by: Tim Smith <tsmith@chef.io>
* More professional default nameTim Smith2016-09-141-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Allow the :delete action for yum_repositoryTim Smith2016-09-141-1/+1
| | | | | | We weren't allowing the actual action to work. Oops Signed-off-by: Tim Smith <tsmith@chef.io>
* Create and delete yum repositoriesThom May2016-08-241-0/+76
Signed-off-by: Thom May <thom@may.lt>