puppet-horizon/templates/_1499_load_balancer_settings.py.erb
Takashi Kajinami 2c33f9fb5e Fix syntax error in individual dashboard settings
Closes-Bug: #1965970
Change-Id: Ie866b35306cadb5e7dad53b0c05c84023c134c3b
2022-03-23 01:45:37 +09:00

41 lines
987 B
Plaintext

from django.conf import settings
settings.POLICY_FILES.update({
'load-balancer': '<%= @policy_file_real %>',
})
settings.DEFAULT_POLICY_FILES.update({
'load-balancer': 'default_policies/octavia.yaml',
})
# Sample
# settings.LOGGING['loggers'].update({
# 'openstack': {
# 'handlers': ['console'],
# 'level': 'DEBUG',
# 'propagate': False,
# }
# 'barbicanclient': {
# 'handlers': ['console'],
# 'level': 'DEBUG',
# 'propagate': False,
# }
# })
settings.LOGGING['loggers'].update({
'openstack': {
# 'handlers': ['console'],
'handlers': ['<%= @log_handlers.join("', '") %>'],
# level': 'DEBUG',
'level': '<%= @log_level %>',
'propagate': False,
}
'barbicanclient': {
# 'handlers': ['console'],
'handlers': ['<%= @log_handlers.join("', '") %>'],
# level': 'DEBUG',
'level': '<%= @log_level %>',
'propagate': False,
}
})