
With this change masakari-monitors will be installed on hosts which are in group masakari-monitor (supposed to be nova compute hosts) hostmonitor depends on pacemaker with corosync, which are implemented by https://github.com/mit-scripts/ansible-pacemaker-corosync Masakari api/engine config was simplified and unneccesary defaults were removed from it. Role now uses default ``systemd_service`` role for systemctl configuration Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk> Implements: blueprint masakari-ansible-plugin Change-Id: I334877c0111a45d3f3a74e7f56931786f4301713
58 lines
2.8 KiB
Django/Jinja
58 lines
2.8 KiB
Django/Jinja
[DEFAULT]
|
|
enabled_apis = masakari_api
|
|
transport_url = {{ masakari_oslomsg_rpc_transport }}://{% for host in masakari_oslomsg_rpc_servers.split(',') %}{{ masakari_oslomsg_rpc_userid }}:{{ masakari_oslomsg_rpc_password }}@{{ host }}:{{ masakari_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ masakari_oslomsg_rpc_vhost }}{% if (masakari_oslomsg_rpc_use_ssl | lower) | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
|
|
# Enable to specify listening IP other than default
|
|
masakari_api_listen = 0.0.0.0
|
|
# Enable to specify port other than default
|
|
masakari_api_listen_port = 15868
|
|
debug = False
|
|
log_dir = {{ masakari_log_dir }}
|
|
auth_strategy = keystone
|
|
notification_driver = taskflow_driver
|
|
# Nova endpoint
|
|
nova_catalog_admin_info = compute:nova:adminURL
|
|
nova_api_insecure = "{{ keystone_service_adminuri_insecure | default("false") }}"
|
|
# Priveleged credentials to interact with nova
|
|
os_privileged_user_tenant = {{ masakari_service_project_name }}
|
|
os_privileged_user_auth_url = {{ keystone_service_adminuri }}
|
|
os_privileged_user_name = {{ masakari_service_user_name }}
|
|
os_privileged_user_password = {{ masakari_service_password }}
|
|
service_down_time = 60
|
|
periodic_enable = true
|
|
use_ssl = false
|
|
|
|
[wsgi]
|
|
# The paste configuration file path
|
|
api_paste_config = {{ masakari_etc_dir }}/api-paste.ini
|
|
|
|
[keystone_authtoken]
|
|
auth_url = {{ keystone_service_adminuri }}
|
|
www_authenticate_uri = {{ keystone_service_internaluri }}
|
|
auth_type = password
|
|
project_domain_id = {{ masakari_service_user_domain_id }}
|
|
user_domain_id = {{ masakari_service_project_domain_id }}
|
|
project_name = {{ masakari_service_project_name }}
|
|
username = {{ masakari_service_user_name }}
|
|
password = {{ masakari_service_password }}
|
|
memcached_servers = {{ memcached_servers }}
|
|
memcache_security_strategy = ENCRYPT
|
|
memcache_secret_key = {{ memcached_encryption_key }}
|
|
service_token_roles_required = True
|
|
|
|
[database]
|
|
connection = mysql+pymysql://{{ masakari_galera_user }}:{{ masakari_container_mysql_password }}@{{ masakari_galera_address }}/{{ masakari_galera_database }}?charset=utf8{% if masakari_galera_use_ssl | bool %}&ssl_ca={{ masakari_galera_ssl_ca_cert }}{% endif %}
|
|
|
|
[host_failure]
|
|
evacuate_all_instances = true
|
|
add_reserved_host_to_aggregate = false
|
|
ignore_instances_in_error_state = false
|
|
|
|
[instance_failure]
|
|
process_all_instances = false
|
|
|
|
[oslo_messaging_rabbit]
|
|
ssl = {{ masakari_oslomsg_notify_use_ssl | bool }}
|
|
|
|
[oslo_messaging_notifications]
|
|
transport_url = {{ masakari_oslomsg_notify_transport }}://{% for host in masakari_oslomsg_notify_servers.split(',') %}{{ masakari_oslomsg_notify_userid }}:{{ masakari_oslomsg_notify_password }}@{{ host }}:{{ masakari_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ masakari_oslomsg_notify_vhost }}{% if (masakari_oslomsg_notify_use_ssl | lower) | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
|