Role os_tacker for OpenStack-Ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tacker.conf.j2 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. # {{ ansible_managed }}
  2. [DEFAULT]
  3. debug = {{ debug }}
  4. # oslo.messaging rpc transport
  5. transport_url = {{ tacker_oslomsg_rpc_transport }}://{% for host in tacker_oslomsg_rpc_servers.split(',') %}{{ tacker_oslomsg_rpc_userid }}:{{ tacker_oslomsg_rpc_password }}@{{ host }}:{{ tacker_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ tacker_oslomsg_rpc_vhost }}{% if (tacker_oslomsg_rpc_use_ssl | lower) | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
  6. # Where to store Tacker state files. This directory must be writable by the
  7. # user executing the agent.
  8. state_path = {{ tacker_system_user_home }}
  9. # Where to store lock files
  10. lock_path = $state_path/lock
  11. policy_file = {{ tacker_etc_dir }}/policy.json
  12. # log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
  13. # log_date_format = %Y-%m-%d %H:%M:%S
  14. # use_syslog -> syslog
  15. # log_file and log_dir -> log_dir/log_file
  16. # (not log_file) and log_dir -> log_dir/{binary_name}.log
  17. # use_stderr -> stderr
  18. # (not user_stderr) and (not log_file) -> stdout
  19. # publish_errors -> notification system
  20. use_syslog = False
  21. # syslog_log_facility = LOG_USER
  22. # use_stderr = True
  23. # log_file =
  24. # log_dir =
  25. # publish_errors = False
  26. # Address to bind the API server to
  27. bind_host = {{ tacker_bind_address }}
  28. # Port the bind the API server to
  29. bind_port = {{ tacker_service_port }}
  30. # (ListOpt) List of service plugin entrypoints to be loaded from the
  31. # tacker.service_plugins namespace. See setup.cfg for the entrypoint names of
  32. # the plugins included in the tacker source distribution. For compatibility
  33. # with previous versions, the class name of a plugin can be specified instead
  34. # of its entrypoint name.
  35. #
  36. # service_plugins =
  37. # Example: service_plugins = router,firewall,lbaas,vpnaas,metering
  38. service_plugins = vnfm,nfvo
  39. # The strategy to be used for auth.
  40. # Supported values are 'keystone'(default), 'noauth'.
  41. auth_strategy = keystone
  42. # Notification_driver can be defined multiple times
  43. # Do nothing driver
  44. # notification_driver = tacker.openstack.common.notifier.no_op_notifier
  45. # Logging driver
  46. # notification_driver = tacker.openstack.common.notifier.log_notifier
  47. # RPC driver.
  48. notification_driver = tacker.openstack.common.notifier.rpc_notifier
  49. [agent]
  50. # Use "sudo tacker-rootwrap /etc/tacker/rootwrap.conf" to use the real
  51. # root filter facility.
  52. # Change to "sudo" to skip the filtering and just run the comand directly
  53. # root_helper = sudo
  54. root_helper = sudo {{ tacker_bin }}/tacker-rootwrap {{ tacker_etc_dir }}/rootwrap.conf
  55. [nfvo]
  56. vim_drivers = openstack
  57. [keystone_authtoken]
  58. signing_dir = /var/cache/tacker
  59. project_domain_name = {{ tacker_service_project_domain_id }}
  60. project_name = {{ tacker_service_project_name }}
  61. user_domain_name = {{ tacker_service_user_domain_id }}
  62. username = {{ tacker_service_user_name }}
  63. password = {{ tacker_service_password }}
  64. auth_url = {{ keystone_service_adminuri }}
  65. www_authenticate_uri = {{ keystone_service_internaluri }}
  66. auth_type = {{ tacker_keystone_auth_plugin }}
  67. [database]
  68. # This line MUST be changed to actually run the plugin.
  69. # Example:
  70. # connection = mysql://root:pass@127.0.0.1:3306/tacker
  71. # Replace 127.0.0.1 above with the IP address of the database used by the
  72. # main tacker server. (Leave it as is if the database runs on this host.)
  73. # connection = sqlite://
  74. # NOTE: In deployment the [database] section and its connection attribute may
  75. # be set in the corresponding core plugin '.ini' file. However, it is suggested
  76. # to put the [database] section and its connection attribute in this
  77. # configuration file.
  78. connection = mysql+pymysql://{{ tacker_galera_user }}:{{ tacker_container_mysql_password }}@{{ tacker_galera_address }}/{{ tacker_galera_database }}?charset=utf8{% if tacker_galera_use_ssl | bool %}&ssl_ca={{ tacker_galera_ssl_ca_cert }}{% endif %}
  79. # Specify drivers for mgmt
  80. mgmt_driver = noop,openwrt
  81. # Specify drivers for monitoring
  82. monitor_driver = ping, http_ping
  83. [vim_keys]
  84. use_barbican = {{ barbican_keys_backend | bool }}
  85. openstack = {{ tacker_etc_dir }}/vim/fernet_keys
  86. [oslo_messaging_rabbit]
  87. ssl = {{ tacker_oslomsg_notify_use_ssl | bool }}
  88. [oslo_messaging_notifications]
  89. driver = {% if tacker_ceilometer_enabled %}messagingv2{% else %}noop{% endif %}
  90. transport_url = {{ tacker_oslomsg_notify_transport }}://{% for host in tacker_oslomsg_notify_servers.split(',') %}{{ tacker_oslomsg_notify_userid }}:{{ tacker_oslomsg_notify_password }}@{{ host }}:{{ tacker_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ tacker_oslomsg_notify_vhost }}{% if (tacker_oslomsg_notify_use_ssl | lower) | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}