mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-25 12:41:39 +00:00
Add Monitor role
Add a monitor role that is only viable for monitoring relevant tasks.
This commit is contained in:
parent
4d5bfb13bf
commit
a6809aae98
@ -68,6 +68,15 @@ _allowedbyrole = {
|
||||
'/node*/*/events/hardware/log',
|
||||
],
|
||||
},
|
||||
'Monitor': {
|
||||
'retrieve': [
|
||||
'/node*/health/hardware',
|
||||
'/node*/power/state',
|
||||
'/node*/sensors/*',
|
||||
'/nodes/',
|
||||
'/',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
_deniedbyrole = {
|
||||
|
@ -99,7 +99,7 @@ _attraliases = {
|
||||
'bmcpass': 'secret.hardwaremanagementpassword',
|
||||
'switchpass': 'secret.hardwaremanagementpassword',
|
||||
}
|
||||
_validroles = ('Administrator', 'Operator')
|
||||
_validroles = ('Administrator', 'Operator', 'Monitor')
|
||||
|
||||
def _mkpath(pathname):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user