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
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
3 changed files with 24 additions and 1 deletions

View File

@ -74,6 +74,7 @@
"role[base]",
"role[kvm_guest]",
"role[ldap_client]",
"role[sentry_client]",
"role[akkounts]"
]
}
}

11
roles/sentry_client.rb Normal file
View File

@ -0,0 +1,11 @@
name "sentry_client"
default_run_list = %w(
kosmos_sentry::client
)
env_run_lists(
'_default' => default_run_list,
'development' => default_run_list,
'production' => default_run_list
)

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