Initial Chef repository
This commit is contained in:
13
cookbooks/mariadb/resources/configuration.rb
Normal file
13
cookbooks/mariadb/resources/configuration.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
#
|
||||
# Cookbook Name:: mariadb
|
||||
# Resource:: configuration
|
||||
#
|
||||
|
||||
actions :add, :remove
|
||||
default_action :add
|
||||
|
||||
# name of the extra conf file, used for .cnf filename
|
||||
attribute :conf_name, kind_of: String, name_attribute: true
|
||||
attribute :section, kind_of: String
|
||||
attribute :option, kind_of: Hash, default: {}
|
||||
attribute :cookbook, kind_of: String, default: nil
|
||||
22
cookbooks/mariadb/resources/replication.rb
Normal file
22
cookbooks/mariadb/resources/replication.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# Cookbook Name:: mariadb
|
||||
# Resource:: replication
|
||||
#
|
||||
|
||||
actions :add, :remove, :start, :stop
|
||||
default_action :add
|
||||
|
||||
# name of the extra conf file, used for .cnf filename
|
||||
attribute :connection_name, kind_of: String, name_attribute: true
|
||||
attribute :host, kind_of: [String, NilClass], default: nil
|
||||
attribute :port, kind_of: [String, NilClass], default: nil
|
||||
attribute :user, kind_of: [String, NilClass], default: nil
|
||||
attribute :password, kind_of: [String, NilClass], default: nil
|
||||
attribute :master_host, kind_of: [String, NilClass], default: nil
|
||||
attribute :master_user, kind_of: [String, NilClass], default: nil
|
||||
attribute :master_password, kind_of: [String, NilClass], default: nil
|
||||
attribute :master_connect_retry, kind_of: [String, NilClass], default: nil
|
||||
attribute :master_port, kind_of: [Integer, NilClass], default: nil
|
||||
attribute :master_log_pos, kind_of: [Integer, NilClass], default: nil
|
||||
attribute :master_log_file, kind_of: [String, NilClass], default: nil
|
||||
attribute :master_use_gtid, kind_of: String, default: 'no'
|
||||
Reference in New Issue
Block a user