puppet-horizon/templates/_1499_load_balancer_settings.py.erb
Takashi Kajinami c29622ee45 Add support for independent octavia-dashboard configurations
This change introduces the new horizon::dashboards::octavia class,
which allows users to manage the independent configuration file for
octavia dashboard (_1499_load_balancer_settings.py).

Change-Id: I54f7fb778bc2487bf977e23e193773d627d91dd9
2021-06-06 07:54:38 +09:00

41 lines
985 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,
}
})