X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1efc049dfc1cee42a2b13b8932274053aa129c07..97b22cb709e69073a375b323ed7760b8a2d4f891:/cookbooks/mysql/resources/database.rb?ds=sidebyside diff --git a/cookbooks/mysql/resources/database.rb b/cookbooks/mysql/resources/database.rb index 1cb81368c..69e4e795f 100644 --- a/cookbooks/mysql/resources/database.rb +++ b/cookbooks/mysql/resources/database.rb @@ -1,14 +1,14 @@ # -# Cookbook Name:: mysql +# Cookbook:: mysql # Resource:: mysql_database # -# Copyright 2013, OpenStreetMap Foundation +# Copyright:: 2013, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -17,9 +17,11 @@ # limitations under the License. # +unified_mode true + default_action :create -property :database, :kind_of => String, :name_attribute => true +property :database, :kind_of => String, :name_property => true property :permissions, :kind_of => Hash, :default => {} action :create do