Fix issues introduced by ansible-lint 6.6.0
mainly jinja spacing and jinja[invalid] related Change-Id: I6f52f2b0c1ef76de626657d79486d31e0f47f384
This commit is contained in:
parent
81d4d26279
commit
1aac65de0c
@ -769,11 +769,11 @@ monasca_enable_alerting_pipeline: True
|
|||||||
# directly to Elasticsearch.
|
# directly to Elasticsearch.
|
||||||
monasca_ingest_control_plane_logs: True
|
monasca_ingest_control_plane_logs: True
|
||||||
|
|
||||||
monasca_api_internal_base_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ monasca_api_port }}"
|
monasca_api_internal_base_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ monasca_api_port }}"
|
||||||
monasca_api_public_base_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ monasca_api_port }}"
|
monasca_api_public_base_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ monasca_api_port }}"
|
||||||
|
|
||||||
monasca_log_api_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ monasca_log_api_port }}"
|
monasca_log_api_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ monasca_log_api_port }}"
|
||||||
monasca_log_api_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ monasca_log_api_port }}"
|
monasca_log_api_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ monasca_log_api_port }}"
|
||||||
|
|
||||||
# The OpenStack username used by the Monasca Agent and the Fluentd Monasca
|
# The OpenStack username used by the Monasca Agent and the Fluentd Monasca
|
||||||
# plugin to post logs and metrics from the control plane to Monasca.
|
# plugin to post logs and metrics from the control plane to Monasca.
|
||||||
|
@ -118,7 +118,7 @@ aodh_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
aodh_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
aodh_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
aodh_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
aodh_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
aodh_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
aodh_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
aodh_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ aodh_api_listen_port }}"]
|
aodh_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ aodh_api_listen_port }}"]
|
||||||
aodh_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
aodh_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
aodh_api_healthcheck:
|
aodh_api_healthcheck:
|
||||||
interval: "{{ aodh_api_healthcheck_interval }}"
|
interval: "{{ aodh_api_healthcheck_interval }}"
|
||||||
|
@ -87,7 +87,7 @@ barbican_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
barbican_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
barbican_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
barbican_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
barbican_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
barbican_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
barbican_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
barbican_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if barbican_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ barbican_api_listen_port }}"]
|
barbican_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if barbican_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ barbican_api_listen_port }}"]
|
||||||
barbican_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
barbican_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
barbican_api_healthcheck:
|
barbican_api_healthcheck:
|
||||||
interval: "{{ barbican_api_healthcheck_interval }}"
|
interval: "{{ barbican_api_healthcheck_interval }}"
|
||||||
|
@ -103,7 +103,7 @@ cinder_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
cinder_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
cinder_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
cinder_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
cinder_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
cinder_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
cinder_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
cinder_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if cinder_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ cinder_api_listen_port }}"]
|
cinder_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if cinder_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ cinder_api_listen_port }}"]
|
||||||
cinder_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
cinder_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
cinder_api_healthcheck:
|
cinder_api_healthcheck:
|
||||||
interval: "{{ cinder_api_healthcheck_interval }}"
|
interval: "{{ cinder_api_healthcheck_interval }}"
|
||||||
|
@ -83,7 +83,7 @@ cloudkitty_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
cloudkitty_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
cloudkitty_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
cloudkitty_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
cloudkitty_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
cloudkitty_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
cloudkitty_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
cloudkitty_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ cloudkitty_api_port }}"]
|
cloudkitty_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ cloudkitty_api_port }}"]
|
||||||
cloudkitty_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
cloudkitty_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
cloudkitty_api_healthcheck:
|
cloudkitty_api_healthcheck:
|
||||||
interval: "{{ cloudkitty_api_healthcheck_interval }}"
|
interval: "{{ cloudkitty_api_healthcheck_interval }}"
|
||||||
|
@ -220,8 +220,8 @@
|
|||||||
|
|
||||||
- name: Ensure RabbitMQ Erlang cookie exists
|
- name: Ensure RabbitMQ Erlang cookie exists
|
||||||
become: true
|
become: true
|
||||||
copy:
|
template:
|
||||||
content: "{{ rabbitmq_cluster_cookie }}"
|
src: "rabbitmq-erlang.cookie.j2"
|
||||||
dest: "{{ node_config_directory }}/kolla-toolbox/rabbitmq-erlang.cookie"
|
dest: "{{ node_config_directory }}/kolla-toolbox/rabbitmq-erlang.cookie"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
when:
|
when:
|
||||||
|
1
ansible/roles/common/templates/rabbitmq-erlang.cookie.j2
Normal file
1
ansible/roles/common/templates/rabbitmq-erlang.cookie.j2
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ rabbitmq_cluster_cookie }}
|
@ -72,7 +72,7 @@ cyborg_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
cyborg_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
cyborg_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
cyborg_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
cyborg_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
cyborg_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
cyborg_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
cyborg_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ cyborg_api_port }}"]
|
cyborg_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ cyborg_api_port }}"]
|
||||||
cyborg_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
cyborg_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
cyborg_api_healthcheck:
|
cyborg_api_healthcheck:
|
||||||
interval: "{{ cyborg_api_healthcheck_interval }}"
|
interval: "{{ cyborg_api_healthcheck_interval }}"
|
||||||
|
@ -137,7 +137,7 @@ designate_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
designate_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
designate_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
designate_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
designate_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
designate_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
designate_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
designate_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ designate_api_listen_port }}"]
|
designate_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ designate_api_listen_port }}"]
|
||||||
designate_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
designate_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
designate_api_healthcheck:
|
designate_api_healthcheck:
|
||||||
interval: "{{ designate_api_healthcheck_interval }}"
|
interval: "{{ designate_api_healthcheck_interval }}"
|
||||||
|
@ -17,19 +17,19 @@
|
|||||||
destroy_include_dev: "{{ destroy_include_dev }}"
|
destroy_include_dev: "{{ destroy_include_dev }}"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: disable octavia-interface service
|
- name: Disable octavia-interface service
|
||||||
service:
|
service:
|
||||||
name: octavia-interface
|
name: octavia-interface
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: remove octavia-interface service file
|
- name: Remove octavia-interface service file
|
||||||
file:
|
file:
|
||||||
path: /etc/systemd/system/octavia-interface.service
|
path: /etc/systemd/system/octavia-interface.service
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: remove dhclient.conf
|
- name: Remove dhclient.conf
|
||||||
file:
|
file:
|
||||||
path: /etc/dhcp/octavia-dhclient.conf
|
path: /etc/dhcp/octavia-dhclient.conf
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -36,7 +36,7 @@ elasticsearch_enable_keystone_registration: False
|
|||||||
|
|
||||||
elasticsearch_cluster_name: "kolla_logging"
|
elasticsearch_cluster_name: "kolla_logging"
|
||||||
es_heap_size: "1g"
|
es_heap_size: "1g"
|
||||||
es_java_opts: "{% if es_heap_size %}-Xms{{ es_heap_size }} -Xmx{{ es_heap_size }}{%endif%} -Dlog4j2.formatMsgNoLookups=true"
|
es_java_opts: "{% if es_heap_size %}-Xms{{ es_heap_size }} -Xmx{{ es_heap_size }}{% endif %} -Dlog4j2.formatMsgNoLookups=true"
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Elasticsearch Curator
|
# Elasticsearch Curator
|
||||||
@ -62,7 +62,7 @@ elasticsearch_curator_dry_run: false
|
|||||||
|
|
||||||
# Index prefix pattern. Any indices matching this regex will
|
# Index prefix pattern. Any indices matching this regex will
|
||||||
# be managed by Curator.
|
# be managed by Curator.
|
||||||
elasticsearch_curator_index_pattern: "^{{ '(monasca|' + kibana_log_prefix + ')' if enable_monasca|bool else kibana_log_prefix }}-.*" # noqa var-spacing
|
elasticsearch_curator_index_pattern: "^{{ '(monasca|' + kibana_log_prefix + ')' if enable_monasca | bool else kibana_log_prefix }}-.*" # noqa jinja[spacing]
|
||||||
|
|
||||||
# Duration after which an index is staged for deletion. This is
|
# Duration after which an index is staged for deletion. This is
|
||||||
# implemented by closing the index. Whilst in this state the index
|
# implemented by closing the index. Whilst in this state the index
|
||||||
@ -103,7 +103,7 @@ elasticsearch_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
elasticsearch_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
elasticsearch_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
elasticsearch_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
elasticsearch_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
elasticsearch_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
elasticsearch_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
elasticsearch_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ elasticsearch_port }}"]
|
elasticsearch_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ elasticsearch_port }}"]
|
||||||
elasticsearch_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
elasticsearch_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
elasticsearch_healthcheck:
|
elasticsearch_healthcheck:
|
||||||
interval: "{{ elasticsearch_healthcheck_interval }}"
|
interval: "{{ elasticsearch_healthcheck_interval }}"
|
||||||
|
@ -16,10 +16,10 @@ etcd_services:
|
|||||||
ETCD_INITIAL_CLUSTER_STATE: "new"
|
ETCD_INITIAL_CLUSTER_STATE: "new"
|
||||||
ETCD_OUT_FILE: "/var/log/kolla/etcd/etcd.log"
|
ETCD_OUT_FILE: "/var/log/kolla/etcd/etcd.log"
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
ETCD_CERT_FILE: "{% if etcd_enable_tls | bool %}/etc/etcd/certs/etcd-cert.pem{% endif %}"
|
ETCD_CERT_FILE: "{% if etcd_enable_tls | bool %}/etc/etcd/certs/etcd-cert.pem{% endif %}"
|
||||||
ETCD_KEY_FILE: "{% if etcd_enable_tls | bool %}/etc/etcd/certs/etcd-key.pem{% endif %}"
|
ETCD_KEY_FILE: "{% if etcd_enable_tls | bool %}/etc/etcd/certs/etcd-key.pem{% endif %}"
|
||||||
ETCD_PEER_CERT_FILE: "{% if etcd_enable_tls | bool %}/etc/etcd/certs/etcd-cert.pem{% endif %}"
|
ETCD_PEER_CERT_FILE: "{% if etcd_enable_tls | bool %}/etc/etcd/certs/etcd-cert.pem{% endif %}"
|
||||||
ETCD_PEER_KEY_FILE: "{% if etcd_enable_tls | bool %}/etc/etcd/certs/etcd-key.pem{% endif %}"
|
ETCD_PEER_KEY_FILE: "{% if etcd_enable_tls | bool %}/etc/etcd/certs/etcd-key.pem{% endif %}"
|
||||||
image: "{{ etcd_image_full }}"
|
image: "{{ etcd_image_full }}"
|
||||||
volumes: "{{ etcd_default_volumes + etcd_extra_volumes }}"
|
volumes: "{{ etcd_default_volumes + etcd_extra_volumes }}"
|
||||||
dimensions: "{{ etcd_dimensions }}"
|
dimensions: "{{ etcd_dimensions }}"
|
||||||
|
@ -145,7 +145,7 @@ glance_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
glance_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
glance_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
glance_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
glance_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
glance_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
glance_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
glance_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{% if glance_enable_tls_backend | bool %}localhost{% else %}{{ api_interface_address | put_address_in_context('url') }}{% endif %}:{{ glance_api_listen_port }}"]
|
glance_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{% if glance_enable_tls_backend | bool %}localhost{% else %}{{ api_interface_address | put_address_in_context('url') }}{% endif %}:{{ glance_api_listen_port }}"]
|
||||||
glance_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
glance_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
glance_api_healthcheck:
|
glance_api_healthcheck:
|
||||||
interval: "{{ glance_api_healthcheck_interval }}"
|
interval: "{{ glance_api_healthcheck_interval }}"
|
||||||
@ -158,7 +158,7 @@ glance_tls_proxy_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
glance_tls_proxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
glance_tls_proxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
glance_tls_proxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
glance_tls_proxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
glance_tls_proxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
glance_tls_proxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
glance_tls_proxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl -u {{ haproxy_user }}:{{ haproxy_password }} {{ api_interface_address | put_address_in_context('url') }}:{{ glance_tls_proxy_stats_port }}"]
|
glance_tls_proxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl -u {{ haproxy_user }}:{{ haproxy_password }} {{ api_interface_address | put_address_in_context('url') }}:{{ glance_tls_proxy_stats_port }}"]
|
||||||
glance_tls_proxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
glance_tls_proxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
glance_tls_proxy_healthcheck:
|
glance_tls_proxy_healthcheck:
|
||||||
interval: "{{ glance_tls_proxy_healthcheck_interval }}"
|
interval: "{{ glance_tls_proxy_healthcheck_interval }}"
|
||||||
|
@ -90,7 +90,7 @@ gnocchi_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
gnocchi_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
gnocchi_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
gnocchi_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
gnocchi_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
gnocchi_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
gnocchi_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
gnocchi_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ gnocchi_api_listen_port }}"]
|
gnocchi_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ gnocchi_api_listen_port }}"]
|
||||||
gnocchi_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
gnocchi_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
gnocchi_api_healthcheck:
|
gnocchi_api_healthcheck:
|
||||||
interval: "{{ gnocchi_api_healthcheck_interval }}"
|
interval: "{{ gnocchi_api_healthcheck_interval }}"
|
||||||
|
@ -101,7 +101,7 @@ heat_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
heat_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
heat_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
heat_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
heat_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
heat_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
heat_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
heat_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if heat_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ heat_api_listen_port }}"]
|
heat_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if heat_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ heat_api_listen_port }}"]
|
||||||
heat_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
heat_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
heat_api_healthcheck:
|
heat_api_healthcheck:
|
||||||
interval: "{{ heat_api_healthcheck_interval }}"
|
interval: "{{ heat_api_healthcheck_interval }}"
|
||||||
@ -114,7 +114,7 @@ heat_api_cfn_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
heat_api_cfn_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
heat_api_cfn_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
heat_api_cfn_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
heat_api_cfn_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
heat_api_cfn_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
heat_api_cfn_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
heat_api_cfn_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if heat_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ heat_api_cfn_listen_port }}"]
|
heat_api_cfn_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if heat_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ heat_api_cfn_listen_port }}"]
|
||||||
heat_api_cfn_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
heat_api_cfn_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
heat_api_cfn_healthcheck:
|
heat_api_cfn_healthcheck:
|
||||||
interval: "{{ heat_api_cfn_healthcheck_interval }}"
|
interval: "{{ heat_api_cfn_healthcheck_interval }}"
|
||||||
|
@ -17,7 +17,7 @@ horizon_services:
|
|||||||
ENABLE_MASAKARI: "{{ 'yes' if enable_horizon_masakari | bool else 'no' }}"
|
ENABLE_MASAKARI: "{{ 'yes' if enable_horizon_masakari | bool else 'no' }}"
|
||||||
ENABLE_MISTRAL: "{{ 'yes' if enable_horizon_mistral | bool else 'no' }}"
|
ENABLE_MISTRAL: "{{ 'yes' if enable_horizon_mistral | bool else 'no' }}"
|
||||||
ENABLE_MONASCA: "{{ 'yes' if enable_horizon_monasca | bool else 'no' }}"
|
ENABLE_MONASCA: "{{ 'yes' if enable_horizon_monasca | bool else 'no' }}"
|
||||||
ENABLE_MURANO: "{{ 'yes' if enable_horizon_murano | bool else 'no' }}"
|
ENABLE_MURANO: "{{ 'yes' if enable_horizon_murano | bool else 'no' }}"
|
||||||
ENABLE_NEUTRON_VPNAAS: "{{ 'yes' if enable_horizon_neutron_vpnaas | bool else 'no' }}"
|
ENABLE_NEUTRON_VPNAAS: "{{ 'yes' if enable_horizon_neutron_vpnaas | bool else 'no' }}"
|
||||||
ENABLE_OCTAVIA: "{{ 'yes' if enable_horizon_octavia | bool else 'no' }}"
|
ENABLE_OCTAVIA: "{{ 'yes' if enable_horizon_octavia | bool else 'no' }}"
|
||||||
ENABLE_SAHARA: "{{ 'yes' if enable_horizon_sahara | bool else 'no' }}"
|
ENABLE_SAHARA: "{{ 'yes' if enable_horizon_sahara | bool else 'no' }}"
|
||||||
@ -111,7 +111,7 @@ horizon_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
horizon_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
horizon_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
horizon_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
horizon_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
horizon_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
horizon_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
horizon_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if horizon_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ horizon_listen_port }}"]
|
horizon_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if horizon_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ horizon_listen_port }}"]
|
||||||
horizon_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
horizon_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
horizon_healthcheck:
|
horizon_healthcheck:
|
||||||
interval: "{{ horizon_healthcheck_interval }}"
|
interval: "{{ horizon_healthcheck_interval }}"
|
||||||
|
@ -149,7 +149,7 @@ ironic_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
ironic_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
ironic_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
ironic_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
ironic_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
ironic_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
ironic_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
ironic_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ ironic_api_listen_port }}"]
|
ironic_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ ironic_api_listen_port }}"]
|
||||||
ironic_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
ironic_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
ironic_api_healthcheck:
|
ironic_api_healthcheck:
|
||||||
interval: "{{ ironic_api_healthcheck_interval }}"
|
interval: "{{ ironic_api_healthcheck_interval }}"
|
||||||
|
@ -114,7 +114,7 @@ keystone_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
keystone_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
keystone_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
keystone_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
keystone_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
keystone_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
keystone_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
keystone_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if keystone_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ keystone_public_listen_port }}"]
|
keystone_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if keystone_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ keystone_public_listen_port }}"]
|
||||||
keystone_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
keystone_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
keystone_healthcheck:
|
keystone_healthcheck:
|
||||||
interval: "{{ keystone_healthcheck_interval }}"
|
interval: "{{ keystone_healthcheck_interval }}"
|
||||||
@ -224,7 +224,7 @@ keystone_host_federation_oidc_attribute_mappings_folder: "{{ node_config_directo
|
|||||||
# These variables are used to define multiple trusted Horizon dashboards.
|
# These variables are used to define multiple trusted Horizon dashboards.
|
||||||
# keystone_trusted_dashboards: ['<https://dashboardServerOne/auth/websso/>', '<https://dashboardServerTwo/auth/websso/>', '<https://dashboardServerN/auth/websso/>']
|
# keystone_trusted_dashboards: ['<https://dashboardServerOne/auth/websso/>', '<https://dashboardServerTwo/auth/websso/>', '<https://dashboardServerN/auth/websso/>']
|
||||||
keystone_trusted_dashboards: "{{ ['%s://%s/auth/websso/' % (public_protocol, kolla_external_fqdn), '%s/auth/websso/' % (horizon_public_endpoint)] if enable_horizon | bool else [] }}"
|
keystone_trusted_dashboards: "{{ ['%s://%s/auth/websso/' % (public_protocol, kolla_external_fqdn), '%s/auth/websso/' % (horizon_public_endpoint)] if enable_horizon | bool else [] }}"
|
||||||
keystone_enable_federation_openid: "{{ enable_keystone_federation | bool and keystone_identity_providers | selectattr('protocol','equalto','openid') | list | count > 0 }}"
|
keystone_enable_federation_openid: "{{ enable_keystone_federation | bool and keystone_identity_providers | selectattr('protocol', 'equalto', 'openid') | list | count > 0 }}"
|
||||||
keystone_should_remove_attribute_mappings: False
|
keystone_should_remove_attribute_mappings: False
|
||||||
keystone_should_remove_identity_providers: False
|
keystone_should_remove_identity_providers: False
|
||||||
keystone_federation_oidc_response_type: "id_token"
|
keystone_federation_oidc_response_type: "id_token"
|
||||||
|
@ -15,5 +15,4 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
delegate_to: >-
|
delegate_to: >-
|
||||||
{% if groups['keystone_fernet_running'] is defined -%}
|
{% if groups['keystone_fernet_running'] is defined -%}
|
||||||
{{ groups['keystone_fernet_running'][0] }}
|
{{ groups['keystone_fernet_running'][0] }}{%- else -%}{{ groups['keystone'][0] }}{%- endif %}
|
||||||
{%- else -%}{{ groups['keystone'][0] }}{%- endif %}
|
|
||||||
|
@ -46,7 +46,7 @@ kibana_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
kibana_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
kibana_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
kibana_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
kibana_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
kibana_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
kibana_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
kibana_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ kibana_server_port }}"]
|
kibana_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ kibana_server_port }}"]
|
||||||
kibana_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
kibana_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
kibana_healthcheck:
|
kibana_healthcheck:
|
||||||
interval: "{{ kibana_healthcheck_interval }}"
|
interval: "{{ kibana_healthcheck_interval }}"
|
||||||
|
@ -64,7 +64,7 @@ haproxy_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
haproxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
haproxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
haproxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
haproxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
haproxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
haproxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
haproxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ haproxy_monitor_port }}"]
|
haproxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ haproxy_monitor_port }}"]
|
||||||
haproxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
haproxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
haproxy_healthcheck:
|
haproxy_healthcheck:
|
||||||
interval: "{{ haproxy_healthcheck_interval }}"
|
interval: "{{ haproxy_healthcheck_interval }}"
|
||||||
|
@ -101,16 +101,15 @@
|
|||||||
- haproxy_enable_external_vip | bool
|
- haproxy_enable_external_vip | bool
|
||||||
- not hostvars[inventory_hostname].ansible_facts[kolla_external_vip_interface]['active']
|
- not hostvars[inventory_hostname].ansible_facts[kolla_external_vip_interface]['active']
|
||||||
|
|
||||||
|
# NOTE(hrw): let assume that each supported host OS has ping with ipv4/v6 support
|
||||||
- name: Checking if kolla_internal_vip_address and kolla_external_vip_address are not pingable from any node
|
- name: Checking if kolla_internal_vip_address and kolla_external_vip_address are not pingable from any node
|
||||||
command: "{{ item.command }} -c 3 {{ item.address }}"
|
command: "ping -c 3 {{ item }}"
|
||||||
register: ping_output
|
register: ping_output
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: ping_output.rc != 1
|
failed_when: ping_output.rc != 1
|
||||||
with_items:
|
with_items:
|
||||||
- address: "{{ kolla_internal_vip_address }}"
|
- "{{ kolla_internal_vip_address }}"
|
||||||
command: "{{ 'ping' if kolla_internal_vip_address | ipv4 else 'ping6' }}"
|
- "{{ kolla_external_vip_address }}"
|
||||||
- address: "{{ kolla_external_vip_address }}"
|
|
||||||
command: "{{ 'ping' if kolla_external_vip_address | ipv4 else 'ping6' }}"
|
|
||||||
when:
|
when:
|
||||||
- enable_keepalived | bool
|
- enable_keepalived | bool
|
||||||
- keepalived_vip_prechecks
|
- keepalived_vip_prechecks
|
||||||
@ -195,7 +194,7 @@
|
|||||||
|
|
||||||
- name: Getting haproxy stat
|
- name: Getting haproxy stat
|
||||||
become: true
|
become: true
|
||||||
shell: echo "show stat" | docker exec -i haproxy socat unix-connect:/var/lib/kolla/haproxy/haproxy.sock stdio # noqa 306
|
shell: echo "show stat" | docker exec -i haproxy socat unix-connect:/var/lib/kolla/haproxy/haproxy.sock stdio # noqa risky-shell-pipe
|
||||||
register: haproxy_stat_shell
|
register: haproxy_stat_shell
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: container_facts['haproxy'] is defined
|
when: container_facts['haproxy'] is defined
|
||||||
|
@ -82,7 +82,7 @@ magnum_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
magnum_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
magnum_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
magnum_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
magnum_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
magnum_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
magnum_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
magnum_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ magnum_api_port }}"]
|
magnum_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ magnum_api_port }}"]
|
||||||
magnum_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
magnum_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
magnum_api_healthcheck:
|
magnum_api_healthcheck:
|
||||||
interval: "{{ magnum_api_healthcheck_interval }}"
|
interval: "{{ magnum_api_healthcheck_interval }}"
|
||||||
|
@ -98,7 +98,7 @@ manila_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
manila_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
manila_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
manila_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
manila_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
manila_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
manila_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
manila_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ manila_api_port }}"]
|
manila_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ manila_api_port }}"]
|
||||||
manila_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
manila_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
manila_api_healthcheck:
|
manila_api_healthcheck:
|
||||||
interval: "{{ manila_api_healthcheck_interval }}"
|
interval: "{{ manila_api_healthcheck_interval }}"
|
||||||
|
@ -77,8 +77,8 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Writing hostname of host with the largest seqno to temp file
|
- name: Writing hostname of host with the largest seqno to temp file
|
||||||
copy:
|
template:
|
||||||
content: "{{ inventory_hostname }}"
|
src: "hostname.j2"
|
||||||
dest: "{{ mariadb_recover_tmp_file_path }}"
|
dest: "{{ mariadb_recover_tmp_file_path }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
1
ansible/roles/mariadb/templates/hostname.j2
Normal file
1
ansible/roles/mariadb/templates/hostname.j2
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ inventory_hostname }}
|
@ -96,7 +96,7 @@ mistral_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
mistral_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
mistral_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
mistral_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
mistral_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
mistral_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
mistral_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
mistral_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ mistral_api_port }}"]
|
mistral_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ mistral_api_port }}"]
|
||||||
mistral_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
mistral_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
mistral_api_healthcheck:
|
mistral_api_healthcheck:
|
||||||
interval: "{{ mistral_api_healthcheck_interval }}"
|
interval: "{{ mistral_api_healthcheck_interval }}"
|
||||||
|
@ -31,25 +31,24 @@ neutron_services:
|
|||||||
KOLLA_LEGACY_IPTABLES: "{{ neutron_legacy_iptables | bool | lower }}"
|
KOLLA_LEGACY_IPTABLES: "{{ neutron_legacy_iptables | bool | lower }}"
|
||||||
host_in_groups: >-
|
host_in_groups: >-
|
||||||
{{
|
{{
|
||||||
( inventory_hostname in groups['compute']
|
(inventory_hostname in groups['compute']
|
||||||
or (enable_manila_backend_generic | bool and inventory_hostname in groups['manila-share'])
|
or (enable_manila_backend_generic | bool and inventory_hostname in groups['manila-share'])
|
||||||
or inventory_hostname in groups['neutron-dhcp-agent']
|
or inventory_hostname in groups['neutron-dhcp-agent']
|
||||||
or inventory_hostname in groups['neutron-l3-agent']
|
or inventory_hostname in groups['neutron-l3-agent']
|
||||||
or inventory_hostname in groups['neutron-metadata-agent']
|
or inventory_hostname in groups['neutron-metadata-agent']
|
||||||
and not enable_nova_fake | bool
|
and not enable_nova_fake | bool)
|
||||||
) or
|
or
|
||||||
( inventory_hostname in groups['neutron-dhcp-agent']
|
(inventory_hostname in groups['neutron-dhcp-agent']
|
||||||
or inventory_hostname in groups['neutron-l3-agent']
|
or inventory_hostname in groups['neutron-l3-agent']
|
||||||
or inventory_hostname in groups['neutron-metadata-agent']
|
or inventory_hostname in groups['neutron-metadata-agent']
|
||||||
and enable_nova_fake | bool
|
and enable_nova_fake | bool)
|
||||||
)
|
|
||||||
}}
|
}}
|
||||||
volumes: "{{ neutron_openvswitch_agent_default_volumes + neutron_openvswitch_agent_extra_volumes }}"
|
volumes: "{{ neutron_openvswitch_agent_default_volumes + neutron_openvswitch_agent_extra_volumes }}"
|
||||||
dimensions: "{{ neutron_openvswitch_agent_dimensions }}"
|
dimensions: "{{ neutron_openvswitch_agent_dimensions }}"
|
||||||
healthcheck: "{{ neutron_openvswitch_agent_healthcheck }}"
|
healthcheck: "{{ neutron_openvswitch_agent_healthcheck }}"
|
||||||
neutron-linuxbridge-agent:
|
neutron-linuxbridge-agent:
|
||||||
container_name: "neutron_linuxbridge_agent"
|
container_name: "neutron_linuxbridge_agent"
|
||||||
image: "{{ neutron_linuxbridge_agent_image_full }}"
|
image: "{{ neutron_linuxbridge_agent_image_full }}"
|
||||||
privileged: True
|
privileged: True
|
||||||
enabled: "{{ neutron_plugin_agent == 'linuxbridge' }}"
|
enabled: "{{ neutron_plugin_agent == 'linuxbridge' }}"
|
||||||
environment:
|
environment:
|
||||||
@ -94,7 +93,7 @@ neutron_services:
|
|||||||
container_name: "neutron_sriov_agent"
|
container_name: "neutron_sriov_agent"
|
||||||
image: "{{ neutron_sriov_agent_image_full }}"
|
image: "{{ neutron_sriov_agent_image_full }}"
|
||||||
privileged: True
|
privileged: True
|
||||||
enabled: "{{ enable_neutron_sriov | bool and neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_nsxp' ] }}"
|
enabled: "{{ enable_neutron_sriov | bool and neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_nsxp'] }}"
|
||||||
host_in_groups: "{{ inventory_hostname in groups['compute'] }}"
|
host_in_groups: "{{ inventory_hostname in groups['compute'] }}"
|
||||||
volumes: "{{ neutron_sriov_agent_default_volumes + neutron_sriov_agent_extra_volumes }}"
|
volumes: "{{ neutron_sriov_agent_default_volumes + neutron_sriov_agent_extra_volumes }}"
|
||||||
dimensions: "{{ neutron_sriov_agent_dimensions }}"
|
dimensions: "{{ neutron_sriov_agent_dimensions }}"
|
||||||
@ -102,7 +101,7 @@ neutron_services:
|
|||||||
neutron-mlnx-agent:
|
neutron-mlnx-agent:
|
||||||
container_name: "neutron_mlnx_agent"
|
container_name: "neutron_mlnx_agent"
|
||||||
image: "{{ neutron_mlnx_agent_image_full }}"
|
image: "{{ neutron_mlnx_agent_image_full }}"
|
||||||
enabled: "{{ enable_neutron_mlnx | bool and neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_nsxp' ] }}"
|
enabled: "{{ enable_neutron_mlnx | bool and neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_nsxp'] }}"
|
||||||
host_in_groups: "{{ inventory_hostname in groups['compute'] }}"
|
host_in_groups: "{{ inventory_hostname in groups['compute'] }}"
|
||||||
volumes: "{{ neutron_mlnx_agent_default_volumes + neutron_mlnx_agent_extra_volumes }}"
|
volumes: "{{ neutron_mlnx_agent_default_volumes + neutron_mlnx_agent_extra_volumes }}"
|
||||||
dimensions: "{{ neutron_mlnx_agent_dimensions }}"
|
dimensions: "{{ neutron_mlnx_agent_dimensions }}"
|
||||||
@ -110,7 +109,7 @@ neutron_services:
|
|||||||
container_name: "neutron_eswitchd"
|
container_name: "neutron_eswitchd"
|
||||||
image: "{{ neutron_eswitchd_image_full }}"
|
image: "{{ neutron_eswitchd_image_full }}"
|
||||||
privileged: True
|
privileged: True
|
||||||
enabled: "{{ enable_neutron_mlnx | bool and neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_nsxp' ] }}"
|
enabled: "{{ enable_neutron_mlnx | bool and neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_nsxp'] }}"
|
||||||
host_in_groups: "{{ inventory_hostname in groups['compute'] }}"
|
host_in_groups: "{{ inventory_hostname in groups['compute'] }}"
|
||||||
volumes: "{{ neutron_eswitchd_default_volumes + neutron_eswitchd_extra_volumes }}"
|
volumes: "{{ neutron_eswitchd_default_volumes + neutron_eswitchd_extra_volumes }}"
|
||||||
dimensions: "{{ neutron_eswitchd_dimensions }}"
|
dimensions: "{{ neutron_eswitchd_dimensions }}"
|
||||||
@ -118,7 +117,7 @@ neutron_services:
|
|||||||
container_name: "neutron_metadata_agent"
|
container_name: "neutron_metadata_agent"
|
||||||
image: "{{ neutron_metadata_agent_image_full }}"
|
image: "{{ neutron_metadata_agent_image_full }}"
|
||||||
privileged: True
|
privileged: True
|
||||||
enabled: "{{ neutron_plugin_agent not in [ 'ovn', 'vmware_nsxv', 'vmware_nsxv3', 'vmware_nsxp' ] }}"
|
enabled: "{{ neutron_plugin_agent not in ['ovn', 'vmware_nsxv', 'vmware_nsxv3', 'vmware_nsxp'] }}"
|
||||||
host_in_groups: >-
|
host_in_groups: >-
|
||||||
{{
|
{{
|
||||||
inventory_hostname in groups['neutron-metadata-agent']
|
inventory_hostname in groups['neutron-metadata-agent']
|
||||||
@ -398,7 +397,7 @@ neutron_server_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
neutron_server_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
neutron_server_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
neutron_server_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
neutron_server_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
neutron_server_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
neutron_server_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
neutron_server_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{% if neutron_enable_tls_backend | bool %}localhost{% else %}{{ api_interface_address | put_address_in_context('url') }}{% endif %}:{{ neutron_server_listen_port }}"]
|
neutron_server_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{% if neutron_enable_tls_backend | bool %}localhost{% else %}{{ api_interface_address | put_address_in_context('url') }}{% endif %}:{{ neutron_server_listen_port }}"]
|
||||||
neutron_server_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
neutron_server_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
neutron_server_healthcheck:
|
neutron_server_healthcheck:
|
||||||
interval: "{{ neutron_server_healthcheck_interval }}"
|
interval: "{{ neutron_server_healthcheck_interval }}"
|
||||||
@ -411,7 +410,7 @@ neutron_tls_proxy_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
neutron_tls_proxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
neutron_tls_proxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
neutron_tls_proxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
neutron_tls_proxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
neutron_tls_proxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
neutron_tls_proxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
neutron_tls_proxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl -u {{ haproxy_user }}:{{ haproxy_password }} {{ api_interface_address | put_address_in_context('url') }}:{{ neutron_tls_proxy_stats_port }}"]
|
neutron_tls_proxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl -u {{ haproxy_user }}:{{ haproxy_password }} {{ api_interface_address | put_address_in_context('url') }}:{{ neutron_tls_proxy_stats_port }}"]
|
||||||
neutron_tls_proxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
neutron_tls_proxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
neutron_tls_proxy_healthcheck:
|
neutron_tls_proxy_healthcheck:
|
||||||
interval: "{{ neutron_tls_proxy_healthcheck_interval }}"
|
interval: "{{ neutron_tls_proxy_healthcheck_interval }}"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
neutron_services |
|
neutron_services |
|
||||||
select_services_enabled_and_mapped_to_host |
|
select_services_enabled_and_mapped_to_host |
|
||||||
list |
|
list |
|
||||||
intersect([ "neutron-l3-agent", "neutron-linuxbridge-agent", "neutron-openvswitch-agent" ]) |
|
intersect(["neutron-l3-agent", "neutron-linuxbridge-agent", "neutron-openvswitch-agent"]) |
|
||||||
list |
|
list |
|
||||||
length > 0
|
length > 0
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
neutron_server: "{{ neutron_services['neutron-server'] }}"
|
neutron_server: "{{ neutron_services['neutron-server'] }}"
|
||||||
first_neutron_server_host: "{{ groups[neutron_server.group][0] }}"
|
first_neutron_server_host: "{{ groups[neutron_server.group][0] }}"
|
||||||
results_of_check_pending_contract_scripts: "{{ hostvars[first_neutron_server_host]['neutron_check_contract_db_stdout'] }}"
|
results_of_check_pending_contract_scripts: "{{ hostvars[first_neutron_server_host]['neutron_check_contract_db_stdout'] }}"
|
||||||
|
# NOTE(hrw): no idea
|
||||||
filter_rc: "results[?rc!=`0`]"
|
filter_rc: "results[?rc!=`0`]"
|
||||||
is_stop_neutron_server: "{{ results_of_check_pending_contract_scripts | json_query(filter_rc) }}"
|
is_stop_neutron_server: "{{ results_of_check_pending_contract_scripts | json_query(filter_rc) }}"
|
||||||
become: true
|
become: true
|
||||||
|
@ -298,7 +298,7 @@ nova_novncproxy_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
nova_novncproxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
nova_novncproxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
nova_novncproxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
nova_novncproxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
nova_novncproxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
nova_novncproxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
nova_novncproxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ nova_novncproxy_listen_port }}/vnc_lite.html"]
|
nova_novncproxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ nova_novncproxy_listen_port }}/vnc_lite.html"]
|
||||||
nova_novncproxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
nova_novncproxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
nova_novncproxy_healthcheck:
|
nova_novncproxy_healthcheck:
|
||||||
interval: "{{ nova_novncproxy_healthcheck_interval }}"
|
interval: "{{ nova_novncproxy_healthcheck_interval }}"
|
||||||
@ -311,7 +311,7 @@ nova_spicehtml5proxy_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
nova_spicehtml5proxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
nova_spicehtml5proxy_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
nova_spicehtml5proxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
nova_spicehtml5proxy_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
nova_spicehtml5proxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
nova_spicehtml5proxy_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
nova_spicehtml5proxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ nova_spicehtml5proxy_listen_port }}/spice_auto.html"]
|
nova_spicehtml5proxy_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ nova_spicehtml5proxy_listen_port }}/spice_auto.html"]
|
||||||
nova_spicehtml5proxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
nova_spicehtml5proxy_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
nova_spicehtml5proxy_healthcheck:
|
nova_spicehtml5proxy_healthcheck:
|
||||||
interval: "{{ nova_spicehtml5proxy_healthcheck_interval }}"
|
interval: "{{ nova_spicehtml5proxy_healthcheck_interval }}"
|
||||||
@ -466,7 +466,7 @@ openstack_nova_auth: "{{ openstack_auth }}"
|
|||||||
# Set to KOLLA_UNSET to make Kolla unset these in the managed sysctl.conf file.
|
# Set to KOLLA_UNSET to make Kolla unset these in the managed sysctl.conf file.
|
||||||
nova_compute_host_rp_filter_mode: KOLLA_SKIP
|
nova_compute_host_rp_filter_mode: KOLLA_SKIP
|
||||||
|
|
||||||
nova_libvirt_port: "{{'16514' if libvirt_tls | bool else '16509'}}"
|
nova_libvirt_port: "{{ '16514' if libvirt_tls | bool else '16509' }}"
|
||||||
nova_ssh_port: "8022"
|
nova_ssh_port: "8022"
|
||||||
|
|
||||||
# NOTE(mgoddard): The order of this list defines the order in which services
|
# NOTE(mgoddard): The order of this list defines the order in which services
|
||||||
|
@ -157,8 +157,8 @@
|
|||||||
- name: Pushing secrets key for libvirt
|
- name: Pushing secrets key for libvirt
|
||||||
vars:
|
vars:
|
||||||
service: "{{ nova_cell_services['nova-libvirt'] }}"
|
service: "{{ nova_cell_services['nova-libvirt'] }}"
|
||||||
copy:
|
template:
|
||||||
content: "{{ item.result }}"
|
src: "libvirt-secret.j2"
|
||||||
dest: "{{ libvirt_secrets_dir }}/{{ item.uuid }}.base64"
|
dest: "{{ libvirt_secrets_dir }}/{{ item.uuid }}.base64"
|
||||||
owner: "{{ config_owner_user }}"
|
owner: "{{ config_owner_user }}"
|
||||||
group: "{{ config_owner_group }}"
|
group: "{{ config_owner_group }}"
|
||||||
|
1
ansible/roles/nova-cell/templates/libvirt-secret.j2
Normal file
1
ansible/roles/nova-cell/templates/libvirt-secret.j2
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ item.result }}
|
@ -116,7 +116,7 @@ nova_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
nova_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
nova_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
nova_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
nova_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
nova_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
nova_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
nova_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if nova_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ nova_api_listen_port }} "]
|
nova_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if nova_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ nova_api_listen_port }} "]
|
||||||
nova_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
nova_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
nova_api_healthcheck:
|
nova_api_healthcheck:
|
||||||
interval: "{{ nova_api_healthcheck_interval }}"
|
interval: "{{ nova_api_healthcheck_interval }}"
|
||||||
|
@ -119,7 +119,7 @@ octavia_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
octavia_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
octavia_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
octavia_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
octavia_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
octavia_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
octavia_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
octavia_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if octavia_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ octavia_api_listen_port }}"]
|
octavia_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if octavia_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ octavia_api_listen_port }}"]
|
||||||
octavia_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
octavia_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
octavia_api_healthcheck:
|
octavia_api_healthcheck:
|
||||||
interval: "{{ octavia_api_healthcheck_interval }}"
|
interval: "{{ octavia_api_healthcheck_interval }}"
|
||||||
@ -348,8 +348,8 @@ octavia_amp_network:
|
|||||||
octavia_amp_network_cidr: 10.1.0.0/24
|
octavia_amp_network_cidr: 10.1.0.0/24
|
||||||
|
|
||||||
# Octavia provider drivers
|
# Octavia provider drivers
|
||||||
octavia_provider_drivers: "amphora:Amphora provider{% if neutron_plugin_agent == 'ovn'%}, ovn:OVN provider{% endif %}"
|
octavia_provider_drivers: "amphora:Amphora provider{% if neutron_plugin_agent == 'ovn' %}, ovn:OVN provider{% endif %}"
|
||||||
octavia_provider_agents: "amphora_agent{% if neutron_plugin_agent == 'ovn'%}, ovn{% endif %}"
|
octavia_provider_agents: "amphora_agent{% if neutron_plugin_agent == 'ovn' %}, ovn{% endif %}"
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# TLS
|
# TLS
|
||||||
|
@ -103,8 +103,8 @@
|
|||||||
- block:
|
- block:
|
||||||
|
|
||||||
- name: Copying over Octavia SSH key
|
- name: Copying over Octavia SSH key
|
||||||
copy:
|
template:
|
||||||
content: "{{ octavia_amp_ssh_key.private_key }}"
|
src: "octavia-ssh-key.j2"
|
||||||
dest: "{{ node_config_directory }}/octavia-worker/{{ octavia_amp_ssh_key_name }}"
|
dest: "{{ node_config_directory }}/octavia-worker/{{ octavia_amp_ssh_key_name }}"
|
||||||
owner: "{{ config_owner_user }}"
|
owner: "{{ config_owner_user }}"
|
||||||
group: "{{ config_owner_group }}"
|
group: "{{ config_owner_group }}"
|
||||||
|
1
ansible/roles/octavia/templates/octavia-ssh-key.j2
Normal file
1
ansible/roles/octavia/templates/octavia-ssh-key.j2
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ octavia_amp_ssh_key.private_key }}
|
@ -12,7 +12,7 @@
|
|||||||
- name: Configure OVN in OVSDB
|
- name: Configure OVN in OVSDB
|
||||||
vars:
|
vars:
|
||||||
ovn_mappings: "{% for bridge in neutron_bridge_name.split(',') %}physnet{{ loop.index0 + 1 }}:{{ bridge }}{% if not loop.last %},{% endif %}{% endfor %}"
|
ovn_mappings: "{% for bridge in neutron_bridge_name.split(',') %}physnet{{ loop.index0 + 1 }}:{{ bridge }}{% if not loop.last %},{% endif %}{% endfor %}"
|
||||||
ovn_macs: "{% for bridge in neutron_bridge_name.split(',') %}physnet{{ loop.index0 + 1 }}:{{ ovn_base_mac | random_mac(seed=inventory_hostname+bridge) }}{% if not loop.last %},{% endif %}{% endfor %}"
|
ovn_macs: "{% for bridge in neutron_bridge_name.split(',') %}physnet{{ loop.index0 + 1 }}:{{ ovn_base_mac | random_mac(seed=inventory_hostname + bridge) }}{% if not loop.last %},{% endif %}{% endfor %}"
|
||||||
ovn_cms_opts: "{{ 'enable-chassis-as-gw' if inventory_hostname in groups['ovn-controller-network'] else '' }}"
|
ovn_cms_opts: "{{ 'enable-chassis-as-gw' if inventory_hostname in groups['ovn-controller-network'] else '' }}"
|
||||||
become: true
|
become: true
|
||||||
kolla_toolbox:
|
kolla_toolbox:
|
||||||
|
@ -85,13 +85,13 @@
|
|||||||
or inventory_hostname in groups['neutron-metadata-agent'])
|
or inventory_hostname in groups['neutron-metadata-agent'])
|
||||||
- ovs_physical_port_policy == 'named'
|
- ovs_physical_port_policy == 'named'
|
||||||
|
|
||||||
- name: wait for dpdk tunnel ip
|
- name: Wait for dpdk tunnel ip
|
||||||
wait_for:
|
wait_for:
|
||||||
host: "{{ dpdk_tunnel_interface_address }}"
|
host: "{{ dpdk_tunnel_interface_address }}"
|
||||||
timeout: 300
|
timeout: 300
|
||||||
sleep: 5
|
sleep: 5
|
||||||
|
|
||||||
- name: ovs-dpdk gather facts
|
- name: OVS-DPDK gather facts
|
||||||
setup:
|
setup:
|
||||||
filter: ansible_*
|
filter: ansible_*
|
||||||
when:
|
when:
|
||||||
|
@ -60,7 +60,7 @@ placement_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
placement_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
placement_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
placement_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
placement_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
placement_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
placement_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
placement_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if placement_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ placement_api_listen_port }}"]
|
placement_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if placement_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ placement_api_listen_port }}"]
|
||||||
placement_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
placement_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
placement_api_healthcheck:
|
placement_api_healthcheck:
|
||||||
interval: "{{ placement_api_healthcheck_interval }}"
|
interval: "{{ placement_api_healthcheck_interval }}"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
when: inventory_hostname in groups['baremetal']
|
when: inventory_hostname in groups['baremetal']
|
||||||
failed_when: result is failed
|
failed_when: result is failed
|
||||||
or result.stdout | regex_replace('.*\\b(\\d+\\.\\d+\\.\\d+)\\b.*', '\\1') is version(docker_version_min, '<')
|
or result.stdout | regex_replace('.*\\b(\\d+\\.\\d+\\.\\d+)\\b.*', '\\1') is version(docker_version_min, '<')
|
||||||
|
|
||||||
# NOTE(mgoddard): If passwords.yml is encrypted using ansible-vault, this check
|
# NOTE(mgoddard): If passwords.yml is encrypted using ansible-vault, this check
|
||||||
# will pass, but only because nothing in the vault file has the format of a
|
# will pass, but only because nothing in the vault file has the format of a
|
||||||
@ -18,7 +18,7 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
register: result
|
register: result
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: result.stdout | regex_replace('(.*ssh_key.*)', '') is search(":")
|
failed_when: result.stdout | regex_replace('(.*ssh_key.*)', '') is search(":")
|
||||||
|
|
||||||
- name: Check if nscd is running
|
- name: Check if nscd is running
|
||||||
command: pgrep nscd
|
command: pgrep nscd
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
proxysql_project_database_shard: "{{ lookup('vars', (kolla_role_name | default(project_name)) + '_database_shard', default=omit) }}"
|
proxysql_project_database_shard: "{{ lookup('vars', (kolla_role_name | default(project_name)) + '_database_shard', default=omit) }}"
|
||||||
# NOTE(kevko): Kolla_role_name and replace is used only because of nova-cell
|
# NOTE(kevko): Kolla_role_name and replace is used only because of nova-cell
|
||||||
proxysql_project: "{{ kolla_role_name | default(project_name) | replace('_','-') }}"
|
proxysql_project: "{{ kolla_role_name | default(project_name) | replace('_', '-') }}"
|
||||||
proxysql_config_users: "{% if proxysql_project_database_shard is defined and proxysql_project_database_shard['users'] is defined %}True{% else %}False{% endif %}"
|
proxysql_config_users: "{% if proxysql_project_database_shard is defined and proxysql_project_database_shard['users'] is defined %}True{% else %}False{% endif %}"
|
||||||
proxysql_config_rules: "{% if proxysql_project_database_shard is defined and proxysql_project_database_shard['rules'] is defined %}True{% else %}False{% endif %}"
|
proxysql_config_rules: "{% if proxysql_project_database_shard is defined and proxysql_project_database_shard['rules'] is defined %}True{% else %}False{% endif %}"
|
||||||
|
@ -71,7 +71,7 @@ sahara_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
sahara_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
sahara_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
sahara_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
sahara_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
sahara_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
sahara_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
sahara_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ sahara_api_port }}"]
|
sahara_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ sahara_api_port }}"]
|
||||||
sahara_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
sahara_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
sahara_api_healthcheck:
|
sahara_api_healthcheck:
|
||||||
interval: "{{ sahara_api_healthcheck_interval }}"
|
interval: "{{ sahara_api_healthcheck_interval }}"
|
||||||
|
@ -97,7 +97,7 @@ senlin_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
senlin_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
senlin_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
senlin_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
senlin_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
senlin_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
senlin_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
senlin_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ senlin_api_listen_port }}"]
|
senlin_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ senlin_api_listen_port }}"]
|
||||||
senlin_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
senlin_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
senlin_api_healthcheck:
|
senlin_api_healthcheck:
|
||||||
interval: "{{ senlin_api_healthcheck_interval }}"
|
interval: "{{ senlin_api_healthcheck_interval }}"
|
||||||
|
@ -109,7 +109,7 @@ solum_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
solum_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
solum_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
solum_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
solum_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
solum_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
solum_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
solum_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ solum_application_deployment_port }}"]
|
solum_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ solum_application_deployment_port }}"]
|
||||||
solum_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
solum_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
solum_api_healthcheck:
|
solum_api_healthcheck:
|
||||||
interval: "{{ solum_api_healthcheck_interval }}"
|
interval: "{{ solum_api_healthcheck_interval }}"
|
||||||
|
@ -44,7 +44,7 @@ swift_rsyncd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ do
|
|||||||
swift_rsyncd_tag: "{{ swift_tag }}"
|
swift_rsyncd_tag: "{{ swift_tag }}"
|
||||||
swift_rsyncd_image_full: "{{ swift_rsyncd_image }}:{{ swift_rsyncd_tag }}"
|
swift_rsyncd_image_full: "{{ swift_rsyncd_image }}:{{ swift_rsyncd_tag }}"
|
||||||
|
|
||||||
swift_log_level: "{{ 'DEBUG' if openstack_logging_debug | bool else 'INFO'}}"
|
swift_log_level: "{{ 'DEBUG' if openstack_logging_debug | bool else 'INFO' }}"
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# OpenStack
|
# OpenStack
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
action: "stop_container"
|
action: "stop_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
name: "swift_rsyncd"
|
name: "swift_rsyncd"
|
||||||
when: ( inventory_hostname in groups['swift-account-server'] or
|
when: (inventory_hostname in groups['swift-account-server'] or
|
||||||
inventory_hostname in groups['swift-container-server'] or
|
inventory_hostname in groups['swift-container-server'] or
|
||||||
inventory_hostname in groups['swift-object-server'] ) and
|
inventory_hostname in groups['swift-object-server']) and
|
||||||
'swift_rsyncd' not in skip_stop_containers
|
'swift_rsyncd' not in skip_stop_containers
|
||||||
|
|
||||||
- name: Stopping swift-account-server container
|
- name: Stopping swift-account-server container
|
||||||
|
@ -73,7 +73,7 @@ tacker_server_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
tacker_server_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
tacker_server_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
tacker_server_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
tacker_server_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
tacker_server_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
tacker_server_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
tacker_server_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ tacker_server_port }}"]
|
tacker_server_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ tacker_server_port }}"]
|
||||||
tacker_server_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
tacker_server_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
tacker_server_healthcheck:
|
tacker_server_healthcheck:
|
||||||
interval: "{{ tacker_server_healthcheck_interval }}"
|
interval: "{{ tacker_server_healthcheck_interval }}"
|
||||||
|
@ -83,7 +83,7 @@ trove_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
trove_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
trove_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
trove_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
trove_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
trove_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
trove_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
trove_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ trove_api_port }}"]
|
trove_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ trove_api_port }}"]
|
||||||
trove_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
trove_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
trove_api_healthcheck:
|
trove_api_healthcheck:
|
||||||
interval: "{{ trove_api_healthcheck_interval }}"
|
interval: "{{ trove_api_healthcheck_interval }}"
|
||||||
|
@ -55,7 +55,7 @@ venus_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
venus_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
venus_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
venus_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
venus_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
venus_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
venus_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
venus_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ venus_api_port }}"]
|
venus_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ venus_api_port }}"]
|
||||||
venus_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
venus_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
venus_api_healthcheck:
|
venus_api_healthcheck:
|
||||||
interval: "{{ venus_api_healthcheck_interval }}"
|
interval: "{{ venus_api_healthcheck_interval }}"
|
||||||
|
@ -109,7 +109,7 @@ vitrage_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
vitrage_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
vitrage_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
vitrage_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
vitrage_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
vitrage_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
vitrage_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
vitrage_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ vitrage_api_port }}"]
|
vitrage_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ vitrage_api_port }}"]
|
||||||
vitrage_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
vitrage_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
vitrage_api_healthcheck:
|
vitrage_api_healthcheck:
|
||||||
interval: "{{ vitrage_api_healthcheck_interval }}"
|
interval: "{{ vitrage_api_healthcheck_interval }}"
|
||||||
|
@ -83,7 +83,7 @@ watcher_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
watcher_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
watcher_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
watcher_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
watcher_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
watcher_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
watcher_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
watcher_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ watcher_api_port }}"]
|
watcher_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ watcher_api_port }}"]
|
||||||
watcher_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
watcher_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
watcher_api_healthcheck:
|
watcher_api_healthcheck:
|
||||||
interval: "{{ watcher_api_healthcheck_interval }}"
|
interval: "{{ watcher_api_healthcheck_interval }}"
|
||||||
|
@ -109,7 +109,7 @@ zun_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|||||||
zun_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
zun_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
||||||
zun_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
zun_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
||||||
zun_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
zun_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
||||||
zun_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ zun_api_port }}"]
|
zun_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ zun_api_port }}"]
|
||||||
zun_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
zun_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
||||||
zun_api_healthcheck:
|
zun_api_healthcheck:
|
||||||
interval: "{{ zun_api_healthcheck_interval }}"
|
interval: "{{ zun_api_healthcheck_interval }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user