0ae5a7cebc
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
26 lines
628 B
YAML
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 }}"
|