Add Sentry client recipe and role

Configures a local domain for Sentry in the hostsfile.
This commit is contained in:
Râu Cao
2023-03-24 21:21:02 +07:00
parent 798ee3d1d8
commit 05d0a19b5f
3 changed files with 24 additions and 1 deletions

View 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