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.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. # Set the host which will execute the shade modules
  20. # for the service setup. The host must already have
  21. # clouds.yaml properly configured.
  22. tacker_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
  23. # Set the package install state for distribution packages
  24. # Options are 'present' and 'latest'
  25. tacker_package_state: "latest"
  26. tacker_pip_package_state: "latest"
  27. tacker_git_repo: https://git.openstack.org/openstack/tacker
  28. tacker_git_install_branch: master
  29. tacker_developer_mode: false
  30. tacker_developer_constraints:
  31. - "git+{{ tacker_git_repo }}@{{ tacker_git_install_branch }}#egg=tacker"
  32. # TODO(odyssey4me):
  33. # This can be simplified once all the roles are using
  34. # python_venv_build. We can then switch to using a
  35. # set of constraints in pip.conf inside the venv,
  36. # perhaps prepared by giving a giving a list of
  37. # constraints to the role.
  38. tacker_pip_install_args: >-
  39. {{ tacker_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
  40. {{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''), '') }}
  41. {{ pip_install_options | default('') }}
  42. # Name of the virtual env to deploy into
  43. tacker_venv_tag: "{{ venv_tag | default('untagged') }}"
  44. tacker_bin: "/openstack/venvs/tacker-{{ tacker_venv_tag }}/bin"
  45. # Set the etc dir path where tacker is installed.
  46. # This is used for role access to the db migrations.
  47. # Example:
  48. # tacker_etc_dir: "/usr/local/etc/tacker"
  49. tacker_etc_dir: "/etc/tacker"
  50. # venv_download, even when true, will use the fallback method of building the
  51. # venv from scratch if the venv download fails.
  52. tacker_venv_download: "{{ not tacker_developer_mode | bool }}"
  53. tacker_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/tacker.tgz
  54. ## System info
  55. tacker_system_user_name: tacker
  56. tacker_system_group_name: tacker
  57. tacker_system_shell: /bin/false
  58. tacker_system_comment: tacker system user
  59. tacker_system_user_home: "/var/lib/{{ tacker_system_user_name }}"
  60. ## Configuration for Oslo Messaging
  61. # RPC
  62. tacker_oslomsg_rpc_host_group: "{{ oslomsg_rpc_host_group | default('rabbitmq_all') }}"
  63. tacker_oslomsg_rpc_setup_host: "{{ (tacker_oslomsg_rpc_host_group in groups) | ternary(groups[tacker_oslomsg_rpc_host_group][0], 'localhost') }}"
  64. tacker_oslomsg_rpc_transport: "{{ oslomsg_rpc_transport | default('rabbit') }}"
  65. tacker_oslomsg_rpc_servers: "{{ oslomsg_rpc_servers | default('127.0.0.1') }}"
  66. tacker_oslomsg_rpc_port: "{{ oslomsg_rpc_port | default('5672') }}"
  67. tacker_oslomsg_rpc_use_ssl: "{{ oslomsg_rpc_use_ssl | default(False) }}"
  68. tacker_oslomsg_rpc_userid: tacker
  69. tacker_oslomsg_rpc_vhost: /tacker
  70. # Notify
  71. tacker_oslomsg_notify_host_group: "{{ oslomsg_notify_host_group | default('rabbitmq_all') }}"
  72. tacker_oslomsg_notify_setup_host: "{{ (tacker_oslomsg_notify_host_group in groups) | ternary(groups[tacker_oslomsg_notify_host_group][0], 'localhost') }}"
  73. tacker_oslomsg_notify_transport: "{{ oslomsg_notify_transport | default('rabbit') }}"
  74. tacker_oslomsg_notify_servers: "{{ oslomsg_notify_servers | default('127.0.0.1') }}"
  75. tacker_oslomsg_notify_port: "{{ oslomsg_notify_port | default('5672') }}"
  76. tacker_oslomsg_notify_use_ssl: "{{ oslomsg_notify_use_ssl | default(False) }}"
  77. tacker_oslomsg_notify_userid: "{{ tacker_oslomsg_rpc_userid }}"
  78. tacker_oslomsg_notify_password: "{{ tacker_oslomsg_rpc_password }}"
  79. tacker_oslomsg_notify_vhost: "{{ tacker_oslomsg_rpc_vhost }}"
  80. ## (Qdrouterd) integration
  81. # TODO(ansmith): Change structure when more backends will be supported
  82. tacker_oslomsg_amqp1_enabled: "{{ tacker_oslomsg_rpc_transport == 'amqp' }}"
  83. tacker_optional_oslomsg_amqp1_pip_packages:
  84. - oslo.messaging[amqp1]
  85. ## Database info
  86. tacker_db_setup_host: "{{ ('galera_all' in groups) | ternary(groups['galera_all'][0], 'localhost') }}"
  87. tacker_galera_address: "{{ galera_address | default('127.0.0.1') }}"
  88. tacker_galera_database: tacker
  89. tacker_galera_user: tacker
  90. tacker_galera_use_ssl: "{{ galera_use_ssl | default(False) }}"
  91. tacker_galera_ssl_ca_cert: "{{ galera_ssl_ca_cert | default('/etc/ssl/certs/galera-ca.pem') }}"
  92. tacker_role_name: admin
  93. tacker_bind_address: 0.0.0.0
  94. tacker_service_port: 9890
  95. tacker_program_name: tacker-server
  96. ## Service Type and Data
  97. tacker_service_region: RegionOne
  98. tacker_service_name: tacker
  99. tacker_service_proto: http
  100. tacker_service_type: nfv-orchestration
  101. tacker_service_description: "tacker service"
  102. tacker_service_publicuri: "{{ tacker_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ tacker_service_port }}"
  103. tacker_service_publicurl: "{{ tacker_service_publicuri }}"
  104. tacker_service_internaluri: "{{ tacker_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ tacker_service_port }}"
  105. tacker_service_internalurl: "{{ tacker_service_internaluri }}"
  106. tacker_service_adminuri: "{{ tacker_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ tacker_service_port }}"
  107. tacker_service_adminurl: "{{ tacker_service_adminuri }}"
  108. tacker_service_registry_proto: "{{ tacker_service_proto }}"
  109. tacker_service_publicuri_proto: "{{ openstack_service_publicuri_proto | default(tacker_service_proto) }}"
  110. tacker_service_adminuri_proto: "{{ openstack_service_adminuri_proto | default(tacker_service_proto) }}"
  111. tacker_service_internaluri_proto: "{{ openstack_service_internaluri_proto | default(tacker_service_proto) }}"
  112. #NOTE: move password to tests/test-vars.yml
  113. tacker_service_password: password
  114. ## Keystone
  115. tacker_service_project_domain_id: default
  116. tacker_service_project_name: service
  117. tacker_service_user_domain_id: default
  118. tacker_service_user_name: tacker
  119. tacker_keystone_auth_plugin: password
  120. tacker_service_in_ldap: false
  121. ## Common pip packages
  122. tacker_pip_packages:
  123. - networking-sfc
  124. - osprofiler
  125. - PyMySQL
  126. - python-heatclient
  127. - python-tackerclient
  128. - tacker
  129. ## Service Names
  130. tacker_service_names:
  131. - "tacker-server"
  132. tacker_config_options: --config-file {{ tacker_etc_dir }}/tacker.conf
  133. ## tacker config
  134. tacker_heat_stack_retires: 60
  135. tacker_heat_stack_retry_wait: 5
  136. # heat service paramter for tacker.conf
  137. heat_service_adminurl: "{{ tacker_service_publicuri_proto }}://{{ external_lb_vip_address }}:8004/v1"
  138. #NOTE: these default should be updated approprietly
  139. # tacker-horizon uses this
  140. tackerclient_git_url: https://github.com/openstack/python-tackerclient.git
  141. tacker_git_branch: "master"
  142. # tacker horizon vars
  143. tacker_horizon_venv: "/openstack/venvs/horizon-{{ openstack_release }}"
  144. tacker_horizon_venv_bin: "{{ tacker_horizon_venv }}/bin"
  145. tacker_horizon_enable_path: "{{ tacker_horizon_venv }}/lib/python2.7/site-packages/openstack_dashboard/enabled"
  146. tacker_horizon_git: https://github.com/openstack/tacker-horizon.git
  147. tacker_horizon_dashboard_disable: "False"
  148. tacker_horizon_pip_packages:
  149. - python-tackerclient
  150. # This variable is used by the repo_build process to determine
  151. # which host group to check for members of before building the
  152. # pip packages required by this role. The value is picked up
  153. # by the py_pkgs lookup.
  154. tacker_role_project_group: tacker_all
  155. ## Tunable overrides
  156. tacker_tacker_conf_overrides: {}
  157. tacker_api_paste_ini_overrides: {}
  158. tacker_policy_overrides: {}
  159. tacker_rootwrap_overrides: {}