我想扩展“package”资源,并将其作为LWRP-cookbookname_package提供,以便从其他食谱中调用。
是否需要手动重写
package
resource
到
cookbookname/resources/package.rb
?
有没有一种方法可以简单地从Chef源代码中获取现有的代码,或者有没有唯一的方法可以作为翻译人员来维护所有这些代码?
allow_downgrade TrueClass, FalseClass # Yum, RPM packages only
arch String, Array # Yum packages only
default_release String # Apt packages only
flush_cache Array
gem_binary String
homebrew_user String, Integer # Homebrew packages only
notifies # see description
options String
package_name String, Array # defaults to 'name' if not specified
provider Chef::Provider::Package
response_file String # Apt packages only
response_file_variables Hash # Apt packages only
source String
subscribes # see description
timeout String, Integer
version String, Array
action Symbol # defaults to :install if not specified