Extra Ansible roles to automate TripleO deployments
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.

hieradata-overrides-t-h-t-undercloud.yaml.j2 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. parameter_defaults:
  2. UndercloudExtraConfig:
  3. # Ironic defaults to using `qemu:///system`. When running libvirtd
  4. # unprivileged we need to use `qemu:///session`. This allows us to pass
  5. # the value of libvirt_uri into /etc/ironic/ironic.conf.
  6. ironic::drivers::ssh::libvirt_uri: '{{libvirt_uri}}'
  7. {% if ctlplane_masquerade|default(false) %}
  8. # Override masquerading, OVB need's to masquerade the External (10.0.0.0/24) net as well.
  9. tripleo::masquerade_networks::masquerade_networks: {% if overcloud_ipv6|bool %}{'{{ undercloud_network_cidr }}': ['{{ undercloud_network_cidr }}'], '{{ undercloud_external_network_cidr_ipv4 }}': ['{{ undercloud_external_network_cidr_ipv4}}']}{% else %}{'{{ undercloud_network_cidr }}': ['{{ undercloud_network_cidr }}'], '{{ undercloud_external_network_cidr }}': ['{{ undercloud_external_network_cidr}}']}{% endif -%}
  10. {% endif %}
  11. # The following are configurations for the different workers for the undercloud
  12. # services.
  13. {% if undercloud_workers is defined -%}
  14. undercloud_workers: {{undercloud_workers}}
  15. {%- endif %}
  16. {% if undercloud_glance_workers is defined -%}
  17. glance::api::workers: {{undercloud_glance_workers}}
  18. glance::registry::workers: {{undercloud_glance_workers}}
  19. {% elif undercloud_workers is defined -%}
  20. glance::api::workers: "%{hiera('undercloud_workers')}"
  21. glance::registry::workers: "%{hiera('undercloud_workers')}"
  22. {%- endif %}
  23. {% if undercloud_heat_workers is defined -%}
  24. heat::api::workers: {{undercloud_heat_workers}}
  25. heat::api_cfn::workers: {{undercloud_heat_workers}}
  26. heat::engine::num_engine_workers: {{undercloud_heat_workers}}
  27. {% elif undercloud_workers is defined -%}
  28. heat::api::workers: "%{hiera('undercloud_workers')}"
  29. heat::api_cfn::workers: "%{hiera('undercloud_workers')}"
  30. heat::engine::num_engine_workers: "%{hiera('undercloud_workers')}"
  31. {%- endif %}
  32. {% if undercloud_ironic_workers is defined -%}
  33. ironic::api::workers: {{undercloud_ironic_workers}}
  34. ironic::wsgi::apache::workers: {{undercloud_ironic_workers}}
  35. {% elif undercloud_workers is defined -%}
  36. ironic::api::workers: "%{hiera('undercloud_workers')}"
  37. ironic::wsgi::apache::workers: "%{hiera('undercloud_workers')}"
  38. {%- endif %}
  39. {% if undercloud_keystone_workers is defined -%}
  40. keystone::wsgi::apache::workers: {{undercloud_keystone_workers}}
  41. {% elif undercloud_workers is defined -%}
  42. keystone::wsgi::apache::workers: "%{hiera('undercloud_workers')}"
  43. {%- endif %}
  44. {% if undercloud_neutron_workers is defined -%}
  45. neutron::agents::metadata::metadata_workers: {{undercloud_neutron_workers}}
  46. neutron::server::api_workers: {{undercloud_neutron_workers}}
  47. {% elif undercloud_workers is defined -%}
  48. neutron::agents::metadata::metadata_workers: "%{hiera('undercloud_workers')}"
  49. neutron::server::api_workers: "%{hiera('undercloud_workers')}"
  50. {%- endif %}
  51. {% if undercloud_nova_workers is defined -%}
  52. nova::api::metadata_workers: {{undercloud_nova_workers}}
  53. nova::api::osapi_compute_workers: {{undercloud_nova_workers}}
  54. nova::conductor::workers: {{undercloud_nova_workers}}
  55. nova::scheduler::workers: {{undercloud_nova_workers}}
  56. {% elif undercloud_workers is defined -%}
  57. nova::api::metadata_workers: "%{hiera('undercloud_workers')}"
  58. nova::api::osapi_compute_workers: "%{hiera('undercloud_workers')}"
  59. nova::conductor::workers: "%{hiera('undercloud_workers')}"
  60. nova::scheduler::workers: "%{hiera('undercloud_workers')}"
  61. {%- endif %}
  62. {% if undercloud_nova_max_concurrent_builds is defined -%}
  63. nova::compute::ironic::max_concurrent_builds: {{undercloud_nova_max_concurrent_builds}}
  64. {%- endif %}
  65. {% if undercloud_nova_rpc_response_timeout is defined -%}
  66. nova::rpc_response_timeout: {{undercloud_nova_rpc_response_timeout}}
  67. {%- endif %}
  68. {% if undercloud_ironic_rpc_response_timeout is defined -%}
  69. ironic::rpc_response_timeout: {{undercloud_ironic_rpc_response_timeout}}
  70. {%- endif %}
  71. {% if undercloud_swift_workers is defined -%}
  72. swift::proxy::workers: {{undercloud_swift_workers}}
  73. {% elif undercloud_workers is defined -%}
  74. swift::proxy::workers: "%{hiera('undercloud_workers')}"
  75. {%- endif %}
  76. {% if undercloud_heat_convergence is defined -%}
  77. # The following is configuration for heat convergence feature:
  78. heat::engine::convergence_engine: {{undercloud_heat_convergence}}
  79. {%- endif %}