Râu Cao e13b76658e
Add Sentry client recipe and role
Configures a local domain for Sentry in the hostsfile.
2023-03-24 21:21:02 +07: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