Files
chef/site-cookbooks/kosmos_sentry/recipes/client.rb
Râu Cao 05d0a19b5f Add Sentry client recipe and role
Configures a local domain for Sentry in the hostsfile.
2023-03-27 19:04:03 +02:00

12 lines
207 B
Ruby

#
# 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