browbeat/ocp_on_osp/tasks/create_flavors.yml
rajeshP524 0ae5a7cebc Install Ocp on Osp
This patch introduces a new workload called "ocp_on_osp".
This workload installs Openshift cluster on Openstack as
a part of Dynamic Workloads.

Change-Id: I5c0a1ef04bf0e82563e7d17fdd9688f938d1e33f
2022-09-22 13:28:31 +05:30

26 lines
628 B
YAML

---
- name: import flavors data
include_vars:
dir: "{{ playbook_dir }}/vars"
files_matching: flavors.yaml
- name: create flavors
os_nova_flavor:
cloud: "overcloud"
state: present
name: "{{ item.name }}"
ram: "{{ item.ram }}"
vcpus: "{{ item.vcpus }}"
disk: "{{ item.disk }}"
with_items: "{{ flavors }}"
- name: create pci flavors
os_nova_flavor:
cloud: "overcloud"
state: present
name: "{{ item.name }}"
ram: "{{ item.ram }}"
vcpus: "{{ item.vcpus }}"
disk: "{{ item.disk }}"
extra_specs: "'pci_passthrough:alias'='nvme:1'"
with_items: "{{ nvme_flavors }}"