Skip to content

Commit

Permalink
Require Package[sensu] in all config editing types
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed May 8, 2012
1 parent 2351f89 commit 0522d26
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_api_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ def initialize(*args)

defaultto 'localhost'
end

autorequire(:package) do
['sensu']
end
end
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_check_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ def initialize(*args)
newproperty(:subscribers, :array_matching => :all) do
desc ""
end

autorequire(:package) do
['sensu']
end
end
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_clean_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
newparam(:name) do
desc "This value has no effect, set it to what ever you want."
end

autorequire(:package) do
['sensu']
end
end
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_client_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ def initialize(*args)
newproperty(:subscriptions, :array_matching => :all) do
desc ""
end

autorequire(:package) do
['sensu']
end
end
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_dashboard_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ def initialize(*args)
newproperty(:password) do
desc "The password to use when connecting to the Sensu Dashboard"
end

autorequire(:package) do
['sensu']
end
end
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_handler_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ def initialize(*args)
newproperty(:command) do
desc ""
end

autorequire(:package) do
['sensu']
end
end
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_rabbitmq_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,8 @@ def initialize(*args)

defaultto '/sensu'
end

autorequire(:package) do
['sensu']
end
end
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_redis_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ def initialize(*args)

defaultto 'localhost'
end

autorequire(:package) do
['sensu']
end
end

0 comments on commit 0522d26

Please sign in to comment.