X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/741593ee2bf203c9261f604d094e3d8e621698a8..9c716e8f505c97ab226ba3a73e3396e0d469349a:/cookbooks/squid/resources/fragment.rb?ds=sidebyside diff --git a/cookbooks/squid/resources/fragment.rb b/cookbooks/squid/resources/fragment.rb index 152a6d971..a418d6bcd 100644 --- a/cookbooks/squid/resources/fragment.rb +++ b/cookbooks/squid/resources/fragment.rb @@ -17,10 +17,12 @@ # limitations under the License. # +unified_mode true + default_action :create property :fragment, :kind_of => String, :name_property => true -property :template, :kind_of => String, :required => true +property :template, :kind_of => String, :required => [:create] property :variables, :kind_of => Hash, :default => {} action :create do @@ -28,7 +30,7 @@ action :create do source new_resource.template owner "root" group "root" - mode 0o644 + mode "644" variables new_resource.variables end end