Use global service variables
Instead of overriding each service separatelly it might make sense for deployers to define some higher level variable that will be used first or fallback to default variable. Change-Id: I74376cc3c20df54663ffbec5daa7413853391714
This commit is contained in:
parent
13ef8fa191
commit
d6d0cd22ed
|
@ -22,13 +22,12 @@ debug: False
|
|||
aodh_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
|
||||
aodh_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((aodh_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
|
||||
|
||||
# Set the package install state for distribution and pip packages
|
||||
# Set the package install state for distribution packages
|
||||
# Options are 'present' and 'latest'
|
||||
aodh_package_state: "latest"
|
||||
aodh_pip_package_state: "latest"
|
||||
aodh_package_state: "{{ package_state | default('latest') }}"
|
||||
|
||||
# Set installation method.
|
||||
aodh_install_method: "source"
|
||||
aodh_install_method: "{{ service_install_method | default('source') }}"
|
||||
aodh_venv_python_executable: "{{ openstack_venv_python_executable | default('python2') }}"
|
||||
|
||||
## The git source/branch
|
||||
|
@ -62,7 +61,7 @@ aodh_db_type: "mysql+pymysql"
|
|||
aodh_galera_use_ssl: "{{ galera_use_ssl | default(False) }}"
|
||||
aodh_galera_ssl_ca_cert: "{{ galera_ssl_ca_cert | default('/etc/ssl/certs/galera-ca.pem') }}"
|
||||
aodh_connection_string: "{{ aodh_db_type }}://{{ aodh_database_user }}:{{ aodh_container_db_password }}@{{ aodh_db_address }}/{{ aodh_database_name }}?charset=utf8{% if aodh_galera_use_ssl | bool %}&ssl_ca={{ aodh_galera_ssl_ca_cert }}{% endif %}"
|
||||
aodh_galera_port: 3306
|
||||
aodh_galera_port: "{{ galera_port | default('3306') }}"
|
||||
|
||||
# Oslo Messaging
|
||||
# RPC
|
||||
|
@ -99,7 +98,7 @@ aodh_wsgi_processes: "{{ [[(ansible_processor_vcpus//ansible_processor_threads_p
|
|||
aodh_role_name: admin
|
||||
|
||||
## Service Type and Data
|
||||
aodh_service_region: RegionOne
|
||||
aodh_service_region: "{{ service_region | default('RegionOne') }}"
|
||||
aodh_service_endpoint_type: internalURL
|
||||
aodh_service_name: aodh
|
||||
aodh_service_bind_address: "{{ openstack_service_bind_address | default('0.0.0.0') }}"
|
||||
|
@ -121,7 +120,7 @@ aodh_service_internalurl: "{{ aodh_service_internaluri }}"
|
|||
aodh_service_adminuri: "{{ aodh_service_proto }}://{{ internal_lb_vip_address }}:{{ aodh_service_port }}"
|
||||
aodh_service_adminurl: "{{ aodh_service_adminuri }}"
|
||||
|
||||
aodh_service_in_ldap: false
|
||||
aodh_service_in_ldap: "{{ service_ldap_backend_enabled | default(False) }}"
|
||||
|
||||
# Common pip packages
|
||||
aodh_pip_packages:
|
||||
|
|
Loading…
Reference in New Issue