Add new Redis cookbook
This commit is contained in:
12
cookbooks/redisio/resources/configure.rb
Normal file
12
cookbooks/redisio/resources/configure.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
actions :run
|
||||
unified_mode true
|
||||
default_action :run
|
||||
|
||||
# Configuration attributes
|
||||
attribute :version, kind_of: String
|
||||
attribute :base_piddir, kind_of: String, default: '/var/run/redis'
|
||||
attribute :user, kind_of: String, default: 'redis'
|
||||
attribute :group, kind_of: String, default: 'redis'
|
||||
|
||||
attribute :default_settings, kind_of: Hash
|
||||
attribute :servers, kind_of: Array
|
||||
13
cookbooks/redisio/resources/install.rb
Normal file
13
cookbooks/redisio/resources/install.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
actions :run
|
||||
unified_mode true
|
||||
default_action :run
|
||||
|
||||
# Installation attributes
|
||||
attribute :version, kind_of: String
|
||||
attribute :download_url, kind_of: String
|
||||
attribute :download_dir, kind_of: String, default: Chef::Config[:file_cache_path]
|
||||
attribute :artifact_type, kind_of: String, default: 'tar.gz'
|
||||
attribute :base_name, kind_of: String, default: 'redis-'
|
||||
attribute :safe_install, kind_of: [TrueClass, FalseClass], default: true
|
||||
|
||||
attribute :install_dir, kind_of: String, default: nil
|
||||
11
cookbooks/redisio/resources/sentinel.rb
Normal file
11
cookbooks/redisio/resources/sentinel.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
actions :run
|
||||
unified_mode true
|
||||
default_action :run
|
||||
|
||||
# Configuration attributes
|
||||
attribute :version, kind_of: String
|
||||
attribute :base_piddir, kind_of: String, default: '/var/run/redis'
|
||||
attribute :user, kind_of: String, default: 'redis'
|
||||
|
||||
attribute :sentinel_defaults, kind_of: Hash
|
||||
attribute :sentinels, kind_of: Array
|
||||
Reference in New Issue
Block a user