75afb950a5
Derive HCI parameters with an Ansible module instead of a Mistral workflow. Also adds the cli-derive-local-hci-parameters.yml playbook which may be run before a deployment to generate a Heat environment file to use as input to a deployment. Story: 2007419 Task: 40710 Change-Id: I6ea9686a98a98c1fcb8d06f44eac830129fd74b0
42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
---
|
|
- name: Derive HCI parameters before deployment
|
|
hosts: localhost
|
|
gather_facts: false
|
|
vars:
|
|
# Set the following variables for your environment
|
|
ironic_node_id: # provide your Ironic UUID here
|
|
role: ComputeHCI
|
|
average_guest_cpu_utilization_percentage: 50
|
|
average_guest_memory_size_in_mb: 8192
|
|
heat_environment_input_file: /home/stack/ceph_overrides.yaml
|
|
new_heat_environment_output_file: /home/stack/hci_result.yaml
|
|
report_path: /home/stack/hci_report.txt
|
|
tasks:
|
|
- name: Get baremetal inspection data
|
|
tripleo_get_introspected_data:
|
|
node_id: "{{ ironic_node_id }}"
|
|
register: ironic
|
|
|
|
- name: Get tripleo CephDisks environment paramters
|
|
set_fact:
|
|
heat_env: "{{ lookup('file', heat_environment_input_file) | from_yaml }}"
|
|
|
|
- name: Derive HCI parameters
|
|
tripleo_derive_hci_parameters:
|
|
tripleo_role_name: "{{ role }}"
|
|
average_guest_cpu_utilization_percentage: "{{ average_guest_cpu_utilization_percentage }}"
|
|
average_guest_memory_size_in_mb: "{{ average_guest_memory_size_in_mb }}"
|
|
introspection_data: "{{ ironic }}"
|
|
tripleo_environment_parameters: "{{ heat_env['parameter_defaults'] }}"
|
|
new_heat_environment_path: "{{ new_heat_environment_output_file }}"
|
|
report_path: "{{ report_path }}"
|
|
register: derived_parameters_result
|
|
|
|
- name: Display steps on what to do next
|
|
debug:
|
|
msg: >-
|
|
You may deploy your overcloud using -e {{ new_heat_environment_output_file }}
|
|
so that the role {{ role }} has its Nova configuration tuned to reserve
|
|
CPU and Memory for its collocated Ceph OSDs. For an explanation see
|
|
{{ report_path }}.
|