X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/faf8ae12e85eabb050b0f5eceb2cb67ad1de5261..5b4f815f6cd8433be1d66b8376b71452f974b225:/cookbooks/postgresql/resources/database.rb diff --git a/cookbooks/postgresql/resources/database.rb b/cookbooks/postgresql/resources/database.rb index 039c12467..1e8f3972c 100644 --- a/cookbooks/postgresql/resources/database.rb +++ b/cookbooks/postgresql/resources/database.rb @@ -17,14 +17,13 @@ # limitations under the License. # +default_action :create + actions :create, :drop attribute :database, :kind_of => String, :name_attribute => true attribute :cluster, :kind_of => String, :required => true attribute :owner, :kind_of => String, :required => true attribute :encoding, :kind_of => String, :default => "UTF8" - -def initialize(*args) - super - @action = :create -end +attribute :collation, :kind_of => String, :default => "en_GB.UTF8" +attribute :ctype, :kind_of => String, :default => "en_GB.UTF8"