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.

main.yml 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. ---
  2. # (C)2016 Brocade Communications Systems, Inc.
  3. # 130 Holger Way, San Jose, CA 95134.
  4. # All rights reserved.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. ## Verbosity Options
  18. debug: False
  19. # Enable/Disable Ceilometer
  20. tacker_ceilometer_enabled: False
  21. # Set the host which will execute the shade modules
  22. # for the service setup. The host must already have
  23. # clouds.yaml properly configured.
  24. tacker_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
  25. # Set the package install state for distribution packages
  26. # Options are 'present' and 'latest'
  27. tacker_package_state: "latest"
  28. tacker_pip_package_state: "latest"
  29. tacker_git_repo: https://git.openstack.org/openstack/tacker
  30. tacker_git_install_branch: master
  31. tacker_developer_mode: false
  32. tacker_developer_constraints:
  33. - "git+{{ tacker_git_repo }}@{{ tacker_git_install_branch }}#egg=tacker"
  34. # TODO(odyssey4me):
  35. # This can be simplified once all the roles are using
  36. # python_venv_build. We can then switch to using a
  37. # set of constraints in pip.conf inside the venv,
  38. # perhaps prepared by giving a giving a list of
  39. # constraints to the role.
  40. tacker_pip_install_args: >-
  41. {{ tacker_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
  42. {{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''), '') }}
  43. {{ pip_install_options | default('') }}
  44. # Name of the virtual env to deploy into
  45. tacker_venv_tag: "{{ venv_tag | default('untagged') }}"
  46. tacker_bin: "/openstack/venvs/tacker-{{ tacker_venv_tag }}/bin"
  47. # Set the etc dir path where tacker is installed.
  48. # This is used for role access to the db migrations.
  49. # Example:
  50. # tacker_etc_dir: "/usr/local/etc/tacker"
  51. tacker_etc_dir: "/etc/tacker"
  52. # venv_download, even when true, will use the fallback method of building the
  53. # venv from scratch if the venv download fails.
  54. tacker_venv_download: "{{ not tacker_developer_mode | bool }}"
  55. tacker_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/tacker.tgz
  56. ## System info
  57. tacker_system_user_name: tacker
  58. tacker_system_group_name: tacker
  59. tacker_system_shell: /bin/false
  60. tacker_system_comment: tacker system user
  61. tacker_system_user_home: "/var/lib/{{ tacker_system_user_name }}"
  62. ## Configuration for Oslo Messaging
  63. # RPC
  64. tacker_oslomsg_rpc_host_group: "{{ oslomsg_rpc_host_group | default('rabbitmq_all') }}"
  65. tacker_oslomsg_rpc_setup_host: "{{ (tacker_oslomsg_rpc_host_group in groups) | ternary(groups[tacker_oslomsg_rpc_host_group][0], 'localhost') }}"
  66. tacker_oslomsg_rpc_transport: "{{ oslomsg_rpc_transport | default('rabbit') }}"
  67. tacker_oslomsg_rpc_servers: "{{ oslomsg_rpc_servers | default('127.0.0.1') }}"
  68. tacker_oslomsg_rpc_port: "{{ oslomsg_rpc_port | default('5672') }}"
  69. tacker_oslomsg_rpc_use_ssl: "{{ oslomsg_rpc_use_ssl | default(False) }}"
  70. tacker_oslomsg_rpc_userid: tacker
  71. tacker_oslomsg_rpc_vhost: /tacker
  72. # Notify
  73. tacker_oslomsg_notify_host_group: "{{ oslomsg_notify_host_group | default('rabbitmq_all') }}"
  74. tacker_oslomsg_notify_setup_host: "{{ (tacker_oslomsg_notify_host_group in groups) | ternary(groups[tacker_oslomsg_notify_host_group][0], 'localhost') }}"
  75. tacker_oslomsg_notify_transport: "{{ oslomsg_notify_transport | default('rabbit') }}"
  76. tacker_oslomsg_notify_servers: "{{ oslomsg_notify_servers | default('127.0.0.1') }}"
  77. tacker_oslomsg_notify_port: "{{ oslomsg_notify_port | default('5672') }}"
  78. tacker_oslomsg_notify_use_ssl: "{{ oslomsg_notify_use_ssl | default(False) }}"
  79. tacker_oslomsg_notify_userid: "{{ tacker_oslomsg_rpc_userid }}"
  80. tacker_oslomsg_notify_password: "{{ tacker_oslomsg_rpc_password }}"
  81. tacker_oslomsg_notify_vhost: "{{ tacker_oslomsg_rpc_vhost }}"
  82. ## (Qdrouterd) integration
  83. # TODO(ansmith): Change structure when more backends will be supported
  84. tacker_oslomsg_amqp1_enabled: "{{ tacker_oslomsg_rpc_transport == 'amqp' }}"
  85. tacker_optional_oslomsg_amqp1_pip_packages:
  86. - oslo.messaging[amqp1]
  87. ## Database info
  88. tacker_db_setup_host: "{{ ('galera_all' in groups) | ternary(groups['galera_all'][0], 'localhost') }}"
  89. tacker_galera_address: "{{ galera_address | default('127.0.0.1') }}"
  90. tacker_galera_database: tacker
  91. tacker_galera_user: tacker
  92. tacker_galera_use_ssl: "{{ galera_use_ssl | default(False) }}"
  93. tacker_galera_ssl_ca_cert: "{{ galera_ssl_ca_cert | default('/etc/ssl/certs/galera-ca.pem') }}"
  94. tacker_role_name: admin
  95. tacker_bind_address: 0.0.0.0
  96. tacker_service_port: 9890
  97. tacker_program_name: tacker-server
  98. ## Service Type and Data
  99. tacker_service_region: RegionOne
  100. tacker_service_name: tacker
  101. tacker_service_proto: http
  102. tacker_service_type: nfv-orchestration
  103. tacker_service_description: "tacker service"
  104. tacker_service_publicuri: "{{ tacker_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ tacker_service_port }}"
  105. tacker_service_publicurl: "{{ tacker_service_publicuri }}"
  106. tacker_service_internaluri: "{{ tacker_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ tacker_service_port }}"
  107. tacker_service_internalurl: "{{ tacker_service_internaluri }}"
  108. tacker_service_adminuri: "{{ tacker_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ tacker_service_port }}"
  109. tacker_service_adminurl: "{{ tacker_service_adminuri }}"
  110. tacker_service_registry_proto: "{{ tacker_service_proto }}"
  111. tacker_service_publicuri_proto: "{{ openstack_service_publicuri_proto | default(tacker_service_proto) }}"
  112. tacker_service_adminuri_proto: "{{ openstack_service_adminuri_proto | default(tacker_service_proto) }}"
  113. tacker_service_internaluri_proto: "{{ openstack_service_internaluri_proto | default(tacker_service_proto) }}"
  114. ## Barbican service
  115. barbican_keys_backend: false
  116. #NOTE: move password to tests/test-vars.yml
  117. tacker_service_password: password
  118. ## Keystone
  119. tacker_service_project_domain_id: default
  120. tacker_service_project_name: service
  121. tacker_service_user_domain_id: default
  122. tacker_service_user_name: tacker
  123. tacker_keystone_auth_plugin: password
  124. tacker_service_in_ldap: false
  125. ## Common pip packages
  126. tacker_pip_packages:
  127. - networking-sfc
  128. - osprofiler
  129. - PyMySQL
  130. - python-heatclient
  131. - python-tackerclient
  132. - tacker
  133. ## Service Names
  134. tacker_service_names:
  135. - "tacker-server"
  136. tacker_config_options: --config-file {{ tacker_etc_dir }}/tacker.conf
  137. ## tacker config
  138. tacker_heat_stack_retires: 60
  139. tacker_heat_stack_retry_wait: 5
  140. # heat service paramter for tacker.conf
  141. heat_service_adminurl: "{{ tacker_service_publicuri_proto }}://{{ external_lb_vip_address }}:8004/v1"
  142. # This variable is used by the repo_build process to determine
  143. # which host group to check for members of before building the
  144. # pip packages required by this role. The value is picked up
  145. # by the py_pkgs lookup.
  146. tacker_role_project_group: tacker_all
  147. ## Tunable overrides
  148. tacker_tacker_conf_overrides: {}
  149. tacker_api_paste_ini_overrides: {}
  150. tacker_policy_overrides: {}
  151. tacker_rootwrap_overrides: {}