4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'manifests/backend/agent_resources.pp', line 4
class sensu::backend::agent_resources {
include sensu::backend
sensu_cluster_role { 'puppet:agent_entity_config':
ensure => 'present',
rules => [
{
'verbs' => ['*'],
'resources' => [
'entities',
],
},
{
'verbs' => ['get', 'list'],
'resources' => ['namespaces'],
},
],
}
sensu_cluster_role_binding { 'puppet:agent_entity_config':
ensure => 'present',
role_ref => {'type' => 'ClusterRole', 'name' => 'puppet:agent_entity_config'},
subjects => [
{
'type' => 'Group',
'name' => 'puppet:agent_entity_config',
},
],
}
sensu_user { 'puppet-agent_entity_config':
ensure => 'present',
disabled => false,
groups => 'puppet:agent_entity_config',
password => $sensu::_agent_entity_config_password,
}
}
|