Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -20,23 +20,26 @@
|
||||
actions :install, :remove
|
||||
default_action :install
|
||||
|
||||
attribute :user, :kind_of => String, :default => nil
|
||||
attribute :group, :kind_of => String, :default => nil
|
||||
attribute :commands, :kind_of => Array, :default => ['ALL']
|
||||
attribute :host, :kind_of => String, :default => 'ALL'
|
||||
attribute :runas, :kind_of => String, :default => 'ALL'
|
||||
attribute :nopasswd, :equal_to => [true, false], :default => false
|
||||
attribute :template, :kind_of => String, :default => nil
|
||||
attribute :variables, :kind_of => Hash, :default => nil
|
||||
attribute :defaults, :kind_of => Array, :default => []
|
||||
attribute :command_aliases, :kind_of => Array, :default => []
|
||||
attribute :user, kind_of: String, default: nil
|
||||
attribute :group, kind_of: String, default: nil
|
||||
attribute :commands, kind_of: Array, default: ['ALL']
|
||||
attribute :host, kind_of: String, default: 'ALL'
|
||||
attribute :runas, kind_of: String, default: 'ALL'
|
||||
attribute :nopasswd, equal_to: [true, false], default: false
|
||||
attribute :template, kind_of: String, default: nil
|
||||
attribute :variables, kind_of: Hash, default: nil
|
||||
attribute :defaults, kind_of: Array, default: []
|
||||
attribute :command_aliases, kind_of: Array, default: []
|
||||
attribute :setenv, equal_to: [true, false], default: false
|
||||
attribute :env_keep_add, kind_of: Array, default: []
|
||||
attribute :env_keep_subtract, kind_of: Array, default: []
|
||||
|
||||
# Set default for the supports attribute in initializer since it is
|
||||
# a 'reserved' attribute name
|
||||
def initialize(*args)
|
||||
super
|
||||
@action = :install
|
||||
@supports = { :report => true, :exception => true }
|
||||
@supports = { report: true, exception: true }
|
||||
end
|
||||
|
||||
state_attrs :commands,
|
||||
@@ -47,4 +50,6 @@ state_attrs :commands,
|
||||
:template,
|
||||
:user,
|
||||
:variables,
|
||||
:command_aliases
|
||||
:command_aliases,
|
||||
:env_keep_add,
|
||||
:env_keep_subtract
|
||||
|
||||
Reference in New Issue
Block a user