Add Sentry client recipe and role
Configures a local domain for Sentry in the hostsfile.
This commit is contained in:
11
site-cookbooks/kosmos_sentry/recipes/client.rb
Normal file
11
site-cookbooks/kosmos_sentry/recipes/client.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Cookbook:: kosmos_sentry
|
||||
# Recipe:: client
|
||||
#
|
||||
|
||||
sentry_host = search(:node, "role:sentry").first["knife_zero"]["host"]
|
||||
|
||||
hostsfile_entry sentry_host do
|
||||
hostname 'sentry.kosmos.local'
|
||||
action :create
|
||||
end
|
||||
Reference in New Issue
Block a user