]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/ohai/resources/plugin.rb
Enable unified mode for custom resources
[chef.git] / cookbooks / ohai / resources / plugin.rb
index 580d4912f56ef70686a598b17fcde2d665b4b8be..d5f1c42fe907218c8a00cde5ed3f99f86d5abfde 100644 (file)
 # limitations under the License.
 #
 
+unified_mode true
+
 default_action :create
 
 property :plugin, :kind_of => String, :name_property => true
-property :template, :kind_of => String, :required => true
+property :template, :kind_of => String, :required => [:create]
 
 action :create do
   ohai new_resource.plugin do