Add Sentry client recipe and role
Configures a local domain for Sentry in the hostsfile.
This commit is contained in:
parent
798ee3d1d8
commit
05d0a19b5f
@ -74,6 +74,7 @@
|
||||
"role[base]",
|
||||
"role[kvm_guest]",
|
||||
"role[ldap_client]",
|
||||
"role[sentry_client]",
|
||||
"role[akkounts]"
|
||||
]
|
||||
}
|
11
roles/sentry_client.rb
Normal file
11
roles/sentry_client.rb
Normal 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
|
||||
)
|
11
site-cookbooks/kosmos_sentry/recipes/client.rb
Normal file
11
site-cookbooks/kosmos_sentry/recipes/client.rb
Normal 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
|
Loading…
x
Reference in New Issue
Block a user