58ce2b54ea
Implement an ansible role that adds Hyper-V as a compute node for OpenStack using Kolla. This will install and configure the Nova Compute service, the Hyper-V Neutron agent and FreeRDP-WebConnect. https://docs.openstack.org/ocata/config-reference/compute/hypervisor-hyper-v.html Change-Id: I601835b0769c5ff173a980a05a752391ae8cc82f Implements: blueprint hyperv-ansible-role Co-Authored-By: Alessandro Pilotti <apilotti@cloudbasesolutions.com>
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
---
|
|
- name: Create log directory
|
|
win_command: "cmd /c mkdir {{ log_dir }}"
|
|
args:
|
|
creates: "{{ log_dir }}"
|
|
|
|
- name: Configure nova-compute
|
|
win_template:
|
|
src: "{{ item }}"
|
|
dest: "%PROGRAMFILES%\\Cloudbase Solutions\\OpenStack\\Nova\\etc\\nova.conf"
|
|
with_first_found:
|
|
- "{{ node_custom_config }}/nova-hyperv/{{ inventory_hostname }}/nova_hyperv.conf"
|
|
- "{{ node_custom_config }}/nova-hyperv/nova_hyperv.conf"
|
|
- "nova_hyperv.conf.j2"
|
|
notify: Restart nova-compute
|
|
|
|
- name: Configure neutron-hyperv-agent
|
|
win_template:
|
|
src: "{{ item }}"
|
|
dest: "%PROGRAMFILES%\\Cloudbase Solutions\\OpenStack\\Nova\\etc\\neutron_hyperv_agent.conf"
|
|
with_first_found:
|
|
- "{{ node_custom_config }}/nova-hyperv/{{ inventory_hostname }}/neutron_hyperv_agent.conf"
|
|
- "{{ node_custom_config }}/nova-hyperv/neutron_hyperv_agent.conf"
|
|
- "neutron_hyperv_agent.conf.j2"
|
|
notify: Restart neutron-hyperv-agent
|
|
|
|
- name: Configure FreeRDP-WebConnect
|
|
win_template:
|
|
src: "{{ item }}"
|
|
dest: "%PROGRAMFILES%\\Cloudbase Solutions\\FreeRDP-WebConnect\\etc\\wsgate.ini"
|
|
with_first_found:
|
|
- "{{ node_custom_config }}/nova-hyperv/{{ inventory_hostname }}/wsgate.ini"
|
|
- "{{ node_custom_config }}/nova-hyperv/wsgate.ini"
|
|
- "wsgate.ini.j2"
|
|
notify: Restart FreeRDP-WebConnect
|