2
0
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:
Jarrod Johnson 2019-05-02 10:04:40 -04:00
parent 4d5bfb13bf
commit a6809aae98
2 changed files with 10 additions and 1 deletions

View File

@ -68,6 +68,15 @@ _allowedbyrole = {
'/node*/*/events/hardware/log',
],
},
'Monitor': {
'retrieve': [
'/node*/health/hardware',
'/node*/power/state',
'/node*/sensors/*',
'/nodes/',
'/',
],
}
}
_deniedbyrole = {

View File

@ -99,7 +99,7 @@ _attraliases = {
'bmcpass': 'secret.hardwaremanagementpassword',
'switchpass': 'secret.hardwaremanagementpassword',
}
_validroles = ('Administrator', 'Operator')
_validroles = ('Administrator', 'Operator', 'Monitor')
def _mkpath(pathname):
try: