Set up Sentry #478

Merged
greg merged 5 commits from feature/sentry into master 2023-03-28 20:13:29 +00:00
3 changed files with 24 additions and 1 deletions
Showing only changes of commit 05d0a19b5f - Show all commits

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